🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

cacache

Package Overview
Dependencies
Maintainers
6
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cacache - npm Package Compare versions

Comparing version

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."
}