Socket
Socket
Sign inDemoInstall

cacache

Package Overview
Dependencies
37
Maintainers
6
Versions
100
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 16.1.0 to 16.1.1

10

lib/content/read.js

@@ -16,3 +16,3 @@ 'use strict'

// get size
const stat = await fs.lstat(cpath)
const stat = await fs.stat(cpath)
return { stat, cpath, sri }

@@ -77,4 +77,4 @@ })

const { stat, cpath, sri } = await withContentSri(cache, integrity, async (cpath, sri) => {
// just lstat to ensure it exists
const stat = await fs.lstat(cpath)
// just stat to ensure it exists
const stat = await fs.stat(cpath)
return { stat, cpath, sri }

@@ -116,3 +116,3 @@ })

return await withContentSri(cache, integrity, async (cpath, sri) => {
const stat = await fs.lstat(cpath)
const stat = await fs.stat(cpath)
return { size: stat.size, sri, stat }

@@ -145,3 +145,3 @@ })

try {
const stat = fs.lstatSync(cpath)
const stat = fs.statSync(cpath)
return { size: stat.size, sri, stat }

@@ -148,0 +148,0 @@ } catch (err) {

{
"name": "cacache",
"version": "16.1.0",
"version": "16.1.1",
"cache-version": {

@@ -72,3 +72,3 @@ "content": "2",

"@npmcli/eslint-config": "^3.0.1",
"@npmcli/template-oss": "3.4.3",
"@npmcli/template-oss": "3.5.0",
"tap": "^16.0.0"

@@ -82,5 +82,5 @@ },

"windowsCI": false,
"version": "3.4.3"
"version": "3.5.0"
},
"author": "GitHub Inc."
}
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