Comparing version 0.3.0-beta.17 to 0.3.0-beta.18
@@ -1,3 +0,3 @@ | ||
import { C as Conn, D as Disposable, S as Socket } from './conn-5b028013.js'; | ||
export { R as ReadyState, a as SendRequestOptions } from './conn-5b028013.js'; | ||
import { C as Conn, D as Disposable, O as Open } from './conn-46b064ba.js'; | ||
export { a as OpenOptions, P as PreconfiguredSocket, R as ReadyState, b as SendRequestOptions, S as Socket } from './conn-46b064ba.js'; | ||
@@ -675,19 +675,3 @@ type RpcVersion = '1.0' | '2.0'; | ||
declare const close: (conn: Conn, code?: number, reason?: string) => void; | ||
interface OpenOptions { | ||
secret?: string; | ||
onServerError?: (err: any) => void; | ||
/** | ||
* Timeout for each request (ms). | ||
* @default 5000 | ||
* @public | ||
*/ | ||
timeout?: number; | ||
/** | ||
* Timeout for waiting socket (ms). | ||
* @default 5000 | ||
* @public | ||
*/ | ||
openTimeout?: number; | ||
} | ||
declare const open: (socket: Socket, options?: OpenOptions) => Promise<Conn>; | ||
declare const open: Open; | ||
declare const system: Readonly<ClientSystem>; | ||
@@ -977,2 +961,2 @@ declare const aria2: Readonly<ClientAria2>; | ||
export { Aria2ChangePositionResultOk, Aria2ChangeUriResultOk, Aria2ClientGlobalOptionKey, Aria2ClientGlobalOptions, Aria2ClientInputOptionKey, Aria2ClientInputOptions, Aria2ClientNotification, Aria2ClientNotificationMethod, Aria2ClientNotificationParams, Aria2DownloadBitTorrentInfo, Aria2DownloadBitTorrentMode, Aria2DownloadBitTorrentStatus, Aria2DownloadGid, Aria2DownloadState, Aria2DownloadStatus, Aria2FileStatus, Aria2PeerInfo, Aria2PeersInfo, Aria2PositionHow, Aria2RpcMethod, Aria2ServerGlobalStat, Aria2ServerInfo, Aria2ServerSessionInfo, Aria2ServerVersion, Aria2ServersInfo, Aria2ServersInfoItem, Aria2StringUtf8, Aria2SystemMulticallParams, Aria2UriStatus, Aria2UriStatusString, ClientAria2, ClientSystem, Conn, Disposable, OpenOptions, RpcCall, RpcResult, Socket, aria2, close, open, raw, system }; | ||
export { Aria2ChangePositionResultOk, Aria2ChangeUriResultOk, Aria2ClientGlobalOptionKey, Aria2ClientGlobalOptions, Aria2ClientInputOptionKey, Aria2ClientInputOptions, Aria2ClientNotification, Aria2ClientNotificationMethod, Aria2ClientNotificationParams, Aria2DownloadBitTorrentInfo, Aria2DownloadBitTorrentMode, Aria2DownloadBitTorrentStatus, Aria2DownloadGid, Aria2DownloadState, Aria2DownloadStatus, Aria2FileStatus, Aria2PeerInfo, Aria2PeersInfo, Aria2PositionHow, Aria2RpcMethod, Aria2ServerGlobalStat, Aria2ServerInfo, Aria2ServerSessionInfo, Aria2ServerVersion, Aria2ServersInfo, Aria2ServersInfoItem, Aria2StringUtf8, Aria2SystemMulticallParams, Aria2UriStatus, Aria2UriStatusString, ClientAria2, ClientSystem, Conn, Disposable, Open, RpcCall, RpcResult, aria2, close, open, raw, system }; |
@@ -1,10 +0,18 @@ | ||
import { S as Socket } from './conn-5b028013.js'; | ||
export { R as ReadyState } from './conn-5b028013.js'; | ||
import { S as Socket, a as OpenOptions, P as PreconfiguredSocket } from './conn-46b064ba.js'; | ||
export { R as ReadyState } from './conn-46b064ba.js'; | ||
interface CreateHTTP { | ||
(url: Aria2RpcHTTPUrl): Socket; | ||
(url: Aria2RpcHTTPUrl, options: Partial<OpenOptions>): PreconfiguredSocket; | ||
} | ||
type Aria2RpcHTTPUrl = `${'http' | 'https'}://${string}:${number}/jsonrpc` | `${'http' | 'https'}://${string}/jsonrpc`; | ||
declare const createHTTP: (url: Aria2RpcHTTPUrl) => Socket; | ||
declare const createHTTP: CreateHTTP; | ||
type Aria2RpcWebSocketUrl = `${'ws' | 'wss'}://${string}:${number}/jsonrpc` | `${'ws' | 'wss'}://${string}/jsonrpc`; | ||
declare const createWebSocket: (url: Aria2RpcWebSocketUrl) => Socket; | ||
interface CreateWebSocket { | ||
(url: Aria2RpcWebSocketUrl): Socket; | ||
(url: Aria2RpcWebSocketUrl, options: Partial<OpenOptions>): PreconfiguredSocket; | ||
} | ||
declare const createWebSocket: CreateWebSocket; | ||
export { Socket, createHTTP, createWebSocket }; | ||
export { Aria2RpcHTTPUrl, Aria2RpcWebSocketUrl, CreateHTTP, CreateWebSocket, Socket, createHTTP, createWebSocket }; |
{ | ||
"name": "maria2", | ||
"version": "0.3.0-beta.17", | ||
"version": "0.3.0-beta.18", | ||
"description": "Simple RPC Library for aria2", | ||
@@ -87,4 +87,5 @@ "type": "module", | ||
"typecheck": "tsc --noEmit", | ||
"preversion": "pnpm typecheck && pnpm build" | ||
"preversion": "pnpm typecheck && pnpm build", | ||
"denocheck": "deno check --no-npm ./index.ts && deno check --no-npm ./transport.ts" | ||
} | ||
} |
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
63605
11
1327