fsevents 1.2.7 → 1.2.10
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.
Potentially problematic release.
This version of fsevents might be problematic. Click here for more details.
- package/.travis.yml +1 -2
- package/fsevents.cc +8 -11
- package/node_modules/abbrev/package.json +2 -3
- package/node_modules/ansi-regex/package.json +1 -1
- package/node_modules/aproba/package.json +1 -1
- package/node_modules/are-we-there-yet/package.json +1 -1
- package/node_modules/balanced-match/package.json +1 -1
- package/node_modules/brace-expansion/package.json +1 -1
- package/node_modules/chownr/chownr.js +47 -10
- package/node_modules/chownr/package.json +7 -7
- package/node_modules/code-point-at/package.json +1 -1
- package/node_modules/concat-map/package.json +1 -1
- package/node_modules/console-control-strings/package.json +1 -1
- package/node_modules/core-util-is/package.json +1 -1
- package/node_modules/debug/CHANGELOG.md +34 -1
- package/node_modules/debug/README.md +188 -63
- package/node_modules/debug/dist/debug.js +886 -0
- package/node_modules/debug/package.json +28 -26
- package/node_modules/debug/src/browser.js +77 -82
- package/node_modules/debug/src/common.js +249 -0
- package/node_modules/debug/src/index.js +5 -3
- package/node_modules/debug/src/node.js +72 -146
- package/node_modules/deep-extend/package.json +1 -1
- package/node_modules/delegates/package.json +1 -1
- package/node_modules/detect-libc/package.json +1 -1
- package/node_modules/fs-minipass/index.js +2 -1
- package/node_modules/fs-minipass/package.json +13 -10
- package/node_modules/fs.realpath/package.json +1 -1
- package/node_modules/gauge/package.json +1 -1
- package/node_modules/glob/LICENSE +6 -0
- package/node_modules/glob/README.md +8 -1
- package/node_modules/glob/package.json +9 -6
- package/node_modules/has-unicode/package.json +1 -1
- package/node_modules/iconv-lite/package.json +1 -1
- package/node_modules/ignore-walk/README.md +1 -1
- package/node_modules/ignore-walk/index.js +9 -5
- package/node_modules/ignore-walk/package.json +11 -8
- package/node_modules/inflight/package.json +1 -1
- package/node_modules/inherits/inherits.js +2 -0
- package/node_modules/inherits/inherits_browser.js +18 -14
- package/node_modules/inherits/package.json +9 -11
- package/node_modules/ini/package.json +1 -1
- package/node_modules/is-fullwidth-code-point/package.json +1 -1
- package/node_modules/isarray/package.json +1 -1
- package/node_modules/minimatch/package.json +1 -1
- package/node_modules/minimist/package.json +1 -1
- package/node_modules/minipass/README.md +486 -4
- package/node_modules/minipass/index.js +190 -28
- package/node_modules/minipass/package.json +17 -14
- package/node_modules/minizlib/README.md +36 -27
- package/node_modules/minizlib/constants.js +73 -4
- package/node_modules/minizlib/index.js +137 -152
- package/node_modules/minizlib/package.json +12 -12
- package/node_modules/mkdirp/package.json +1 -2
- package/node_modules/ms/index.js +29 -19
- package/node_modules/ms/package.json +17 -17
- package/node_modules/ms/readme.md +18 -9
- package/node_modules/needle/README.md +1 -2
- package/node_modules/needle/examples/multipart-stream.js +1 -1
- package/node_modules/needle/lib/auth.js +1 -1
- package/node_modules/needle/lib/multipart.js +1 -1
- package/node_modules/needle/lib/needle.js +4 -2
- package/node_modules/needle/package.json +13 -13
- package/node_modules/needle/test/basic_auth_spec.js +1 -1
- package/node_modules/needle/test/cookies_spec.js +2 -2
- package/node_modules/needle/test/headers_spec.js +1 -1
- package/node_modules/needle/test/output_spec.js +1 -1
- package/node_modules/needle/test/post_data_spec.js +20 -20
- package/node_modules/needle/test/proxy_spec.js +1 -1
- package/node_modules/needle/test/utils/test.js +1 -1
- package/node_modules/node-pre-gyp/CHANGELOG.md +10 -0
- package/node_modules/node-pre-gyp/README.md +41 -6
- package/node_modules/node-pre-gyp/lib/build.js +1 -1
- package/node_modules/node-pre-gyp/lib/install.js +20 -8
- package/node_modules/node-pre-gyp/lib/node-pre-gyp.js +1 -1
- package/node_modules/node-pre-gyp/lib/pre-binding.js +5 -5
- package/node_modules/node-pre-gyp/lib/rebuild.js +1 -1
- package/node_modules/node-pre-gyp/lib/reinstall.js +1 -1
- package/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json +48 -0
- package/node_modules/node-pre-gyp/lib/util/handle_gyp_opts.js +5 -2
- package/node_modules/node-pre-gyp/lib/util/napi.js +70 -22
- package/node_modules/node-pre-gyp/lib/util/versioning.js +7 -6
- package/node_modules/node-pre-gyp/package.json +11 -11
- package/node_modules/nopt/package.json +1 -1
- package/node_modules/npm-bundled/index.js +26 -6
- package/node_modules/npm-bundled/package.json +9 -6
- package/node_modules/npm-normalize-package-bin/.github/settings.yml +2 -0
- package/node_modules/npm-normalize-package-bin/.npmignore +24 -0
- package/node_modules/npm-normalize-package-bin/LICENSE +15 -0
- package/node_modules/npm-normalize-package-bin/README.md +14 -0
- package/node_modules/npm-normalize-package-bin/index.js +60 -0
- package/node_modules/npm-normalize-package-bin/package-lock.json +3529 -0
- package/node_modules/npm-normalize-package-bin/package.json +57 -0
- package/node_modules/npm-normalize-package-bin/test/array.js +37 -0
- package/node_modules/npm-normalize-package-bin/test/nobin.js +35 -0
- package/node_modules/npm-normalize-package-bin/test/object.js +141 -0
- package/node_modules/npm-normalize-package-bin/test/string.js +37 -0
- package/node_modules/npm-packlist/index.js +76 -16
- package/node_modules/npm-packlist/package.json +16 -9
- package/node_modules/npmlog/package.json +1 -1
- package/node_modules/number-is-nan/package.json +1 -1
- package/node_modules/object-assign/package.json +1 -1
- package/node_modules/once/package.json +1 -1
- package/node_modules/os-homedir/package.json +1 -1
- package/node_modules/os-tmpdir/package.json +1 -1
- package/node_modules/osenv/package.json +1 -1
- package/node_modules/path-is-absolute/package.json +1 -1
- package/node_modules/process-nextick-args/index.js +2 -1
- package/node_modules/process-nextick-args/package.json +6 -6
- package/node_modules/rc/node_modules/minimist/package.json +1 -1
- package/node_modules/rc/package.json +1 -1
- package/node_modules/readable-stream/package.json +1 -1
- package/node_modules/rimraf/package.json +6 -6
- package/node_modules/rimraf/rimraf.js +9 -1
- package/node_modules/safe-buffer/package.json +1 -1
- package/node_modules/safer-buffer/package.json +1 -1
- package/node_modules/sax/package.json +1 -1
- package/node_modules/semver/CHANGELOG.md +39 -0
- package/node_modules/semver/README.md +26 -13
- package/node_modules/semver/bin/semver +84 -77
- package/node_modules/semver/package.json +14 -8
- package/node_modules/semver/semver.js +906 -775
- package/node_modules/set-blocking/package.json +1 -1
- package/node_modules/signal-exit/package.json +1 -1
- package/node_modules/string-width/package.json +1 -1
- package/node_modules/string_decoder/package.json +1 -1
- package/node_modules/strip-ansi/package.json +1 -1
- package/node_modules/strip-json-comments/package.json +1 -1
- package/node_modules/tar/lib/large-numbers.js +32 -27
- package/node_modules/tar/lib/mkdir.js +2 -2
- package/node_modules/tar/lib/parse.js +6 -1
- package/node_modules/tar/lib/read-entry.js +4 -0
- package/node_modules/tar/lib/write-entry.js +2 -2
- package/node_modules/tar/package.json +17 -13
- package/node_modules/util-deprecate/package.json +1 -1
- package/node_modules/wide-align/package.json +1 -1
- package/node_modules/wrappy/package.json +1 -1
- package/node_modules/yallist/package.json +11 -11
- package/node_modules/yallist/yallist.js +50 -0
- package/package.json +5 -8
- package/src/constants.cc +20 -20
- package/node_modules/debug/.coveralls.yml +0 -1
- package/node_modules/debug/.eslintrc +0 -11
- package/node_modules/debug/.npmignore +0 -9
- package/node_modules/debug/.travis.yml +0 -14
- package/node_modules/debug/Makefile +0 -50
- package/node_modules/debug/component.json +0 -19
- package/node_modules/debug/karma.conf.js +0 -70
- package/node_modules/debug/src/debug.js +0 -202
- package/node_modules/debug/src/inspector-log.js +0 -15
- package/node_modules/needle/note.xml +0 -7
- package/node_modules/needle/note.xml.1 +0 -7
@@ -1,134 +1,112 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
1
3
|
/**
|
2
4
|
* Module dependencies.
|
3
5
|
*/
|
4
|
-
|
5
6
|
var tty = require('tty');
|
6
|
-
var util = require('util');
|
7
7
|
|
8
|
+
var util = require('util');
|
8
9
|
/**
|
9
10
|
* This is the Node.js implementation of `debug()`.
|
10
|
-
*
|
11
|
-
* Expose `debug()` as the module.
|
12
11
|
*/
|
13
12
|
|
14
|
-
|
13
|
+
|
15
14
|
exports.init = init;
|
16
15
|
exports.log = log;
|
17
16
|
exports.formatArgs = formatArgs;
|
18
17
|
exports.save = save;
|
19
18
|
exports.load = load;
|
20
19
|
exports.useColors = useColors;
|
21
|
-
|
22
20
|
/**
|
23
21
|
* Colors.
|
24
22
|
*/
|
25
23
|
|
26
24
|
exports.colors = [6, 2, 3, 4, 5, 1];
|
27
25
|
|
26
|
+
try {
|
27
|
+
// Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)
|
28
|
+
// eslint-disable-next-line import/no-extraneous-dependencies
|
29
|
+
var supportsColor = require('supports-color');
|
30
|
+
|
31
|
+
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
32
|
+
exports.colors = [20, 21, 26, 27, 32, 33, 38, 39, 40, 41, 42, 43, 44, 45, 56, 57, 62, 63, 68, 69, 74, 75, 76, 77, 78, 79, 80, 81, 92, 93, 98, 99, 112, 113, 128, 129, 134, 135, 148, 149, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 178, 179, 184, 185, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 214, 215, 220, 221];
|
33
|
+
}
|
34
|
+
} catch (error) {} // Swallow - we only care if `supports-color` is available; it doesn't have to be.
|
35
|
+
|
28
36
|
/**
|
29
37
|
* Build up the default `inspectOpts` object from the environment variables.
|
30
38
|
*
|
31
39
|
* $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js
|
32
40
|
*/
|
33
41
|
|
42
|
+
|
34
43
|
exports.inspectOpts = Object.keys(process.env).filter(function (key) {
|
35
44
|
return /^debug_/i.test(key);
|
36
45
|
}).reduce(function (obj, key) {
|
37
|
-
//
|
38
|
-
var prop = key
|
39
|
-
.
|
40
|
-
|
41
|
-
.replace(/_([a-z])/g, function (_, k) { return k.toUpperCase() });
|
46
|
+
// Camel-case
|
47
|
+
var prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, function (_, k) {
|
48
|
+
return k.toUpperCase();
|
49
|
+
}); // Coerce string value into JS value
|
42
50
|
|
43
|
-
// coerce string value into JS value
|
44
51
|
var val = process.env[key];
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
else
|
52
|
+
|
53
|
+
if (/^(yes|on|true|enabled)$/i.test(val)) {
|
54
|
+
val = true;
|
55
|
+
} else if (/^(no|off|false|disabled)$/i.test(val)) {
|
56
|
+
val = false;
|
57
|
+
} else if (val === 'null') {
|
58
|
+
val = null;
|
59
|
+
} else {
|
60
|
+
val = Number(val);
|
61
|
+
}
|
49
62
|
|
50
63
|
obj[prop] = val;
|
51
64
|
return obj;
|
52
65
|
}, {});
|
53
|
-
|
54
|
-
/**
|
55
|
-
* The file descriptor to write the `debug()` calls to.
|
56
|
-
* Set the `DEBUG_FD` env variable to override with another value. i.e.:
|
57
|
-
*
|
58
|
-
* $ DEBUG_FD=3 node script.js 3>debug.log
|
59
|
-
*/
|
60
|
-
|
61
|
-
var fd = parseInt(process.env.DEBUG_FD, 10) || 2;
|
62
|
-
|
63
|
-
if (1 !== fd && 2 !== fd) {
|
64
|
-
util.deprecate(function(){}, 'except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)')()
|
65
|
-
}
|
66
|
-
|
67
|
-
var stream = 1 === fd ? process.stdout :
|
68
|
-
2 === fd ? process.stderr :
|
69
|
-
createWritableStdioStream(fd);
|
70
|
-
|
71
66
|
/**
|
72
67
|
* Is stdout a TTY? Colored output is enabled when `true`.
|
73
68
|
*/
|
74
69
|
|
75
70
|
function useColors() {
|
76
|
-
return 'colors' in exports.inspectOpts
|
77
|
-
? Boolean(exports.inspectOpts.colors)
|
78
|
-
: tty.isatty(fd);
|
71
|
+
return 'colors' in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
79
72
|
}
|
80
|
-
|
81
|
-
/**
|
82
|
-
* Map %o to `util.inspect()`, all on a single line.
|
83
|
-
*/
|
84
|
-
|
85
|
-
exports.formatters.o = function(v) {
|
86
|
-
this.inspectOpts.colors = this.useColors;
|
87
|
-
return util.inspect(v, this.inspectOpts)
|
88
|
-
.split('\n').map(function(str) {
|
89
|
-
return str.trim()
|
90
|
-
}).join(' ');
|
91
|
-
};
|
92
|
-
|
93
|
-
/**
|
94
|
-
* Map %o to `util.inspect()`, allowing multiple lines if needed.
|
95
|
-
*/
|
96
|
-
|
97
|
-
exports.formatters.O = function(v) {
|
98
|
-
this.inspectOpts.colors = this.useColors;
|
99
|
-
return util.inspect(v, this.inspectOpts);
|
100
|
-
};
|
101
|
-
|
102
73
|
/**
|
103
74
|
* Adds ANSI color escape codes if enabled.
|
104
75
|
*
|
105
76
|
* @api public
|
106
77
|
*/
|
107
78
|
|
79
|
+
|
108
80
|
function formatArgs(args) {
|
109
|
-
var name = this.namespace
|
110
|
-
|
81
|
+
var name = this.namespace,
|
82
|
+
useColors = this.useColors;
|
111
83
|
|
112
84
|
if (useColors) {
|
113
85
|
var c = this.color;
|
114
|
-
var
|
115
|
-
|
86
|
+
var colorCode = "\x1B[3" + (c < 8 ? c : '8;5;' + c);
|
87
|
+
var prefix = " ".concat(colorCode, ";1m").concat(name, " \x1B[0m");
|
116
88
|
args[0] = prefix + args[0].split('\n').join('\n' + prefix);
|
117
|
-
args.push(
|
89
|
+
args.push(colorCode + 'm+' + module.exports.humanize(this.diff) + "\x1B[0m");
|
118
90
|
} else {
|
119
|
-
args[0] =
|
120
|
-
+ ' ' + name + ' ' + args[0];
|
91
|
+
args[0] = getDate() + name + ' ' + args[0];
|
121
92
|
}
|
122
93
|
}
|
123
94
|
|
95
|
+
function getDate() {
|
96
|
+
if (exports.inspectOpts.hideDate) {
|
97
|
+
return '';
|
98
|
+
}
|
99
|
+
|
100
|
+
return new Date().toISOString() + ' ';
|
101
|
+
}
|
124
102
|
/**
|
125
|
-
* Invokes `util.format()` with the specified arguments and writes to
|
103
|
+
* Invokes `util.format()` with the specified arguments and writes to stderr.
|
126
104
|
*/
|
127
105
|
|
106
|
+
|
128
107
|
function log() {
|
129
|
-
return
|
108
|
+
return process.stderr.write(util.format.apply(util, arguments) + '\n');
|
130
109
|
}
|
131
|
-
|
132
110
|
/**
|
133
111
|
* Save `namespaces`.
|
134
112
|
*
|
@@ -136,16 +114,16 @@ function log() {
|
|
136
114
|
* @api private
|
137
115
|
*/
|
138
116
|
|
117
|
+
|
139
118
|
function save(namespaces) {
|
140
|
-
if (
|
119
|
+
if (namespaces) {
|
120
|
+
process.env.DEBUG = namespaces;
|
121
|
+
} else {
|
141
122
|
// If you set a process.env field to null or undefined, it gets cast to the
|
142
123
|
// string 'null' or 'undefined'. Just delete instead.
|
143
124
|
delete process.env.DEBUG;
|
144
|
-
} else {
|
145
|
-
process.env.DEBUG = namespaces;
|
146
125
|
}
|
147
126
|
}
|
148
|
-
|
149
127
|
/**
|
150
128
|
* Load `namespaces`.
|
151
129
|
*
|
@@ -153,78 +131,10 @@ function save(namespaces) {
|
|
153
131
|
* @api private
|
154
132
|
*/
|
155
133
|
|
134
|
+
|
156
135
|
function load() {
|
157
136
|
return process.env.DEBUG;
|
158
137
|
}
|
159
|
-
|
160
|
-
/**
|
161
|
-
* Copied from `node/src/node.js`.
|
162
|
-
*
|
163
|
-
* XXX: It's lame that node doesn't expose this API out-of-the-box. It also
|
164
|
-
* relies on the undocumented `tty_wrap.guessHandleType()` which is also lame.
|
165
|
-
*/
|
166
|
-
|
167
|
-
function createWritableStdioStream (fd) {
|
168
|
-
var stream;
|
169
|
-
var tty_wrap = process.binding('tty_wrap');
|
170
|
-
|
171
|
-
// Note stream._type is used for test-module-load-list.js
|
172
|
-
|
173
|
-
switch (tty_wrap.guessHandleType(fd)) {
|
174
|
-
case 'TTY':
|
175
|
-
stream = new tty.WriteStream(fd);
|
176
|
-
stream._type = 'tty';
|
177
|
-
|
178
|
-
// Hack to have stream not keep the event loop alive.
|
179
|
-
// See https://github.com/joyent/node/issues/1726
|
180
|
-
if (stream._handle && stream._handle.unref) {
|
181
|
-
stream._handle.unref();
|
182
|
-
}
|
183
|
-
break;
|
184
|
-
|
185
|
-
case 'FILE':
|
186
|
-
var fs = require('fs');
|
187
|
-
stream = new fs.SyncWriteStream(fd, { autoClose: false });
|
188
|
-
stream._type = 'fs';
|
189
|
-
break;
|
190
|
-
|
191
|
-
case 'PIPE':
|
192
|
-
case 'TCP':
|
193
|
-
var net = require('net');
|
194
|
-
stream = new net.Socket({
|
195
|
-
fd: fd,
|
196
|
-
readable: false,
|
197
|
-
writable: true
|
198
|
-
});
|
199
|
-
|
200
|
-
// FIXME Should probably have an option in net.Socket to create a
|
201
|
-
// stream from an existing fd which is writable only. But for now
|
202
|
-
// we'll just add this hack and set the `readable` member to false.
|
203
|
-
// Test: ./node test/fixtures/echo.js < /etc/passwd
|
204
|
-
stream.readable = false;
|
205
|
-
stream.read = null;
|
206
|
-
stream._type = 'pipe';
|
207
|
-
|
208
|
-
// FIXME Hack to have stream not keep the event loop alive.
|
209
|
-
// See https://github.com/joyent/node/issues/1726
|
210
|
-
if (stream._handle && stream._handle.unref) {
|
211
|
-
stream._handle.unref();
|
212
|
-
}
|
213
|
-
break;
|
214
|
-
|
215
|
-
default:
|
216
|
-
// Probably an error on in uv_guess_handle()
|
217
|
-
throw new Error('Implement me. Unknown stream file type!');
|
218
|
-
}
|
219
|
-
|
220
|
-
// For supporting legacy API we put the FD here.
|
221
|
-
stream.fd = fd;
|
222
|
-
|
223
|
-
stream._isStdio = true;
|
224
|
-
|
225
|
-
return stream;
|
226
|
-
}
|
227
|
-
|
228
138
|
/**
|
229
139
|
* Init logic for `debug` instances.
|
230
140
|
*
|
@@ -232,17 +142,33 @@ function createWritableStdioStream (fd) {
|
|
232
142
|
* differently for a particular `debug` instance.
|
233
143
|
*/
|
234
144
|
|
235
|
-
function init (debug) {
|
236
|
-
debug.inspectOpts = {};
|
237
145
|
|
146
|
+
function init(debug) {
|
147
|
+
debug.inspectOpts = {};
|
238
148
|
var keys = Object.keys(exports.inspectOpts);
|
149
|
+
|
239
150
|
for (var i = 0; i < keys.length; i++) {
|
240
151
|
debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
|
241
152
|
}
|
242
153
|
}
|
243
154
|
|
155
|
+
module.exports = require('./common')(exports);
|
156
|
+
var formatters = module.exports.formatters;
|
244
157
|
/**
|
245
|
-
*
|
158
|
+
* Map %o to `util.inspect()`, all on a single line.
|
246
159
|
*/
|
247
160
|
|
248
|
-
|
161
|
+
formatters.o = function (v) {
|
162
|
+
this.inspectOpts.colors = this.useColors;
|
163
|
+
return util.inspect(v, this.inspectOpts).replace(/\s*\n\s*/g, ' ');
|
164
|
+
};
|
165
|
+
/**
|
166
|
+
* Map %O to `util.inspect()`, allowing multiple lines if needed.
|
167
|
+
*/
|
168
|
+
|
169
|
+
|
170
|
+
formatters.O = function (v) {
|
171
|
+
this.inspectOpts.colors = this.useColors;
|
172
|
+
return util.inspect(v, this.inspectOpts);
|
173
|
+
};
|
174
|
+
|
@@ -21,7 +21,7 @@
|
|
21
21
|
"_resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz",
|
22
22
|
"_shasum": "c4fa7c95404a17a9c3e8ca7e1537312b736330ac",
|
23
23
|
"_spec": "deep-extend@^0.6.0",
|
24
|
-
"_where": "/Users/
|
24
|
+
"_where": "/Users/pipobscure/fsevents/node_modules/rc",
|
25
25
|
"author": {
|
26
26
|
"name": "Viacheslav Lotsmanov",
|
27
27
|
"email": "lotsmanov89@gmail.com"
|
@@ -21,7 +21,7 @@
|
|
21
21
|
"_resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",
|
22
22
|
"_shasum": "84c6e159b81904fdca59a0ef44cd870d31250f9a",
|
23
23
|
"_spec": "delegates@^1.0.0",
|
24
|
-
"_where": "/Users/
|
24
|
+
"_where": "/Users/pipobscure/fsevents/node_modules/are-we-there-yet",
|
25
25
|
"bugs": {
|
26
26
|
"url": "https://github.com/visionmedia/node-delegates/issues"
|
27
27
|
},
|
@@ -21,7 +21,7 @@
|
|
21
21
|
"_resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz",
|
22
22
|
"_shasum": "fa137c4bd698edf55cd5cd02ac559f91a4c4ba9b",
|
23
23
|
"_spec": "detect-libc@^1.0.2",
|
24
|
-
"_where": "/Users/
|
24
|
+
"_where": "/Users/pipobscure/fsevents/node_modules/node-pre-gyp",
|
25
25
|
"author": {
|
26
26
|
"name": "Lovell Fuller",
|
27
27
|
"email": "npm@lovell.info"
|
@@ -6,7 +6,8 @@ const fs = require('fs')
|
|
6
6
|
// for writev
|
7
7
|
const binding = process.binding('fs')
|
8
8
|
const writeBuffers = binding.writeBuffers
|
9
|
-
|
9
|
+
/* istanbul ignore next */
|
10
|
+
const FSReqWrap = binding.FSReqWrap || binding.FSReqCallback
|
10
11
|
|
11
12
|
const _autoClose = Symbol('_autoClose')
|
12
13
|
const _close = Symbol('_close')
|
@@ -1,8 +1,8 @@
|
|
1
1
|
{
|
2
2
|
"_from": "fs-minipass@^1.2.5",
|
3
|
-
"_id": "fs-minipass@1.2.
|
3
|
+
"_id": "fs-minipass@1.2.7",
|
4
4
|
"_inBundle": false,
|
5
|
-
"_integrity": "sha512-
|
5
|
+
"_integrity": "sha512-GWSSJGFy4e9GUeCcbIkED+bgAoFyj7XF1mV8rma3QW4NIqX9Kyx79N/PF61H5udOV3aY1IaMLs6pGbH71nlCTA==",
|
6
6
|
"_location": "/fs-minipass",
|
7
7
|
"_phantomChildren": {},
|
8
8
|
"_requested": {
|
@@ -18,10 +18,10 @@
|
|
18
18
|
"_requiredBy": [
|
19
19
|
"/tar"
|
20
20
|
],
|
21
|
-
"_resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-1.2.
|
22
|
-
"_shasum": "
|
21
|
+
"_resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-1.2.7.tgz",
|
22
|
+
"_shasum": "ccff8570841e7fe4265693da88936c55aed7f7c7",
|
23
23
|
"_spec": "fs-minipass@^1.2.5",
|
24
|
-
"_where": "/Users/
|
24
|
+
"_where": "/Users/pipobscure/fsevents/node_modules/tar",
|
25
25
|
"author": {
|
26
26
|
"name": "Isaac Z. Schlueter",
|
27
27
|
"email": "i@izs.me",
|
@@ -32,13 +32,13 @@
|
|
32
32
|
},
|
33
33
|
"bundleDependencies": false,
|
34
34
|
"dependencies": {
|
35
|
-
"minipass": "^2.
|
35
|
+
"minipass": "^2.6.0"
|
36
36
|
},
|
37
37
|
"deprecated": false,
|
38
38
|
"description": "fs read and write streams based on minipass",
|
39
39
|
"devDependencies": {
|
40
40
|
"mutate-fs": "^2.0.1",
|
41
|
-
"tap": "^
|
41
|
+
"tap": "^14.6.4"
|
42
42
|
},
|
43
43
|
"files": [
|
44
44
|
"index.js"
|
@@ -53,10 +53,13 @@
|
|
53
53
|
"url": "git+https://github.com/npm/fs-minipass.git"
|
54
54
|
},
|
55
55
|
"scripts": {
|
56
|
-
"postpublish": "git push origin --
|
56
|
+
"postpublish": "git push origin --follow-tags",
|
57
57
|
"postversion": "npm publish",
|
58
58
|
"preversion": "npm test",
|
59
|
-
"test": "tap
|
59
|
+
"test": "tap"
|
60
60
|
},
|
61
|
-
"
|
61
|
+
"tap": {
|
62
|
+
"check-coverage": true
|
63
|
+
},
|
64
|
+
"version": "1.2.7"
|
62
65
|
}
|
@@ -21,7 +21,7 @@
|
|
21
21
|
"_resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
|
22
22
|
"_shasum": "1504ad2523158caa40db4a2787cb01411994ea4f",
|
23
23
|
"_spec": "fs.realpath@^1.0.0",
|
24
|
-
"_where": "/Users/
|
24
|
+
"_where": "/Users/pipobscure/fsevents/node_modules/glob",
|
25
25
|
"author": {
|
26
26
|
"name": "Isaac Z. Schlueter",
|
27
27
|
"email": "i@izs.me",
|
@@ -21,7 +21,7 @@
|
|
21
21
|
"_resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz",
|
22
22
|
"_shasum": "2c03405c7538c39d7eb37b317022e325fb018bf7",
|
23
23
|
"_spec": "gauge@~2.7.3",
|
24
|
-
"_where": "/Users/
|
24
|
+
"_where": "/Users/pipobscure/fsevents/node_modules/npmlog",
|
25
25
|
"author": {
|
26
26
|
"name": "Rebecca Turner",
|
27
27
|
"email": "me@re-becca.org"
|
@@ -13,3 +13,9 @@ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
13
13
|
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
14
14
|
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
15
15
|
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
16
|
+
|
17
|
+
## Glob Logo
|
18
|
+
|
19
|
+
Glob's logo created by Tanya Brassie <http://tanyabrassie.com/>, licensed
|
20
|
+
under a Creative Commons Attribution-ShareAlike 4.0 International License
|
21
|
+
https://creativecommons.org/licenses/by-sa/4.0/
|
@@ -7,7 +7,7 @@ Match files using the patterns the shell uses, like stars and stuff.
|
|
7
7
|
This is a glob implementation in JavaScript. It uses the `minimatch`
|
8
8
|
library to do its matching.
|
9
9
|
|
10
|
-

|
11
11
|
|
12
12
|
## Usage
|
13
13
|
|
@@ -347,6 +347,11 @@ Users are thus advised not to use a glob result as a guarantee of
|
|
347
347
|
filesystem state in the face of rapid changes. For the vast majority
|
348
348
|
of operations, this is never a problem.
|
349
349
|
|
350
|
+
## Glob Logo
|
351
|
+
Glob's logo was created by [Tanya Brassie](http://tanyabrassie.com/). Logo files can be found [here](https://github.com/isaacs/node-glob/tree/master/logo).
|
352
|
+
|
353
|
+
The logo is licensed under a [Creative Commons Attribution-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-sa/4.0/).
|
354
|
+
|
350
355
|
## Contributing
|
351
356
|
|
352
357
|
Any change to behavior (including bugfixes) must come with a test.
|
@@ -366,3 +371,5 @@ npm run bench
|
|
366
371
|
# to profile javascript
|
367
372
|
npm run prof
|
368
373
|
```
|
374
|
+
|
375
|
+

|
@@ -1,8 +1,8 @@
|
|
1
1
|
{
|
2
2
|
"_from": "glob@^7.1.3",
|
3
|
-
"_id": "glob@7.1.
|
3
|
+
"_id": "glob@7.1.6",
|
4
4
|
"_inBundle": false,
|
5
|
-
"_integrity": "sha512-
|
5
|
+
"_integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==",
|
6
6
|
"_location": "/glob",
|
7
7
|
"_phantomChildren": {},
|
8
8
|
"_requested": {
|
@@ -18,10 +18,10 @@
|
|
18
18
|
"_requiredBy": [
|
19
19
|
"/rimraf"
|
20
20
|
],
|
21
|
-
"_resolved": "https://registry.npmjs.org/glob/-/glob-7.1.
|
22
|
-
"_shasum": "
|
21
|
+
"_resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz",
|
22
|
+
"_shasum": "141f33b81a7c2492e125594307480c46679278a6",
|
23
23
|
"_spec": "glob@^7.1.3",
|
24
|
-
"_where": "/Users/
|
24
|
+
"_where": "/Users/pipobscure/fsevents/node_modules/rimraf",
|
25
25
|
"author": {
|
26
26
|
"name": "Isaac Z. Schlueter",
|
27
27
|
"email": "i@izs.me",
|
@@ -55,6 +55,9 @@
|
|
55
55
|
"sync.js",
|
56
56
|
"common.js"
|
57
57
|
],
|
58
|
+
"funding": {
|
59
|
+
"url": "https://github.com/sponsors/isaacs"
|
60
|
+
},
|
58
61
|
"homepage": "https://github.com/isaacs/node-glob#readme",
|
59
62
|
"license": "ISC",
|
60
63
|
"main": "glob.js",
|
@@ -72,5 +75,5 @@
|
|
72
75
|
"test": "tap test/*.js --cov",
|
73
76
|
"test-regen": "npm run profclean && TEST_REGEN=1 node test/00-setup.js"
|
74
77
|
},
|
75
|
-
"version": "7.1.
|
78
|
+
"version": "7.1.6"
|
76
79
|
}
|
@@ -21,7 +21,7 @@
|
|
21
21
|
"_resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz",
|
22
22
|
"_shasum": "e0e6fe6a28cf51138855e086d1691e771de2a8b9",
|
23
23
|
"_spec": "has-unicode@^2.0.0",
|
24
|
-
"_where": "/Users/
|
24
|
+
"_where": "/Users/pipobscure/fsevents/node_modules/gauge",
|
25
25
|
"author": {
|
26
26
|
"name": "Rebecca Turner",
|
27
27
|
"email": "me@re-becca.org"
|
@@ -21,7 +21,7 @@
|
|
21
21
|
"_resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
|
22
22
|
"_shasum": "2022b4b25fbddc21d2f524974a474aafe733908b",
|
23
23
|
"_spec": "iconv-lite@^0.4.4",
|
24
|
-
"_where": "/Users/
|
24
|
+
"_where": "/Users/pipobscure/fsevents/node_modules/needle",
|
25
25
|
"author": {
|
26
26
|
"name": "Alexander Shtuchkin",
|
27
27
|
"email": "ashtuchkin@gmail.com"
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# ignore-walk
|
2
2
|
|
3
3
|
[](https://travis-ci.org/npm/ignore-walk)
|
5
5
|
|
6
6
|
Nested/recursive `.gitignore`/`.npmignore` parsing and filtering.
|
7
7
|
|
@@ -17,7 +17,7 @@ class Walker extends EE {
|
|
17
17
|
this.includeEmpty = !!opts.includeEmpty
|
18
18
|
this.root = this.parent ? this.parent.root : this.path
|
19
19
|
this.follow = !!opts.follow
|
20
|
-
this.result = this.parent ? this.parent.result :
|
20
|
+
this.result = this.parent ? this.parent.result : new Set()
|
21
21
|
this.entries = null
|
22
22
|
this.sawError = false
|
23
23
|
}
|
@@ -31,8 +31,12 @@ class Walker extends EE {
|
|
31
31
|
if (!(this.sawError && ev === 'error')) {
|
32
32
|
if (ev === 'error')
|
33
33
|
this.sawError = true
|
34
|
-
else if (ev === 'done' && !this.parent)
|
35
|
-
data =
|
34
|
+
else if (ev === 'done' && !this.parent) {
|
35
|
+
data = Array.from(data)
|
36
|
+
.map(e => /^@/.test(e) ? `./${e}` : e).sort(this.sort)
|
37
|
+
this.result = data
|
38
|
+
}
|
39
|
+
|
36
40
|
if (ev === 'error' && this.parent)
|
37
41
|
ret = this.parent.emit('error', data)
|
38
42
|
else
|
@@ -57,7 +61,7 @@ class Walker extends EE {
|
|
57
61
|
this.entries = entries
|
58
62
|
if (entries.length === 0) {
|
59
63
|
if (this.includeEmpty)
|
60
|
-
this.result.
|
64
|
+
this.result.add(this.path.substr(this.root.length + 1))
|
61
65
|
this.emit('done', this.result)
|
62
66
|
} else {
|
63
67
|
const hasIg = this.entries.some(e =>
|
@@ -145,7 +149,7 @@ class Walker extends EE {
|
|
145
149
|
const abs = this.path + '/' + entry
|
146
150
|
if (!st.isDirectory()) {
|
147
151
|
if (file)
|
148
|
-
this.result.
|
152
|
+
this.result.add(abs.substr(this.root.length + 1))
|
149
153
|
then()
|
150
154
|
} else {
|
151
155
|
// is a directory
|
@@ -1,8 +1,8 @@
|
|
1
1
|
{
|
2
2
|
"_from": "ignore-walk@^3.0.1",
|
3
|
-
"_id": "ignore-walk@3.0.
|
3
|
+
"_id": "ignore-walk@3.0.3",
|
4
4
|
"_inBundle": false,
|
5
|
-
"_integrity": "sha512-
|
5
|
+
"_integrity": "sha512-m7o6xuOaT1aqheYHKf8W6J5pYH85ZI9w077erOzLje3JsB1gkafkAhHHY19dqjulgIZHFm32Cp5uNZgcQqdJKw==",
|
6
6
|
"_location": "/ignore-walk",
|
7
7
|
"_phantomChildren": {},
|
8
8
|
"_requested": {
|
@@ -18,10 +18,10 @@
|
|
18
18
|
"_requiredBy": [
|
19
19
|
"/npm-packlist"
|
20
20
|
],
|
21
|
-
"_resolved": "https://registry.npmjs.org/ignore-walk/-/ignore-walk-3.0.
|
22
|
-
"_shasum": "
|
21
|
+
"_resolved": "https://registry.npmjs.org/ignore-walk/-/ignore-walk-3.0.3.tgz",
|
22
|
+
"_shasum": "017e2447184bfeade7c238e4aefdd1e8f95b1e37",
|
23
23
|
"_spec": "ignore-walk@^3.0.1",
|
24
|
-
"_where": "/Users/
|
24
|
+
"_where": "/Users/pipobscure/fsevents/node_modules/npm-packlist",
|
25
25
|
"author": {
|
26
26
|
"name": "Isaac Z. Schlueter",
|
27
27
|
"email": "i@izs.me",
|
@@ -40,7 +40,7 @@
|
|
40
40
|
"mkdirp": "^0.5.1",
|
41
41
|
"mutate-fs": "^1.1.0",
|
42
42
|
"rimraf": "^2.6.1",
|
43
|
-
"tap": "^
|
43
|
+
"tap": "^14.6.9"
|
44
44
|
},
|
45
45
|
"files": [
|
46
46
|
"index.js"
|
@@ -65,7 +65,10 @@
|
|
65
65
|
"postpublish": "git push origin --all; git push origin --tags",
|
66
66
|
"postversion": "npm publish",
|
67
67
|
"preversion": "npm test",
|
68
|
-
"test": "tap
|
68
|
+
"test": "tap"
|
69
69
|
},
|
70
|
-
"
|
70
|
+
"tap": {
|
71
|
+
"jobs": 1
|
72
|
+
},
|
73
|
+
"version": "3.0.3"
|
71
74
|
}
|
@@ -21,7 +21,7 @@
|
|
21
21
|
"_resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
|
22
22
|
"_shasum": "49bd6331d7d02d0c09bc910a1075ba8165b56df9",
|
23
23
|
"_spec": "inflight@^1.0.4",
|
24
|
-
"_where": "/Users/
|
24
|
+
"_where": "/Users/pipobscure/fsevents/node_modules/glob",
|
25
25
|
"author": {
|
26
26
|
"name": "Isaac Z. Schlueter",
|
27
27
|
"email": "i@izs.me",
|