@ctrl/shared-torrent 3.0.2 → 4.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
- # 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) [![CircleCI](https://badgen.net/circleci/github/scttcper/shared-torrent)](https://circleci.com/gh/scttcper/shared-torrent)
2
2
 
3
3
  > shared types and interfaces between torrent clients
4
4
 
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,5 +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 = {}));
14
- //# sourceMappingURL=index.js.map
10
+ })(TorrentState || (TorrentState = {}));
package/package.json CHANGED
@@ -1,33 +1,32 @@
1
1
  {
2
2
  "name": "@ctrl/shared-torrent",
3
- "version": "3.0.2",
3
+ "version": "4.0.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
- "typings": "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.5.2"
23
+ "got": "^12.0.0"
26
24
  },
27
25
  "devDependencies": {
28
- "@ctrl/eslint-config": "1.0.6",
29
- "@types/node": "14.0.27",
30
- "typescript": "3.9.7"
26
+ "@sindresorhus/tsconfig": "2.0.0",
27
+ "@ctrl/eslint-config": "3.2.0",
28
+ "@types/node": "17.0.1",
29
+ "typescript": "4.5.4"
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
  }
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAsCA,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,2CAA2B,CAAA;IAC3B,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;IACjB,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,+BAAe,CAAA;IACf,mCAAmB,CAAA;AACrB,CAAC,EARW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAQvB"}