@ctrl/shared-torrent 4.3.2 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @ctrl/shared-torrent [![npm](https://badgen.net/npm/v/@ctrl/shared-torrent)](https://www.npmjs.com/package/@ctrl/shared-torrent) [![CircleCI](https://badgen.net/circleci/github/scttcper/shared-torrent)](https://circleci.com/gh/scttcper/shared-torrent)
1
+ # @ctrl/shared-torrent [![npm](https://badgen.net/npm/v/@ctrl/shared-torrent)](https://www.npmjs.com/package/@ctrl/shared-torrent)
2
2
 
3
3
  > shared types and interfaces between torrent clients
4
4
 
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  /// <reference types="node" resolution-mode="require"/>
2
- import type { Agents } from 'got';
2
+ /// <reference types="node" resolution-mode="require"/>
3
+ import type { Agent } from 'http';
3
4
  export interface TorrentClient {
4
5
  config: TorrentSettings;
5
6
  getAllData: () => Promise<AllClientData>;
@@ -20,17 +21,17 @@ export interface TorrentSettings {
20
21
  /**
21
22
  * ex - `'/json'`
22
23
  */
23
- path: string;
24
+ path?: string;
24
25
  username?: string;
25
26
  password?: string;
26
27
  /**
27
28
  * pass http agent for proxy
28
- * @link https://github.com/sindresorhus/got#proxies
29
+ * @link https://github.com/sindresorhus/got/blob/main/documentation/tips.md#proxying
29
30
  */
30
- agent?: Agents;
31
+ agent?: Agent;
31
32
  /**
32
33
  * request timeout
33
- * @link https://github.com/sindresorhus/got#timeout
34
+ * @link https://github.com/sindresorhus/got/blob/main/documentation/6-timeout.md
34
35
  */
35
36
  timeout?: number;
36
37
  }
package/dist/index.js CHANGED
@@ -8,4 +8,4 @@ export var TorrentState;
8
8
  TorrentState["warning"] = "warning";
9
9
  TorrentState["error"] = "error";
10
10
  TorrentState["unknown"] = "unknown";
11
- })(TorrentState = TorrentState || (TorrentState = {}));
11
+ })(TorrentState || (TorrentState = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctrl/shared-torrent",
3
- "version": "4.3.2",
3
+ "version": "5.0.0",
4
4
  "description": "shared types and interfaces between torrent clients",
5
5
  "author": "Scott Cooper <scttcper@gmail.com>",
6
6
  "license": "MIT",
@@ -19,17 +19,16 @@
19
19
  "prepare": "npm run build",
20
20
  "build": "tsc"
21
21
  },
22
- "dependencies": {
23
- "got": "^12.5.2"
24
- },
22
+ "dependencies": {},
25
23
  "devDependencies": {
26
- "@sindresorhus/tsconfig": "3.0.1",
27
- "@ctrl/eslint-config": "3.5.4",
28
- "@types/node": "18.11.8",
29
- "typescript": "4.8.4"
24
+ "@ctrl/eslint-config": "4.0.6",
25
+ "@sindresorhus/tsconfig": "4.0.0",
26
+ "@types/node": "20.6.0",
27
+ "typescript": "5.2.2"
30
28
  },
31
29
  "publishConfig": {
32
- "access": "public"
30
+ "access": "public",
31
+ "provenance": true
33
32
  },
34
33
  "release": {
35
34
  "branches": [
@@ -37,6 +36,6 @@
37
36
  ]
38
37
  },
39
38
  "engines": {
40
- "node": ">=14.16"
39
+ "node": ">=16"
41
40
  }
42
41
  }