Socket
Socket
Sign inDemoInstall

cacache

Package Overview
Dependencies
40
Maintainers
6
Versions
99
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 17.0.6 to 17.0.7

12

lib/content/write.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc