fsevents 1.2.8 → 1.2.12
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/.travis.yml +1 -0
- package/binding.gyp +1 -9
- package/fsevents.cc +8 -11
- package/fsevents.js +1 -3
- package/node_modules/abbrev/package.json +1 -1
- 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 +98 -19
- package/node_modules/chownr/package.json +13 -10
- 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/README.md +0 -18
- package/node_modules/debug/dist/debug.js +2 -28
- package/node_modules/debug/node.js +1 -0
- package/node_modules/debug/package.json +12 -24
- package/node_modules/debug/src/browser.js +103 -187
- package/node_modules/debug/src/common.js +240 -257
- package/node_modules/debug/src/index.js +5 -3
- package/node_modules/debug/src/node.js +82 -165
- package/node_modules/deep-extend/package.json +1 -1
- package/node_modules/delegates/package.json +1 -1
- package/node_modules/detect-libc/package.json +2 -2
- 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 +8 -8
- 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/.travis.yml +4 -0
- package/node_modules/minimist/example/parse.js +1 -1
- package/node_modules/minimist/index.js +112 -54
- package/node_modules/minimist/package.json +17 -14
- package/node_modules/minimist/readme.markdown +28 -6
- package/node_modules/{rc/node_modules/minimist → minimist}/test/all_bool.js +0 -0
- package/node_modules/{rc/node_modules/minimist → minimist}/test/bool.js +12 -0
- package/node_modules/minimist/test/dash.js +7 -0
- package/node_modules/minimist/test/default_bool.js +15 -0
- package/node_modules/minimist/test/dotted.js +6 -0
- package/node_modules/{rc/node_modules/minimist → minimist}/test/kv_short.js +0 -0
- package/node_modules/{rc/node_modules/minimist → minimist}/test/num.js +0 -0
- package/node_modules/minimist/test/parse.js +23 -144
- package/node_modules/minimist/test/parse_modified.js +1 -1
- package/node_modules/minimist/test/proto.js +44 -0
- package/node_modules/{rc/node_modules/minimist → minimist}/test/stop_early.js +0 -0
- package/node_modules/{rc/node_modules/minimist → minimist}/test/unknown.js +0 -0
- 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 +17 -10
- package/node_modules/ms/index.js +2 -2
- package/node_modules/ms/package.json +6 -6
- package/node_modules/ms/readme.md +1 -1
- package/node_modules/needle/.github/workflows/nodejs.yml +27 -0
- package/node_modules/needle/README.md +5 -5
- package/node_modules/needle/lib/needle.js +11 -3
- package/node_modules/needle/package.json +8 -8
- package/node_modules/needle/test/compression_spec.js +18 -0
- package/node_modules/needle/test/headers_spec.js +1 -1
- package/node_modules/node-pre-gyp/CHANGELOG.md +11 -0
- package/node_modules/node-pre-gyp/lib/install.js +44 -14
- package/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json +240 -0
- package/node_modules/node-pre-gyp/lib/util/napi.js +3 -2
- package/node_modules/node-pre-gyp/package.json +13 -13
- package/node_modules/nopt/lib/nopt.js +6 -1
- package/node_modules/nopt/package.json +15 -8
- package/node_modules/npm-bundled/index.js +13 -5
- 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 +58 -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 +55 -16
- package/node_modules/npm-packlist/package.json +18 -10
- 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/package.json +2 -2
- package/node_modules/readable-stream/.travis.yml +9 -30
- package/node_modules/readable-stream/lib/_stream_duplex.js +1 -1
- package/node_modules/readable-stream/lib/_stream_passthrough.js +1 -1
- package/node_modules/readable-stream/lib/_stream_readable.js +1 -1
- package/node_modules/readable-stream/lib/_stream_transform.js +1 -1
- package/node_modules/readable-stream/lib/_stream_writable.js +1 -1
- package/node_modules/readable-stream/package.json +6 -6
- package/node_modules/rimraf/package.json +7 -7
- 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/README.md +12 -11
- package/node_modules/semver/package.json +7 -7
- 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 +22 -18
- 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 -15
- package/src/constants.cc +20 -20
- package/install.js +0 -7
- package/node_modules/mkdirp/.travis.yml +0 -8
- package/node_modules/mkdirp/examples/pow.js +0 -6
- package/node_modules/mkdirp/test/chmod.js +0 -41
- package/node_modules/mkdirp/test/clobber.js +0 -38
- package/node_modules/mkdirp/test/mkdirp.js +0 -28
- package/node_modules/mkdirp/test/opts_fs.js +0 -29
- package/node_modules/mkdirp/test/opts_fs_sync.js +0 -27
- package/node_modules/mkdirp/test/perm.js +0 -32
- package/node_modules/mkdirp/test/perm_sync.js +0 -36
- package/node_modules/mkdirp/test/race.js +0 -37
- package/node_modules/mkdirp/test/rel.js +0 -32
- package/node_modules/mkdirp/test/return.js +0 -25
- package/node_modules/mkdirp/test/return_sync.js +0 -24
- package/node_modules/mkdirp/test/root.js +0 -19
- package/node_modules/mkdirp/test/sync.js +0 -32
- package/node_modules/mkdirp/test/umask.js +0 -28
- package/node_modules/mkdirp/test/umask_sync.js +0 -32
- package/node_modules/needle/.npmignore +0 -6
- package/node_modules/needle/package-lock.json +0 -395
- package/node_modules/needle/test/keys/ssl.cert +0 -21
- package/node_modules/needle/test/keys/ssl.key +0 -27
- package/node_modules/nopt/.npmignore +0 -1
- package/node_modules/nopt/.travis.yml +0 -8
- package/node_modules/nopt/examples/my-program.js +0 -30
- package/node_modules/nopt/test/basic.js +0 -303
- package/node_modules/rc/node_modules/minimist/.travis.yml +0 -8
- package/node_modules/rc/node_modules/minimist/LICENSE +0 -18
- package/node_modules/rc/node_modules/minimist/example/parse.js +0 -2
- package/node_modules/rc/node_modules/minimist/index.js +0 -236
- package/node_modules/rc/node_modules/minimist/package.json +0 -73
- package/node_modules/rc/node_modules/minimist/readme.markdown +0 -91
- package/node_modules/rc/node_modules/minimist/test/dash.js +0 -31
- package/node_modules/rc/node_modules/minimist/test/default_bool.js +0 -35
- package/node_modules/rc/node_modules/minimist/test/dotted.js +0 -22
- package/node_modules/rc/node_modules/minimist/test/long.js +0 -31
- package/node_modules/rc/node_modules/minimist/test/parse.js +0 -197
- package/node_modules/rc/node_modules/minimist/test/parse_modified.js +0 -9
- package/node_modules/rc/node_modules/minimist/test/short.js +0 -67
- package/node_modules/rc/node_modules/minimist/test/whitespace.js +0 -8
@@ -1,21 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
1
3
|
/**
|
2
4
|
* Module dependencies.
|
3
5
|
*/
|
6
|
+
var tty = require('tty');
|
4
7
|
|
5
|
-
|
6
|
-
const util = require('util');
|
7
|
-
|
8
|
+
var util = require('util');
|
8
9
|
/**
|
9
10
|
* This is the Node.js implementation of `debug()`.
|
10
11
|
*/
|
11
12
|
|
13
|
+
|
12
14
|
exports.init = init;
|
13
15
|
exports.log = log;
|
14
16
|
exports.formatArgs = formatArgs;
|
15
17
|
exports.save = save;
|
16
18
|
exports.load = load;
|
17
19
|
exports.useColors = useColors;
|
18
|
-
|
19
20
|
/**
|
20
21
|
* Colors.
|
21
22
|
*/
|
@@ -23,93 +24,14 @@ exports.useColors = useColors;
|
|
23
24
|
exports.colors = [6, 2, 3, 4, 5, 1];
|
24
25
|
|
25
26
|
try {
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
26,
|
35
|
-
27,
|
36
|
-
32,
|
37
|
-
33,
|
38
|
-
38,
|
39
|
-
39,
|
40
|
-
40,
|
41
|
-
41,
|
42
|
-
42,
|
43
|
-
43,
|
44
|
-
44,
|
45
|
-
45,
|
46
|
-
56,
|
47
|
-
57,
|
48
|
-
62,
|
49
|
-
63,
|
50
|
-
68,
|
51
|
-
69,
|
52
|
-
74,
|
53
|
-
75,
|
54
|
-
76,
|
55
|
-
77,
|
56
|
-
78,
|
57
|
-
79,
|
58
|
-
80,
|
59
|
-
81,
|
60
|
-
92,
|
61
|
-
93,
|
62
|
-
98,
|
63
|
-
99,
|
64
|
-
112,
|
65
|
-
113,
|
66
|
-
128,
|
67
|
-
129,
|
68
|
-
134,
|
69
|
-
135,
|
70
|
-
148,
|
71
|
-
149,
|
72
|
-
160,
|
73
|
-
161,
|
74
|
-
162,
|
75
|
-
163,
|
76
|
-
164,
|
77
|
-
165,
|
78
|
-
166,
|
79
|
-
167,
|
80
|
-
168,
|
81
|
-
169,
|
82
|
-
170,
|
83
|
-
171,
|
84
|
-
172,
|
85
|
-
173,
|
86
|
-
178,
|
87
|
-
179,
|
88
|
-
184,
|
89
|
-
185,
|
90
|
-
196,
|
91
|
-
197,
|
92
|
-
198,
|
93
|
-
199,
|
94
|
-
200,
|
95
|
-
201,
|
96
|
-
202,
|
97
|
-
203,
|
98
|
-
204,
|
99
|
-
205,
|
100
|
-
206,
|
101
|
-
207,
|
102
|
-
208,
|
103
|
-
209,
|
104
|
-
214,
|
105
|
-
215,
|
106
|
-
220,
|
107
|
-
221
|
108
|
-
];
|
109
|
-
}
|
110
|
-
} catch (error) {
|
111
|
-
// Swallow - we only care if `supports-color` is available; it doesn't have to be.
|
112
|
-
}
|
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.
|
113
35
|
|
114
36
|
/**
|
115
37
|
* Build up the default `inspectOpts` object from the environment variables.
|
@@ -117,95 +39,91 @@ try {
|
|
117
39
|
* $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js
|
118
40
|
*/
|
119
41
|
|
120
|
-
exports.inspectOpts = Object.keys(process.env).filter(key => {
|
121
|
-
return /^debug_/i.test(key);
|
122
|
-
}).reduce((obj, key) => {
|
123
|
-
// Camel-case
|
124
|
-
const prop = key
|
125
|
-
.substring(6)
|
126
|
-
.toLowerCase()
|
127
|
-
.replace(/_([a-z])/g, (_, k) => {
|
128
|
-
return k.toUpperCase();
|
129
|
-
});
|
130
|
-
|
131
|
-
// Coerce string value into JS value
|
132
|
-
let val = process.env[key];
|
133
|
-
if (/^(yes|on|true|enabled)$/i.test(val)) {
|
134
|
-
val = true;
|
135
|
-
} else if (/^(no|off|false|disabled)$/i.test(val)) {
|
136
|
-
val = false;
|
137
|
-
} else if (val === 'null') {
|
138
|
-
val = null;
|
139
|
-
} else {
|
140
|
-
val = Number(val);
|
141
|
-
}
|
142
|
-
|
143
|
-
obj[prop] = val;
|
144
|
-
return obj;
|
145
|
-
}, {});
|
146
42
|
|
43
|
+
exports.inspectOpts = Object.keys(process.env).filter(function (key) {
|
44
|
+
return /^debug_/i.test(key);
|
45
|
+
}).reduce(function (obj, key) {
|
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
|
50
|
+
|
51
|
+
var val = process.env[key];
|
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
|
+
}
|
62
|
+
|
63
|
+
obj[prop] = val;
|
64
|
+
return obj;
|
65
|
+
}, {});
|
147
66
|
/**
|
148
67
|
* Is stdout a TTY? Colored output is enabled when `true`.
|
149
68
|
*/
|
150
69
|
|
151
70
|
function useColors() {
|
152
|
-
|
153
|
-
Boolean(exports.inspectOpts.colors) :
|
154
|
-
tty.isatty(process.stderr.fd);
|
71
|
+
return 'colors' in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
155
72
|
}
|
156
|
-
|
157
73
|
/**
|
158
74
|
* Adds ANSI color escape codes if enabled.
|
159
75
|
*
|
160
76
|
* @api public
|
161
77
|
*/
|
162
78
|
|
79
|
+
|
163
80
|
function formatArgs(args) {
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
81
|
+
var name = this.namespace,
|
82
|
+
useColors = this.useColors;
|
83
|
+
|
84
|
+
if (useColors) {
|
85
|
+
var c = this.color;
|
86
|
+
var colorCode = "\x1B[3" + (c < 8 ? c : '8;5;' + c);
|
87
|
+
var prefix = " ".concat(colorCode, ";1m").concat(name, " \x1B[0m");
|
88
|
+
args[0] = prefix + args[0].split('\n').join('\n' + prefix);
|
89
|
+
args.push(colorCode + 'm+' + module.exports.humanize(this.diff) + "\x1B[0m");
|
90
|
+
} else {
|
91
|
+
args[0] = getDate() + name + ' ' + args[0];
|
92
|
+
}
|
176
93
|
}
|
177
94
|
|
178
95
|
function getDate() {
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
return new Date().toISOString() + ' ';
|
183
|
-
}
|
96
|
+
if (exports.inspectOpts.hideDate) {
|
97
|
+
return '';
|
98
|
+
}
|
184
99
|
|
100
|
+
return new Date().toISOString() + ' ';
|
101
|
+
}
|
185
102
|
/**
|
186
103
|
* Invokes `util.format()` with the specified arguments and writes to stderr.
|
187
104
|
*/
|
188
105
|
|
189
|
-
function log(...args) {
|
190
|
-
return process.stderr.write(util.format(...args) + '\n');
|
191
|
-
}
|
192
106
|
|
107
|
+
function log() {
|
108
|
+
return process.stderr.write(util.format.apply(util, arguments) + '\n');
|
109
|
+
}
|
193
110
|
/**
|
194
111
|
* Save `namespaces`.
|
195
112
|
*
|
196
113
|
* @param {String} namespaces
|
197
114
|
* @api private
|
198
115
|
*/
|
116
|
+
|
117
|
+
|
199
118
|
function save(namespaces) {
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
119
|
+
if (namespaces) {
|
120
|
+
process.env.DEBUG = namespaces;
|
121
|
+
} else {
|
122
|
+
// If you set a process.env field to null or undefined, it gets cast to the
|
123
|
+
// string 'null' or 'undefined'. Just delete instead.
|
124
|
+
delete process.env.DEBUG;
|
125
|
+
}
|
207
126
|
}
|
208
|
-
|
209
127
|
/**
|
210
128
|
* Load `namespaces`.
|
211
129
|
*
|
@@ -213,10 +131,10 @@ function save(namespaces) {
|
|
213
131
|
* @api private
|
214
132
|
*/
|
215
133
|
|
134
|
+
|
216
135
|
function load() {
|
217
|
-
|
136
|
+
return process.env.DEBUG;
|
218
137
|
}
|
219
|
-
|
220
138
|
/**
|
221
139
|
* Init logic for `debug` instances.
|
222
140
|
*
|
@@ -224,34 +142,33 @@ function load() {
|
|
224
142
|
* differently for a particular `debug` instance.
|
225
143
|
*/
|
226
144
|
|
145
|
+
|
227
146
|
function init(debug) {
|
228
|
-
|
147
|
+
debug.inspectOpts = {};
|
148
|
+
var keys = Object.keys(exports.inspectOpts);
|
229
149
|
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
}
|
150
|
+
for (var i = 0; i < keys.length; i++) {
|
151
|
+
debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
|
152
|
+
}
|
234
153
|
}
|
235
154
|
|
236
155
|
module.exports = require('./common')(exports);
|
237
|
-
|
238
|
-
const {formatters} = module.exports;
|
239
|
-
|
156
|
+
var formatters = module.exports.formatters;
|
240
157
|
/**
|
241
158
|
* Map %o to `util.inspect()`, all on a single line.
|
242
159
|
*/
|
243
160
|
|
244
161
|
formatters.o = function (v) {
|
245
|
-
|
246
|
-
|
247
|
-
.replace(/\s*\n\s*/g, ' ');
|
162
|
+
this.inspectOpts.colors = this.useColors;
|
163
|
+
return util.inspect(v, this.inspectOpts).replace(/\s*\n\s*/g, ' ');
|
248
164
|
};
|
249
|
-
|
250
165
|
/**
|
251
166
|
* Map %O to `util.inspect()`, allowing multiple lines if needed.
|
252
167
|
*/
|
253
168
|
|
169
|
+
|
254
170
|
formatters.O = function (v) {
|
255
|
-
|
256
|
-
|
171
|
+
this.inspectOpts.colors = this.useColors;
|
172
|
+
return util.inspect(v, this.inspectOpts);
|
257
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/user/Developer/personal/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/user/Developer/personal/fsevents/node_modules/are-we-there-yet",
|
25
25
|
"bugs": {
|
26
26
|
"url": "https://github.com/visionmedia/node-delegates/issues"
|
27
27
|
},
|
@@ -21,13 +21,13 @@
|
|
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/user/Developer/personal/fsevents/node_modules/node-pre-gyp",
|
25
25
|
"author": {
|
26
26
|
"name": "Lovell Fuller",
|
27
27
|
"email": "npm@lovell.info"
|
28
28
|
},
|
29
29
|
"bin": {
|
30
|
-
"detect-libc": "
|
30
|
+
"detect-libc": "bin/detect-libc.js"
|
31
31
|
},
|
32
32
|
"bugs": {
|
33
33
|
"url": "https://github.com/lovell/detect-libc/issues"
|
@@ -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/user/Developer/personal/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/user/Developer/personal/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/user/Developer/personal/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/user/Developer/personal/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/user/Developer/personal/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/user/Developer/personal/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/user/Developer/personal/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/user/Developer/personal/fsevents/node_modules/glob",
|
25
25
|
"author": {
|
26
26
|
"name": "Isaac Z. Schlueter",
|
27
27
|
"email": "i@izs.me",
|