registry-sync 6.1.1 → 7.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/package.json +29 -26
- package/src/download.js +1 -1
- package/src/resolve.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "registry-sync",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "synchronize a remote npm registry for private use",
|
|
5
5
|
"repository": "https://github.com/heikkipora/registry-sync",
|
|
6
6
|
"bin": {
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"build": "./build-npm",
|
|
11
11
|
"prettier": "prettier --write .",
|
|
12
12
|
"prettier:check": "prettier --check --loglevel warn .",
|
|
13
|
-
"eslint": "eslint --fix --format=codeframe
|
|
14
|
-
"eslint:check": "eslint --max-warnings=0 --format=codeframe
|
|
13
|
+
"eslint": "eslint --fix --format=codeframe",
|
|
14
|
+
"eslint:check": "eslint --max-warnings=0 --format=codeframe",
|
|
15
15
|
"lint-staged": "lint-staged --verbose",
|
|
16
16
|
"test": "mocha -r ts-node/register --config test/.mocharc.js --timeout 120000 test/*.ts",
|
|
17
17
|
"release-test": "cd release-test && ./run-sync-install-cycle.sh"
|
|
@@ -20,36 +20,39 @@
|
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@yarnpkg/lockfile": "1.1.0",
|
|
23
|
-
"axios": "1.
|
|
24
|
-
"commander": "
|
|
25
|
-
"lru-cache": "
|
|
26
|
-
"semver": "7.
|
|
27
|
-
"ssri": "
|
|
28
|
-
"tar-fs": "3.0.
|
|
23
|
+
"axios": "1.9.0",
|
|
24
|
+
"commander": "13.1.0",
|
|
25
|
+
"lru-cache": "11.1.0",
|
|
26
|
+
"semver": "7.7.1",
|
|
27
|
+
"ssri": "12.0.0",
|
|
28
|
+
"tar-fs": "3.0.8"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@arkweid/lefthook": "0.7.7",
|
|
32
|
-
"@
|
|
33
|
-
"@
|
|
34
|
-
"@types/
|
|
35
|
-
"@types/
|
|
36
|
-
"@types/
|
|
32
|
+
"@eslint/eslintrc": "3.3.1",
|
|
33
|
+
"@eslint/js": "9.25.1",
|
|
34
|
+
"@types/chai": "5.2.1",
|
|
35
|
+
"@types/lodash": "4.17.16",
|
|
36
|
+
"@types/mocha": "10.0.10",
|
|
37
|
+
"@types/node": "20.17.32",
|
|
38
|
+
"@types/semver": "7.7.0",
|
|
37
39
|
"@types/ssri": "7.1.5",
|
|
38
40
|
"@types/tar-fs": "2.0.4",
|
|
39
41
|
"@types/yarnpkg__lockfile": "1.1.9",
|
|
40
|
-
"@typescript-eslint/eslint-plugin": "
|
|
41
|
-
"@typescript-eslint/parser": "
|
|
42
|
-
"chai": "
|
|
43
|
-
"eslint": "
|
|
44
|
-
"eslint-config-prettier": "
|
|
42
|
+
"@typescript-eslint/eslint-plugin": "8.31.1",
|
|
43
|
+
"@typescript-eslint/parser": "8.31.1",
|
|
44
|
+
"chai": "5.2.0",
|
|
45
|
+
"eslint": "9.25.1",
|
|
46
|
+
"eslint-config-prettier": "10.1.2",
|
|
45
47
|
"eslint-formatter-codeframe": "7.32.1",
|
|
46
|
-
"eslint-plugin-mocha": "
|
|
47
|
-
"express": "
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
48
|
+
"eslint-plugin-mocha": "11.0.0",
|
|
49
|
+
"express": "5.1.0",
|
|
50
|
+
"globals": "16.0.0",
|
|
51
|
+
"lint-staged": "15.5.1",
|
|
52
|
+
"mocha": "11.1.0",
|
|
53
|
+
"prettier": "3.5.3",
|
|
51
54
|
"ts-node": "10.9.2",
|
|
52
|
-
"typescript": "5.
|
|
55
|
+
"typescript": "5.8.3"
|
|
53
56
|
},
|
|
54
57
|
"keywords": [
|
|
55
58
|
"registry",
|
|
@@ -59,6 +62,6 @@
|
|
|
59
62
|
"offline"
|
|
60
63
|
],
|
|
61
64
|
"engines": {
|
|
62
|
-
"node": ">=
|
|
65
|
+
"node": ">=20.5.0"
|
|
63
66
|
}
|
|
64
67
|
}
|
package/src/download.js
CHANGED
|
@@ -67,7 +67,7 @@ async function loadMetadata(path, defaultMetadata) {
|
|
|
67
67
|
const json = await fs.promises.readFile(path, 'utf8');
|
|
68
68
|
return JSON.parse(json);
|
|
69
69
|
}
|
|
70
|
-
catch
|
|
70
|
+
catch {
|
|
71
71
|
return { ...defaultMetadata, 'dist-tags': {}, time: {}, versions: {} };
|
|
72
72
|
}
|
|
73
73
|
}
|
package/src/resolve.js
CHANGED
|
@@ -44,7 +44,7 @@ async function loadCache(cacheFilePath) {
|
|
|
44
44
|
}
|
|
45
45
|
return data;
|
|
46
46
|
}
|
|
47
|
-
catch
|
|
47
|
+
catch {
|
|
48
48
|
// empty V2 cache
|
|
49
49
|
return {
|
|
50
50
|
dependencies: [],
|
|
@@ -201,7 +201,7 @@ function isDeepEqual(a, b) {
|
|
|
201
201
|
(0, assert_1.deepStrictEqual)(a, b);
|
|
202
202
|
return true;
|
|
203
203
|
}
|
|
204
|
-
catch
|
|
204
|
+
catch {
|
|
205
205
|
return false;
|
|
206
206
|
}
|
|
207
207
|
}
|