From b1584d9b8749a5bc1816fffa3be33cd1e9f4e0ee Mon Sep 17 00:00:00 2001 From: Gar Date: Wed, 4 May 2022 09:38:37 -0700 Subject: [PATCH] deps: npm-packlist@5.0.3 * Strip leading ./ from files entries --- node_modules/npm-packlist/lib/index.js | 4 ++-- node_modules/npm-packlist/package.json | 6 +++--- package-lock.json | 12 ++++++------ 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/node_modules/npm-packlist/lib/index.js b/node_modules/npm-packlist/lib/index.js index 7e4093dfb3929..c7b0db5f60847 100644 --- a/node_modules/npm-packlist/lib/index.js +++ b/node_modules/npm-packlist/lib/index.js @@ -242,8 +242,8 @@ class Walker extends IgnoreWalker { if (excl) { pattern = pattern.slice(excl[0].length) } - // strip off any / from the start of the pattern. /foo => foo - pattern = pattern.replace(/^\/+/, '') + // strip off any / or ./ from the start of the pattern. /foo => foo, ./foo => foo + pattern = pattern.replace(/^\.?\/+/, '') // an odd number of ! means a negated pattern. !!foo ==> foo const negate = excl && excl[0].length % 2 === 1 set.push({ pattern, negate }) diff --git a/node_modules/npm-packlist/package.json b/node_modules/npm-packlist/package.json index ab5e46359d09b..e79d1d4b82d86 100644 --- a/node_modules/npm-packlist/package.json +++ b/node_modules/npm-packlist/package.json @@ -1,6 +1,6 @@ { "name": "npm-packlist", - "version": "5.0.2", + "version": "5.0.3", "description": "Get a list of the files to add from a folder into an npm package", "directories": { "test": "test" @@ -20,7 +20,7 @@ ], "devDependencies": { "@npmcli/eslint-config": "^3.0.1", - "@npmcli/template-oss": "3.4.1", + "@npmcli/template-oss": "3.4.2", "mutate-fs": "^2.1.1", "tap": "^16.0.1" }, @@ -56,6 +56,6 @@ }, "templateOSS": { "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.", - "version": "3.4.1" + "version": "3.4.2" } } diff --git a/package-lock.json b/package-lock.json index e9ce783635057..fcafa39315b17 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5152,9 +5152,9 @@ } }, "node_modules/npm-packlist": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-5.0.2.tgz", - "integrity": "sha512-jLhcNisUgpz6v2KC75qSeEYAM8UBMYjQ2OhlCOJjB4Ovu7XXnD25UqZ6hOQNeGShL/2ju3LL2E/zBbsuzkIQ8w==", + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-5.0.3.tgz", + "integrity": "sha512-KuSbzgejxdsAWbNNyEs8EsyDHsO+nJF6k+9WuWzFbSNh5tFHs4lDApXw7kntKpuehfp8lKRzJkMtz0+WmGvTIw==", "inBundle": true, "dependencies": { "glob": "^8.0.1", @@ -13625,9 +13625,9 @@ } }, "npm-packlist": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-5.0.2.tgz", - "integrity": "sha512-jLhcNisUgpz6v2KC75qSeEYAM8UBMYjQ2OhlCOJjB4Ovu7XXnD25UqZ6hOQNeGShL/2ju3LL2E/zBbsuzkIQ8w==", + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-5.0.3.tgz", + "integrity": "sha512-KuSbzgejxdsAWbNNyEs8EsyDHsO+nJF6k+9WuWzFbSNh5tFHs4lDApXw7kntKpuehfp8lKRzJkMtz0+WmGvTIw==", "requires": { "glob": "^8.0.1", "ignore-walk": "^5.0.1",