Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Perrotte <mike@npmjs.com>2019-10-29 19:25:04 +0300
committerMichael Perrotte <mike@npmjs.com>2019-10-29 19:25:05 +0300
commit5e1a14975311bfdc43df8e1eb317ae5690ee580c (patch)
tree56cd5a690ffd0f41d30bee58107a59ba53032938 /node_modules/npm-packlist
parentc691f36a9c108b6267859fe61e4a38228b190c17 (diff)
npm-packlist@1.4.6
Diffstat (limited to 'node_modules/npm-packlist')
-rw-r--r--node_modules/npm-packlist/index.js14
-rw-r--r--node_modules/npm-packlist/package.json29
2 files changed, 30 insertions, 13 deletions
diff --git a/node_modules/npm-packlist/index.js b/node_modules/npm-packlist/index.js
index 8bfd25779..dd7706a4a 100644
--- a/node_modules/npm-packlist/index.js
+++ b/node_modules/npm-packlist/index.js
@@ -51,6 +51,9 @@ const defaultRules = [
'core.+([0-9])',
]
+// 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
const npmWalker = Class => class Walker extends Class {
constructor (opt) {
@@ -170,6 +173,7 @@ const npmWalker = Class => class Walker extends Class {
pkg.browser ? '!' + pkg.browser : '',
pkg.main ? '!' + pkg.main : '',
'!package.json',
+ '!npm-shrinkwrap.json',
'!@(readme|copying|license|licence|notice|changes|changelog|history){,.*[^~$]}'
]
if (pkg.bin)
@@ -190,6 +194,16 @@ const npmWalker = Class => class Walker extends Class {
then()
}
+ // 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
onstat (st, entry, file, dir, then) {
if (st.isSymbolicLink())
diff --git a/node_modules/npm-packlist/package.json b/node_modules/npm-packlist/package.json
index d72eef9ca..a8fabfa7f 100644
--- a/node_modules/npm-packlist/package.json
+++ b/node_modules/npm-packlist/package.json
@@ -1,29 +1,29 @@
{
- "_from": "npm-packlist@^1.4.3",
- "_id": "npm-packlist@1.4.4",
+ "_from": "npm-packlist@1.4.6",
+ "_id": "npm-packlist@1.4.6",
"_inBundle": false,
- "_integrity": "sha512-zTLo8UcVYtDU3gdeaFu2Xu0n0EvelfHDGuqtNIn5RO7yQj4H1TqNdBc/yZjxnWA0PVB8D3Woyp0i5B43JwQ6Vw==",
+ "_integrity": "sha512-u65uQdb+qwtGvEJh/DgQgW1Xg7sqeNbmxYyrvlNznaVTjV3E5P6F/EFjM+BVHXl7JJlsdG8A64M0XI8FI/IOlg==",
"_location": "/npm-packlist",
"_phantomChildren": {},
"_requested": {
- "type": "range",
+ "type": "version",
"registry": true,
- "raw": "npm-packlist@^1.4.3",
+ "raw": "npm-packlist@1.4.6",
"name": "npm-packlist",
"escapedName": "npm-packlist",
- "rawSpec": "^1.4.3",
+ "rawSpec": "1.4.6",
"saveSpec": null,
- "fetchSpec": "^1.4.3"
+ "fetchSpec": "1.4.6"
},
"_requiredBy": [
"#USER",
"/",
"/pacote"
],
- "_resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-1.4.4.tgz",
- "_shasum": "866224233850ac534b63d1a6e76050092b5d2f44",
- "_spec": "npm-packlist@^1.4.3",
- "_where": "/Users/isaacs/dev/npm/cli",
+ "_resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-1.4.6.tgz",
+ "_shasum": "53ba3ed11f8523079f1457376dd379ee4ea42ff4",
+ "_spec": "npm-packlist@1.4.6",
+ "_where": "/Users/mperrotte/npminc/cli",
"author": {
"name": "Isaac Z. Schlueter",
"email": "i@izs.me",
@@ -42,7 +42,7 @@
"devDependencies": {
"mkdirp": "^0.5.1",
"rimraf": "^2.6.1",
- "tap": "^14.2.1"
+ "tap": "^14.6.9"
},
"directories": {
"test": "test"
@@ -65,5 +65,8 @@
"snap": "tap",
"test": "tap"
},
- "version": "1.4.4"
+ "tap": {
+ "jobs": 1
+ },
+ "version": "1.4.6"
}