Comparing version 17.0.6 to 17.0.7
@@ -7,3 +7,3 @@ 'use strict' | ||
const fs = require('fs/promises') | ||
const moveFile = require('../util/move-file') | ||
const { moveFile } = require('@npmcli/fs') | ||
const { Minipass } = require('minipass') | ||
@@ -165,4 +165,10 @@ const Pipeline = require('minipass-pipeline') | ||
await fs.mkdir(destDir, { recursive: true }) | ||
await moveFile(tmp.target, destination) | ||
tmp.moved = true | ||
try { | ||
await moveFile(tmp.target, destination, { overwrite: false }) | ||
tmp.moved = true | ||
} catch (err) { | ||
if (!err.message.startsWith('The destination file exists')) { | ||
throw Object.assign(err, { code: 'EEXIST' }) | ||
} | ||
} | ||
} | ||
@@ -169,0 +175,0 @@ |
{ | ||
"name": "cacache", | ||
"version": "17.0.6", | ||
"version": "17.0.7", | ||
"cache-version": { | ||
@@ -57,3 +57,2 @@ "content": "2", | ||
"p-map": "^4.0.0", | ||
"promise-inflight": "^1.0.1", | ||
"ssri": "^10.0.0", | ||
@@ -60,0 +59,0 @@ "tar": "^6.1.11", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
12
10
0
63150
17
1226
+ Addedcross-spawn@7.0.5(transitive)
- Removedpromise-inflight@^1.0.1
- Removedcross-spawn@7.0.3(transitive)
- Removedpromise-inflight@1.0.1(transitive)