Gathering detailed insights and metrics for @types/stompjs
Gathering detailed insights and metrics for @types/stompjs
Gathering detailed insights and metrics for @types/stompjs
Gathering detailed insights and metrics for @types/stompjs
npm install @types/stompjs
Typescript
Module System
95
Supply Chain
98.8
Quality
75.6
Maintenance
100
Vulnerability
100
License
TypeScript (99.9%)
JavaScript (0.09%)
Shell (0.01%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
3,885,149
Last Day
3,819
Last Week
19,243
Last Month
83,940
Last Year
1,015,907
NOASSERTION License
49,238 Stars
88,750 Commits
30,316 Forks
640 Watchers
6 Branches
9,958 Contributors
Updated on Feb 20, 2025
Latest Version
2.3.9
Package Id
@types/stompjs@2.3.9
Unpacked Size
7.31 kB
Size
2.24 kB
File Count
5
Published on
Nov 21, 2023
Cumulative downloads
Total Downloads
Last Day
10.7%
3,819
Compared to previous day
Last Week
1.9%
19,243
Compared to previous week
Last Month
33%
83,940
Compared to previous month
Last Year
-0.1%
1,015,907
Compared to previous year
1
npm install --save @types/stompjs
This package contains type definitions for stompjs (https://github.com/jmesnil/stomp-websocket).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/stompjs.
1/// <reference types="node" /> 2 3export const VERSIONS: { 4 V1_0: string; 5 V1_1: string; 6 V1_2: string; 7 supportedVersions: () => string[]; 8}; 9 10export class Client { 11 connected: boolean; 12 counter: number; 13 heartbeat: { 14 incoming: number; 15 outgoing: number; 16 }; 17 maxWebSocketFrameSize: number; 18 subscriptions: {}; 19 ws: WebSocket; 20 21 debug(...args: string[]): any; 22 23 connect( 24 headers: { login: string; passcode: string; host?: string | undefined }, 25 connectCallback: (frame?: Frame) => any, 26 errorCallback?: (error: Frame | string) => any, 27 ): any; 28 connect(headers: {}, connectCallback: (frame?: Frame) => any, errorCallback?: (error: Frame | string) => any): any; 29 connect( 30 login: string, 31 passcode: string, 32 connectCallback: (frame?: Frame) => any, 33 errorCallback?: (error: Frame | string) => any, 34 host?: string, 35 ): any; 36 disconnect(disconnectCallback: () => any, headers?: {}): any; 37 38 send(destination: string, headers?: {}, body?: string): any; 39 subscribe(destination: string, callback?: (message: Message) => any, headers?: {}): Subscription; 40 unsubscribe(id: string): void; 41 42 begin(transaction: string): any; 43 commit(transaction: string): any; 44 abort(transaction: string): any; 45 46 ack(messageID: string, subscription: string, headers?: {}): any; 47 nack(messageID: string, subscription: string, headers?: {}): any; 48} 49 50export interface Subscription { 51 id: string; 52 unsubscribe(): void; 53} 54 55export interface Message extends Frame { 56 ack(headers?: {}): any; 57 nack(headers?: {}): any; 58} 59 60export class Frame { 61 command: string; 62 headers: {}; 63 body: string; 64 constructor(command: string, headers?: {}, body?: string); 65 66 toString(): string; 67 static sizeOfUTF8(s: string): number; 68 static unmarshall(datas: any): any; 69 static marshall(command: string, headers?: {}, body?: string): any; 70} 71 72export function client(url: string, protocols?: string | string[]): Client; 73export function over(ws: WebSocket): Client; 74export function overTCP(host: string, port: number): Client; 75export function overWS(url: string): Client; 76export function setInterval(interval: number, f: (...args: any[]) => void): NodeJS.Timer; 77export function clearInterval(id: NodeJS.Timer): void; 78
These definitions were written by Jimi Charalampidis, and Stefan Erichsen.
No vulnerabilities found.
Reason
30 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
Reason
0 existing vulnerabilities detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 25/30 approved changesets -- score normalized to 8
Reason
dependency not pinned by hash detected -- score normalized to 8
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-02-17
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More