npm-packlist 1.1.5 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +10 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -134,6 +134,14 @@ const npmWalker = Class => class Walker extends Class {
|
|
|
134
134
|
then()
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
+
// override parent onstat function to nix all symlinks
|
|
138
|
+
onstat (st, entry, file, dir, then) {
|
|
139
|
+
if (st.isSymbolicLink())
|
|
140
|
+
then()
|
|
141
|
+
else
|
|
142
|
+
super.onstat(st, entry, file, dir, then)
|
|
143
|
+
}
|
|
144
|
+
|
|
137
145
|
onReadIgnoreFile (file, data, then) {
|
|
138
146
|
if (file === 'package.json')
|
|
139
147
|
try {
|
|
@@ -158,8 +166,9 @@ class Walker extends npmWalker(IgnoreWalker) {
|
|
|
158
166
|
}
|
|
159
167
|
|
|
160
168
|
class WalkerSync extends npmWalker(IgnoreWalkerSync) {
|
|
161
|
-
walker (entry) {
|
|
169
|
+
walker (entry, then) {
|
|
162
170
|
new WalkerSync(this.walkerOpt(entry)).start()
|
|
171
|
+
then()
|
|
163
172
|
}
|
|
164
173
|
}
|
|
165
174
|
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "npm-packlist",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"ignore-walk": "^
|
|
6
|
+
"ignore-walk": "^3.0.0",
|
|
7
7
|
"npm-bundled": "^1.0.1"
|
|
8
8
|
},
|
|
9
9
|
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
|