Socket
Socket
Sign inDemoInstall

@netlify/cache-utils

Package Overview
Dependencies
Maintainers
19
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@netlify/cache-utils - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

3

package.json
{
"name": "@netlify/cache-utils",
"version": "2.0.2",
"version": "2.0.3",
"description": "Utility for caching files in Netlify Build",

@@ -51,2 +51,3 @@ "main": "src/main.js",

"globby": "^10.0.2",
"junk": "^3.1.0",
"locate-path": "^6.0.0",

@@ -53,0 +54,0 @@ "make-dir": "^3.1.0",

@@ -9,2 +9,3 @@ 'use strict'

const globby = require('globby')
const junk = require('junk')
const moveFile = require('move-file')

@@ -37,4 +38,5 @@

const files = await globby(srcGlob, { cwd, ignoreJunk: true })
return files.length === 0
const files = await globby(srcGlob, { cwd })
const filteredFiles = files.filter((file) => junk.not(basename(file)))
return filteredFiles.length === 0
}

@@ -41,0 +43,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc