Socket
Socket
Sign inDemoInstall

npm-packlist

Package Overview
Dependencies
7
Maintainers
9
Versions
62
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.4.5 to 1.4.6

13

index.js

@@ -54,2 +54,5 @@ 'use strict'

// There may be others, but :?|<> are handled by node-tar
const nameIsBadForWindows = file => /\*/.test(file)
// a decorator that applies our custom rules to an ignore walker

@@ -195,2 +198,12 @@ const npmWalker = Class => class Walker extends Class {

// override parent stat function to completely skip any filenames
// that will break windows entirely.
// XXX(isaacs) Next major version should make this an error instead.
stat (entry, file, dir, then) {
if (nameIsBadForWindows(entry))
then()
else
super.stat(entry, file, dir, then)
}
// override parent onstat function to nix all symlinks

@@ -197,0 +210,0 @@ onstat (st, entry, file, dir, then) {

2

package.json
{
"name": "npm-packlist",
"version": "1.4.5",
"version": "1.4.6",
"description": "Get a list of the files to add from a folder into an npm package",

@@ -5,0 +5,0 @@ "directories": {

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