web3-providers-ws
Advanced tools
Comparing version 1.2.2 to 1.2.3
{ | ||
"name": "web3-providers-ws", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "Module to handle web3 RPC connections over WebSockets.", | ||
@@ -16,5 +16,5 @@ "repository": "https://github.com/ethereum/web3.js/tree/1.x/packages/web3-providers-ws", | ||
"dependencies": { | ||
"@web3-js/websocket": "^1.0.29", | ||
"underscore": "1.9.1", | ||
"web3-core-helpers": "1.2.2", | ||
"websocket": "github:web3-js/WebSocket-Node#polyfill/globalThis" | ||
"web3-core-helpers": "1.2.3" | ||
}, | ||
@@ -24,3 +24,4 @@ "devDependencies": { | ||
"dtslint": "0.4.2" | ||
} | ||
}, | ||
"gitHead": "aca6a78b6c8182f175aa059e7ad359f109ec7a84" | ||
} |
@@ -23,38 +23,4 @@ /* | ||
import { | ||
JsonRpcPayload, | ||
WebsocketProviderBase, | ||
WebsocketProviderOptions | ||
} from 'web3-core-helpers'; | ||
import { WebsocketProviderBase } from 'web3-core-helpers'; | ||
export class WebsocketProvider extends WebsocketProviderBase { | ||
constructor(host: string, options?: WebsocketProviderOptions); | ||
isConnecting(): boolean; | ||
responseCallbacks: any; | ||
notificationCallbacks: any; | ||
connected: boolean; | ||
connection: any; | ||
addDefaultEvents(): void; | ||
supportsSubscriptions(): boolean; | ||
send( | ||
payload: JsonRpcPayload, | ||
callback: (error: Error, result: any) => void | ||
): void; | ||
on(type: string, callback: () => void): void; | ||
once(type: string, callback: () => void): void; | ||
removeListener(type: string, callback: () => void): void; | ||
removeAllListeners(type: string): void; | ||
reset(): void; | ||
disconnect(code: number, reason: string): void; | ||
} | ||
export class WebsocketProvider extends WebsocketProviderBase { } |
@@ -23,3 +23,3 @@ /* | ||
import { WebsocketProviderOptions } from 'web3-core-helpers'; | ||
import { WebsocketProviderOptions, JsonRpcResponse } from 'web3-core-helpers'; | ||
import { WebsocketProvider } from 'web3-providers'; | ||
@@ -64,5 +64,8 @@ | ||
// $ExpectType void | ||
wsProvider.send({} as any, () => {}); | ||
wsProvider.send({} as any, (error: Error | null) => {}); | ||
// $ExpectType void | ||
wsProvider.send({} as any, (error: Error | null, result: JsonRpcResponse | undefined) => {}); | ||
// $ExpectType void | ||
wsProvider.on('type', () => {}); | ||
@@ -69,0 +72,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
GitHub dependency
Supply chain riskContains a dependency which resolves to a GitHub URL. Dependencies fetched from GitHub specifiers are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.
Found 1 instance in 1 package
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
17662
8
0
4
436
+ Added@web3-js/websocket@^1.0.29
+ Added@web3-js/websocket@1.0.30(transitive)
+ Addedd@1.0.2(transitive)
+ Addeddebug@2.6.9(transitive)
+ Addedes5-ext@0.10.64(transitive)
+ Addedes6-iterator@2.0.3(transitive)
+ Addedes6-symbol@3.1.4(transitive)
+ Addedesniff@2.0.1(transitive)
+ Addedevent-emitter@0.3.5(transitive)
+ Addedext@1.7.0(transitive)
+ Addedis-typedarray@1.0.0(transitive)
+ Addedms@2.0.0(transitive)
+ Addednan@2.22.0(transitive)
+ Addednext-tick@1.1.0(transitive)
+ Addedtype@2.7.3(transitive)
+ Addedtypedarray-to-buffer@3.1.5(transitive)
+ Addedweb3-core-helpers@1.2.3(transitive)
+ Addedweb3-eth-iban@1.2.3(transitive)
+ Addedweb3-utils@1.2.3(transitive)
+ Addedyaeti@0.0.6(transitive)
- Removedwebsocket@github:web3-js/WebSocket-Node#polyfill/globalThis
- Removedweb3-core-helpers@1.2.2(transitive)
- Removedweb3-eth-iban@1.2.2(transitive)
- Removedweb3-utils@1.2.2(transitive)
Updatedweb3-core-helpers@1.2.3