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 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 48,57 \
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.3.2",
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": "0.22.0",
24
- "commander": "8.2.0",
25
- "semver": "7.3.5",
26
- "ssri": "8.0.1",
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.2.22",
32
- "@types/lodash": "4.14.175",
33
- "@types/mocha": "9.0.0",
34
- "@types/node": "16.10.3",
35
- "@types/semver": "7.3.8",
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": "4.33.0",
40
- "@typescript-eslint/parser": "4.33.0",
41
- "chai": "4.3.4",
42
- "eslint": "7.32.0",
43
- "eslint-config-prettier": "8.3.0",
44
- "eslint-plugin-mocha": "9.0.0",
45
- "express": "4.17.1",
46
- "lint-staged": "11.2.2",
47
- "mocha": "9.1.2",
48
- "prettier": "2.4.1",
49
- "ts-node": "10.2.1",
50
- "typescript": "4.4.3"
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": ">=12.0.0"
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.rmdir(tmpFolder, { recursive: true });
32
+ await fs.promises.rm(tmpFolder, { recursive: true });
33
33
  return updatedData;
34
34
  }
35
35
  exports.rewriteMetadataInTarball = rewriteMetadataInTarball;