libnpmpack 9.1.9 → 9.1.10

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.
Files changed (2) hide show
  1. package/lib/index.js +1 -1
  2. package/package.json +2 -2
package/lib/index.js CHANGED
@@ -37,7 +37,7 @@ async function pack (spec = 'file:.', opts = {}) {
37
37
  // check for explicit `false` so the default behavior is to skip writing to disk
38
38
  if (opts.dryRun === false) {
39
39
  const filename = `${manifest.name}-${manifest.version}.tgz`
40
- .replace(/^@/, '').replace(/\//, '-')
40
+ .replace(/^@/, '').replace(/[/\\]/g, '-')
41
41
  const destination = path.resolve(opts.packDestination, filename)
42
42
  await writeFile(destination, tarball)
43
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "libnpmpack",
3
- "version": "9.1.9",
3
+ "version": "9.1.10",
4
4
  "description": "Programmatic API for the bits behind npm pack",
5
5
  "author": "GitHub Inc.",
6
6
  "main": "lib/index.js",
@@ -37,7 +37,7 @@
37
37
  "bugs": "https://github.com/npm/libnpmpack/issues",
38
38
  "homepage": "https://npmjs.com/package/libnpmpack",
39
39
  "dependencies": {
40
- "@npmcli/arborist": "^9.7.0",
40
+ "@npmcli/arborist": "^9.8.0",
41
41
  "@npmcli/run-script": "^10.0.0",
42
42
  "npm-package-arg": "^13.0.0",
43
43
  "pacote": "^21.0.2"