Comparing version 0.2.8-beta.0 to 0.2.8-beta.1
@@ -656,2 +656,11 @@ type RpcVersion = '1.0' | '2.0'; | ||
/** | ||
* Ready state of the socket. | ||
*/ | ||
declare enum ReadyState { | ||
Connecting = 0, | ||
Open = 1, | ||
Closing = 2, | ||
Closed = 3 | ||
} | ||
interface Socket { | ||
@@ -662,7 +671,9 @@ /** | ||
* - `1` if the socket is open. | ||
* - `2` if the socket is closing or closed. | ||
* - `2` if the socket is closing. | ||
* - `3` if the socket is closed. | ||
* @public | ||
*/ | ||
readyState: number; | ||
readyState: ReadyState; | ||
send(data: string): void; | ||
close(code?: number, reason?: string): void; | ||
addEventListener(type: 'message', listener: (event: { | ||
@@ -988,2 +999,2 @@ data: any; | ||
export { Aria2ChangePositionResultOk, Aria2ChangeUriResultOk, Aria2ClientGlobalOptionKey, Aria2ClientGlobalOptions, Aria2ClientInputOptionKey, Aria2ClientInputOptions, Aria2ClientNotification, Aria2ClientNotificationMethod, Aria2ClientNotificationParams, Aria2DownloadBitTorrentInfo, Aria2DownloadBitTorrentMode, Aria2DownloadBitTorrentStatus, Aria2DownloadGid, Aria2DownloadState, Aria2DownloadStatus, Aria2FileStatus, Aria2PeerInfo, Aria2PeersInfo, Aria2PositionHow, Aria2RpcHTTPUrl, Aria2RpcMethod, Aria2RpcWebSocketUrl, Aria2ServerGlobalStat, Aria2ServerInfo, Aria2ServerSessionInfo, Aria2ServerVersion, Aria2ServersInfo, Aria2ServersInfoItem, Aria2StringUtf8, Aria2SystemMulticallParams, Aria2UriStatus, Aria2UriStatusString, ClientAria2, ClientSystem, Conn, Disposable, RpcCall, RpcResult, Socket, aria2, createHTTP, createWebSocket, openAsync, raw, system }; | ||
export { Aria2ChangePositionResultOk, Aria2ChangeUriResultOk, Aria2ClientGlobalOptionKey, Aria2ClientGlobalOptions, Aria2ClientInputOptionKey, Aria2ClientInputOptions, Aria2ClientNotification, Aria2ClientNotificationMethod, Aria2ClientNotificationParams, Aria2DownloadBitTorrentInfo, Aria2DownloadBitTorrentMode, Aria2DownloadBitTorrentStatus, Aria2DownloadGid, Aria2DownloadState, Aria2DownloadStatus, Aria2FileStatus, Aria2PeerInfo, Aria2PeersInfo, Aria2PositionHow, Aria2RpcHTTPUrl, Aria2RpcMethod, Aria2RpcWebSocketUrl, Aria2ServerGlobalStat, Aria2ServerInfo, Aria2ServerSessionInfo, Aria2ServerVersion, Aria2ServersInfo, Aria2ServersInfoItem, Aria2StringUtf8, Aria2SystemMulticallParams, Aria2UriStatus, Aria2UriStatusString, ClientAria2, ClientSystem, Conn, Disposable, ReadyState, RpcCall, RpcResult, Socket, aria2, createHTTP, createWebSocket, openAsync, raw, system }; |
{ | ||
"name": "maria2", | ||
"version": "0.2.8-beta.0", | ||
"version": "0.2.8-beta.1", | ||
"description": "Simple RPC Library for aria2", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
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
66032
1519