@ctrl/shared-torrent 3.0.4 → 4.1.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
@@ -49,7 +49,10 @@ export interface Label {
49
49
  count: number;
50
50
  }
51
51
  export interface NormalizedTorrent {
52
- id: string | number;
52
+ /**
53
+ * torrent hash id
54
+ */
55
+ id: string;
53
56
  /**
54
57
  * torrent name
55
58
  */
package/dist/index.js CHANGED
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TorrentState = void 0;
4
- var TorrentState;
1
+ export var TorrentState;
5
2
  (function (TorrentState) {
6
3
  TorrentState["downloading"] = "downloading";
7
4
  TorrentState["seeding"] = "seeding";
@@ -10,4 +7,4 @@ var TorrentState;
10
7
  TorrentState["checking"] = "checking";
11
8
  TorrentState["error"] = "error";
12
9
  TorrentState["unknown"] = "unknown";
13
- })(TorrentState = exports.TorrentState || (exports.TorrentState = {}));
10
+ })(TorrentState || (TorrentState = {}));
package/package.json CHANGED
@@ -1,33 +1,32 @@
1
1
  {
2
2
  "name": "@ctrl/shared-torrent",
3
- "version": "3.0.4",
3
+ "version": "4.1.0",
4
4
  "description": "shared types and interfaces between torrent clients",
5
5
  "author": "Scott Cooper <scttcper@gmail.com>",
6
6
  "license": "MIT",
7
7
  "repository": "scttcper/shared-torrent",
8
- "main": "dist/index.js",
9
- "types": "dist/index.d.ts",
8
+ "type": "module",
9
+ "exports": "./dist/index.js",
10
+ "types": "./dist/index.d.ts",
10
11
  "files": [
11
12
  "dist"
12
13
  ],
13
14
  "sideEffects": false,
14
- "keywords": [
15
- "torrent",
16
- "typescript"
17
- ],
15
+ "keywords": [],
18
16
  "scripts": {
19
- "lint": "eslint --ext .js,.ts, .",
20
- "lint:fix": "eslint --fix --ext .js,.ts, .",
17
+ "lint": "eslint --ext .ts .",
18
+ "lint:fix": "eslint --fix --ext .ts .",
21
19
  "prepare": "npm run build",
22
20
  "build": "tsc"
23
21
  },
24
22
  "dependencies": {
25
- "got": "^11.8.1"
23
+ "got": "^12.0.1"
26
24
  },
27
25
  "devDependencies": {
28
- "@ctrl/eslint-config": "1.2.8",
29
- "@types/node": "14.14.13",
30
- "typescript": "4.1.3"
26
+ "@sindresorhus/tsconfig": "2.0.0",
27
+ "@ctrl/eslint-config": "3.3.1",
28
+ "@types/node": "17.0.21",
29
+ "typescript": "4.5.5"
31
30
  },
32
31
  "publishConfig": {
33
32
  "access": "public"
@@ -36,6 +35,6 @@
36
35
  "branch": "master"
37
36
  },
38
37
  "engines": {
39
- "node": ">=10.19.0"
38
+ "node": ">=14.16"
40
39
  }
41
40
  }