registry-sync 3.3.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 +3 -3
- package/package.json +24 -23
- package/src/metadata.js +1 -1
package/README.md
CHANGED
|
@@ -29,7 +29,7 @@ The local copy can then be used as a simple private NPM registry without publish
|
|
|
29
29
|
See NODE_MODULE_VERSION column in https://nodejs.org/en/download/releases/.
|
|
30
30
|
Default value is from the current Node.js process.
|
|
31
31
|
--binaryArch <list> Optional comma-separated list of CPU architectures to download pre-built binaries for.
|
|
32
|
-
Valid values: arm, ia32, and x64.
|
|
32
|
+
Valid values: arm, arm64, ia32, and x64.
|
|
33
33
|
Default value is from the current Node.js process.
|
|
34
34
|
--binaryPlatform <list> Optional comma-separated list of OS platforms to download pre-built binaries for.
|
|
35
35
|
Valid values: linux, darwin, win32, sunos, freebsd, openbsd, and aix.
|
|
@@ -48,8 +48,8 @@ Example:
|
|
|
48
48
|
registry-sync --root ./local-registry \
|
|
49
49
|
--manifest ./package-lock.json \
|
|
50
50
|
--localUrl http://localhost:8000 \
|
|
51
|
-
--binaryAbi
|
|
52
|
-
--binaryArch x64 \
|
|
51
|
+
--binaryAbi 93,108 \
|
|
52
|
+
--binaryArch x64,arm64 \
|
|
53
53
|
--binaryPlatform darwin,linux
|
|
54
54
|
|
|
55
55
|
Re-executing `registry-sync` will only download and update files for new package versions.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "registry-sync",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.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": {
|
|
@@ -20,34 +20,35 @@
|
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@yarnpkg/lockfile": "1.1.0",
|
|
23
|
-
"axios": "
|
|
24
|
-
"commander": "
|
|
25
|
-
"semver": "7.3.
|
|
26
|
-
"ssri": "
|
|
23
|
+
"axios": "1.1.0",
|
|
24
|
+
"commander": "9.4.1",
|
|
25
|
+
"semver": "7.3.8",
|
|
26
|
+
"ssri": "10.0.0",
|
|
27
27
|
"tar-fs": "2.1.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@arkweid/lefthook": "0.7.7",
|
|
31
|
-
"@types/chai": "4.
|
|
32
|
-
"@types/lodash": "4.14.
|
|
33
|
-
"@types/mocha": "
|
|
34
|
-
"@types/node": "
|
|
35
|
-
"@types/semver": "7.3.
|
|
31
|
+
"@types/chai": "4.3.3",
|
|
32
|
+
"@types/lodash": "4.14.186",
|
|
33
|
+
"@types/mocha": "10.0.0",
|
|
34
|
+
"@types/node": "18.11.0",
|
|
35
|
+
"@types/semver": "7.3.12",
|
|
36
36
|
"@types/ssri": "7.1.1",
|
|
37
37
|
"@types/tar-fs": "2.0.1",
|
|
38
38
|
"@types/yarnpkg__lockfile": "1.1.5",
|
|
39
|
-
"@typescript-eslint/eslint-plugin": "
|
|
40
|
-
"@typescript-eslint/parser": "
|
|
41
|
-
"chai": "4.3.
|
|
42
|
-
"eslint": "
|
|
43
|
-
"eslint-config-prettier": "8.
|
|
44
|
-
"eslint-
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
39
|
+
"@typescript-eslint/eslint-plugin": "5.40.1",
|
|
40
|
+
"@typescript-eslint/parser": "5.40.1",
|
|
41
|
+
"chai": "4.3.6",
|
|
42
|
+
"eslint": "8.25.0",
|
|
43
|
+
"eslint-config-prettier": "8.5.0",
|
|
44
|
+
"eslint-formatter-codeframe": "7.32.1",
|
|
45
|
+
"eslint-plugin-mocha": "10.1.0",
|
|
46
|
+
"express": "4.18.2",
|
|
47
|
+
"lint-staged": "13.0.3",
|
|
48
|
+
"mocha": "10.1.0",
|
|
49
|
+
"prettier": "2.7.1",
|
|
50
|
+
"ts-node": "10.9.1",
|
|
51
|
+
"typescript": "4.8.4"
|
|
51
52
|
},
|
|
52
53
|
"keywords": [
|
|
53
54
|
"registry",
|
|
@@ -57,6 +58,6 @@
|
|
|
57
58
|
"offline"
|
|
58
59
|
],
|
|
59
60
|
"engines": {
|
|
60
|
-
"node": ">=
|
|
61
|
+
"node": ">=14.0.0"
|
|
61
62
|
}
|
|
62
63
|
}
|
package/src/metadata.js
CHANGED
|
@@ -29,7 +29,7 @@ async function rewriteMetadataInTarball(data, versionMetadata, localUrl, localFo
|
|
|
29
29
|
metadata.binary.remote_path = createPrebuiltBinaryRemotePath(localUrl, versionMetadata);
|
|
30
30
|
await fs.promises.writeFile(manifestPath, JSON.stringify(metadata, null, 2));
|
|
31
31
|
const updatedData = await compressTgz(tmpFolder);
|
|
32
|
-
await fs.promises.
|
|
32
|
+
await fs.promises.rm(tmpFolder, { recursive: true });
|
|
33
33
|
return updatedData;
|
|
34
34
|
}
|
|
35
35
|
exports.rewriteMetadataInTarball = rewriteMetadataInTarball;
|