Comparing version 0.2.2 to 0.2.3
@@ -655,2 +655,10 @@ type RpcVersion = '1.0' | '2.0'; | ||
type TrimStart<T, U extends string> = T extends `${U}${infer P}` ? P : T; | ||
declare const WebSocket: { | ||
new (url: string | URL, protocols?: string | string[] | undefined): WebSocket; | ||
prototype: WebSocket; | ||
readonly CONNECTING: 0; | ||
readonly OPEN: 1; | ||
readonly CLOSING: 2; | ||
readonly CLOSED: 3; | ||
}; | ||
@@ -705,3 +713,3 @@ interface Socket { | ||
type Aria2RpcHTTPUrl = `${'http' | 'https'}://${string}:${number}/jsonrpc` | `${'http' | 'https'}://${string}/jsonrpc`; | ||
declare const createWebSocket: (url: Aria2RpcWebSocketUrl) => Socket; | ||
declare const createWebSocket: (url: Aria2RpcWebSocketUrl, ws: () => WebSocket) => Socket; | ||
declare const createHTTP: (url: Aria2RpcHTTPUrl) => Socket; | ||
@@ -708,0 +716,0 @@ |
{ | ||
"name": "maria2", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "Simple RPC Library for aria2", | ||
@@ -46,2 +46,3 @@ "keywords": [ | ||
"bumpp": "^9.1.1", | ||
"cross-fetch": "*", | ||
"prettier": "^3.0.0", | ||
@@ -55,2 +56,3 @@ "typescript": "^5.1.6", | ||
"peerDependencies": { | ||
"cross-fetch": "*", | ||
"ws": "*" | ||
@@ -57,0 +59,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Network access
Supply chain riskThis module accesses the network.
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
63871
1441
2
10
4