Skip to content

Commit

Permalink
deps: npm-packlist@5.0.3 (#4856)
Browse files Browse the repository at this point in the history
* Strip leading ./ from files entries
  • Loading branch information
wraithgar authored May 9, 2022
1 parent 38cf29a commit d58bf40
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions node_modules/npm-packlist/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down
6 changes: 3 additions & 3 deletions node_modules/npm-packlist/package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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"
},
Expand Down Expand Up @@ -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"
}
}
12 changes: 6 additions & 6 deletions package-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit d58bf40

Please sign in to comment.