@ctrl/torrent-file 2.0.1 → 2.0.2

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright 2019 Scott Cooper <scttcper@gmail.com>
3
+ Copyright (c) Scott Cooper <scttcper@gmail.com>
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- /// <reference types="node" />
1
+ /// <reference types="node" resolution-mode="require"/>
2
2
  /**
3
3
  * Decodes bencoded data
4
4
  */
@@ -1,4 +1,4 @@
1
- /// <reference types="node" />
1
+ /// <reference types="node" resolution-mode="require"/>
2
2
  /**
3
3
  * Encodes data in bencode.
4
4
  */
@@ -1,4 +1,4 @@
1
- /// <reference types="node" />
1
+ /// <reference types="node" resolution-mode="require"/>
2
2
  /**
3
3
  * sha1 of torrent file info. This hash is commenly used by torrent clients as the ID of the torrent.
4
4
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctrl/torrent-file",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Parse a torrent file (name, hash, files, pieces)",
5
5
  "author": "Scott Cooper <scttcper@gmail.com>",
6
6
  "license": "MIT",
@@ -18,40 +18,30 @@
18
18
  "lint:fix": "eslint --fix --ext .ts .",
19
19
  "prepare": "npm run build",
20
20
  "build": "tsc",
21
- "test": "ava",
22
- "test:watch": "ava --watch",
23
- "test:ci": "c8 --reporter=text --reporter=lcov ava"
21
+ "test": "vitest run",
22
+ "test:watch": "vitest",
23
+ "test:ci": "vitest run --coverage --reporter=default --reporter=junit --outputFile=./junit.xml"
24
24
  },
25
25
  "dependencies": {
26
26
  "crypto-hash": "^2.0.1"
27
27
  },
28
28
  "devDependencies": {
29
- "@sindresorhus/tsconfig": "2.0.0",
30
- "@ctrl/eslint-config": "3.1.4",
31
- "@types/node": "17.0.0",
29
+ "@sindresorhus/tsconfig": "3.0.1",
30
+ "@ctrl/eslint-config": "3.4.5",
31
+ "@types/node": "17.0.42",
32
32
  "@types/parse-torrent": "5.8.4",
33
- "ava": "4.0.0-rc.1",
34
- "c8": "7.10.0",
35
- "tsm": "2.2.1",
36
- "parse-torrent": "9.1.4",
37
- "typescript": "4.5.4"
38
- },
39
- "ava": {
40
- "files": [
41
- "test/**/*.spec.ts"
42
- ],
43
- "extensions": {
44
- "ts": "module"
45
- },
46
- "nodeArguments": [
47
- "--loader=tsm"
48
- ]
33
+ "c8": "7.11.3",
34
+ "parse-torrent": "9.1.5",
35
+ "typescript": "4.7.3",
36
+ "vitest": "0.14.2"
49
37
  },
50
38
  "publishConfig": {
51
39
  "access": "public"
52
40
  },
53
41
  "release": {
54
- "branch": "master"
42
+ "branches": [
43
+ "master"
44
+ ]
55
45
  },
56
46
  "engines": {
57
47
  "node": ">=14.16"