@ctrl/shared-torrent 4.3.3 → 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/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>;
@@ -27,7 +28,7 @@ export interface TorrentSettings {
27
28
  * pass http agent for proxy
28
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
34
  * @link https://github.com/sindresorhus/got/blob/main/documentation/6-timeout.md
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.3",
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,14 +19,12 @@
19
19
  "prepare": "npm run build",
20
20
  "build": "tsc"
21
21
  },
22
- "dependencies": {
23
- "got": "^12.6.0"
24
- },
22
+ "dependencies": {},
25
23
  "devDependencies": {
26
- "@sindresorhus/tsconfig": "3.0.1",
27
- "@ctrl/eslint-config": "3.7.0",
28
- "@types/node": "20.1.0",
29
- "typescript": "5.0.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
30
  "access": "public",
@@ -38,6 +36,6 @@
38
36
  ]
39
37
  },
40
38
  "engines": {
41
- "node": ">=14.16"
39
+ "node": ">=16"
42
40
  }
43
41
  }