Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@naria2/options

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@naria2/options - npm Package Compare versions

Comparing version 0.0.9-beta.4 to 0.0.9

dist/index.d.cts

17

dist/index.d.ts

@@ -5,2 +5,3 @@ import { MergeDeep, PartialDeep } from 'type-fest';

type StrSize = `${number}${'' | 'K' | 'M'}`;
type ListenPorts = number | `${number}` | [number, number] | `${number}-${number}`;
/**

@@ -318,3 +319,3 @@ * @link https://aria2.github.io/manual/en/html/aria2c.html#basic-options

*/
listenPort: number[];
listenPort: ListenPorts[];
/**

@@ -399,3 +400,3 @@ * Set max overall upload speed in bytes/sec. `0` means unrestricted. You can append `K` or `M` (1K = 1024, 1M = 1024K). To limit the upload speed per torrent, use [--max-upload-limit](https://aria2.github.io/manual/en/html/aria2c.html#cmdoption-0) option.

*/
listenPort: number[];
listenPort: ListenPorts[];
/**

@@ -580,2 +581,3 @@ * Set timeout in seconds.

type Aria2RPCOptionsKey = 'pause' | 'pause-metadata' | 'rpc-allow-origin-all' | 'rpc-certificate' | 'rpc-listen-all' | 'rpc-listen-port' | 'rpc-max-request-size' | 'rpc-private-key' | 'rpc-save-upload-metadata' | 'rpc-secret' | 'rpc-secure';
type Aria2BtGlobalOptionsKey = 'bt-detach-seed-only' | 'bt-lpd-interface' | 'bt-max-open-files' | 'listen-port' | 'max-overall-upload-limit' | 'peer-id-prefix' | 'peer-agent';
/**

@@ -667,6 +669,11 @@ * @link https://aria2.github.io/manual/en/html/aria2c.html#rpc-options

type Prettify<T> = {
[K in keyof T]: T[K];
} & {};
declare function stringifyCliOptions(options: Prettify<Partial<Record<Aria2ClientInputOptionKey & Aria2ClientGlobalOptionKey, string | string[]>> & Partial<Record<Aria2RPCOptionsKey, string | string[]>>>): string[];
declare function resolveProxyOptions(options?: PartialDeep<Aria2ProxyOptions>): Partial<Record<Aria2ClientInputOptionKey, string>>;
declare const resolveRPCOptions: (options?: PartialDeep<Aria2RPCOptions>) => Partial<Record<Aria2RPCOptionsKey, string>>;
declare function resolveInputOptions(options: PartialDeep<Aria2InputOptions>): Partial<Record<Aria2ClientInputOptionKey, string>>;
declare function resolveGlobalOptions(options: PartialDeep<Aria2GlobalOptions>): Partial<Record<Aria2ClientInputOptionKey & Aria2ClientGlobalOptionKey, string>>;
declare function resolveInputOptions(options: PartialDeep<Aria2InputOptions>): Partial<Record<Aria2ClientInputOptionKey, string | string[]>>;
declare function resolveGlobalOptions(options: PartialDeep<Aria2GlobalOptions>): Partial<Record<Aria2ClientInputOptionKey & Aria2ClientGlobalOptionKey, string | string[]>>;

@@ -676,2 +683,2 @@ declare function resolveArray<T>(arr: T | T[]): T[];

export { Aria2BasicGlobalOptions, Aria2BasicInputOptions, Aria2BtGlobalOptions, Aria2BtInputOptions, Aria2BtMetalinkOptions, Aria2DhtGlobalOptions, Aria2DhtInputOptions, Aria2FTPOptions, Aria2GlobalOptions, Aria2HTTPFTPOptions, Aria2HTTPOptions, Aria2InputOptions, Aria2ProxyOptions, Aria2RPCOptions, Aria2RPCOptionsKey, StrSize, isDef, resolveArray, resolveGlobalOptions, resolveInputOptions, resolveProxyOptions, resolveRPCOptions };
export { type Aria2BasicGlobalOptions, type Aria2BasicInputOptions, type Aria2BtGlobalOptions, type Aria2BtGlobalOptionsKey, type Aria2BtInputOptions, type Aria2BtMetalinkOptions, type Aria2DhtGlobalOptions, type Aria2DhtInputOptions, type Aria2FTPOptions, type Aria2GlobalOptions, type Aria2HTTPFTPOptions, type Aria2HTTPOptions, type Aria2InputOptions, type Aria2ProxyOptions, type Aria2RPCOptions, type Aria2RPCOptionsKey, type ListenPorts, type StrSize, isDef, resolveArray, resolveGlobalOptions, resolveInputOptions, resolveProxyOptions, resolveRPCOptions, stringifyCliOptions };
{
"name": "@naria2/options",
"version": "0.0.9-beta.4",
"version": "0.0.9",
"description": "Shared aria2 options type declerations and utils for naria2",

@@ -40,6 +40,6 @@ "keywords": [

"maria2": "^0.3.2",
"type-fest": "^4.1.0"
"type-fest": "^4.3.3"
},
"devDependencies": {
"vitest": "^0.33.0"
"vitest": "^0.34.6"
},

@@ -46,0 +46,0 @@ "engines": {

@@ -0,0 +0,0 @@ # @naria2/options

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc