pnpm 6.22.1 → 6.23.2
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/dist/node_modules/ansi-regex/index.js +8 -2
- package/dist/node_modules/ansi-regex/license +4 -16
- package/dist/node_modules/ansi-regex/package.json +53 -62
- package/dist/node_modules/aproba/index.js +33 -33
- package/dist/node_modules/aproba/package.json +5 -4
- package/dist/node_modules/are-we-there-yet/{index.js → lib/index.js} +0 -0
- package/dist/node_modules/are-we-there-yet/{tracker-base.js → lib/tracker-base.js} +0 -0
- package/dist/node_modules/are-we-there-yet/{tracker-group.js → lib/tracker-group.js} +14 -5
- package/dist/node_modules/are-we-there-yet/{tracker-stream.js → lib/tracker-stream.js} +0 -0
- package/dist/node_modules/are-we-there-yet/{tracker.js → lib/tracker.js} +3 -1
- package/dist/node_modules/are-we-there-yet/package.json +35 -17
- package/dist/node_modules/{npmlog → color-support}/LICENSE +0 -0
- package/dist/node_modules/color-support/bin.js +3 -0
- package/dist/node_modules/color-support/browser.js +14 -0
- package/dist/node_modules/color-support/index.js +134 -0
- package/dist/node_modules/color-support/package.json +36 -0
- package/dist/node_modules/gauge/{base-theme.js → lib/base-theme.js} +7 -3
- package/dist/node_modules/gauge/lib/demo.js +45 -0
- package/dist/node_modules/gauge/{error.js → lib/error.js} +0 -0
- package/dist/node_modules/gauge/lib/has-color.js +4 -0
- package/dist/node_modules/gauge/{index.js → lib/index.js} +90 -33
- package/dist/node_modules/gauge/{plumbing.js → lib/plumbing.js} +3 -1
- package/dist/node_modules/gauge/{process.js → lib/process.js} +0 -0
- package/dist/node_modules/gauge/{progress-bar.js → lib/progress-bar.js} +12 -6
- package/dist/node_modules/gauge/{render-template.js → lib/render-template.js} +69 -28
- package/dist/node_modules/gauge/{set-immediate.js → lib/set-immediate.js} +0 -0
- package/dist/node_modules/gauge/{set-interval.js → lib/set-interval.js} +0 -0
- package/dist/node_modules/gauge/{spin.js → lib/spin.js} +0 -0
- package/dist/node_modules/gauge/{template-item.js → lib/template-item.js} +21 -7
- package/dist/node_modules/gauge/{theme-set.js → lib/theme-set.js} +31 -24
- package/dist/node_modules/gauge/lib/themes.js +56 -0
- package/dist/node_modules/gauge/{wide-truncate.js → lib/wide-truncate.js} +9 -3
- package/dist/node_modules/gauge/package.json +39 -40
- package/dist/node_modules/is-fullwidth-code-point/index.js +40 -36
- package/dist/node_modules/is-fullwidth-code-point/license +4 -16
- package/dist/node_modules/is-fullwidth-code-point/package.json +40 -43
- package/dist/node_modules/node-gyp/package.json +2 -2
- package/dist/node_modules/npmlog/{log.js → lib/log.js} +148 -54
- package/dist/node_modules/npmlog/package.json +30 -12
- package/dist/node_modules/readable-stream/errors-browser.js +127 -0
- package/dist/node_modules/readable-stream/errors.js +116 -0
- package/dist/node_modules/readable-stream/experimentalWarning.js +17 -0
- package/dist/node_modules/readable-stream/lib/_stream_duplex.js +52 -44
- package/dist/node_modules/readable-stream/lib/_stream_passthrough.js +1 -9
- package/dist/node_modules/readable-stream/lib/_stream_readable.js +446 -341
- package/dist/node_modules/readable-stream/lib/_stream_transform.js +29 -42
- package/dist/node_modules/readable-stream/lib/_stream_writable.js +200 -190
- package/dist/node_modules/readable-stream/lib/internal/streams/async_iterator.js +207 -0
- package/dist/node_modules/readable-stream/lib/internal/streams/buffer_list.js +210 -0
- package/dist/node_modules/readable-stream/lib/internal/streams/destroy.js +48 -17
- package/dist/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +104 -0
- package/dist/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
- package/dist/node_modules/readable-stream/lib/internal/streams/from.js +64 -0
- package/dist/node_modules/readable-stream/lib/internal/streams/pipeline.js +97 -0
- package/dist/node_modules/readable-stream/lib/internal/streams/state.js +27 -0
- package/dist/node_modules/readable-stream/package.json +35 -19
- package/dist/node_modules/readable-stream/readable-browser.js +2 -0
- package/dist/node_modules/readable-stream/readable.js +5 -8
- package/dist/node_modules/safe-buffer/index.js +3 -0
- package/dist/node_modules/safe-buffer/package.json +18 -4
- package/dist/node_modules/signal-exit/index.js +30 -8
- package/dist/node_modules/signal-exit/package.json +7 -5
- package/dist/node_modules/socks-proxy-agent/package.json +2 -2
- package/dist/node_modules/string-width/index.js +29 -19
- package/dist/node_modules/string-width/license +4 -16
- package/dist/node_modules/string-width/package.json +54 -54
- package/dist/node_modules/string_decoder/package.json +5 -2
- package/dist/node_modules/strip-ansi/index.js +2 -4
- package/dist/node_modules/strip-ansi/license +4 -16
- package/dist/node_modules/strip-ansi/package.json +52 -55
- package/dist/pnpm.cjs +746 -667
- package/package.json +18 -18
- package/dist/node_modules/are-we-there-yet/LICENSE +0 -5
- package/dist/node_modules/code-point-at/index.js +0 -32
- package/dist/node_modules/code-point-at/license +0 -21
- package/dist/node_modules/code-point-at/package.json +0 -38
- package/dist/node_modules/core-util-is/LICENSE +0 -19
- package/dist/node_modules/core-util-is/lib/util.js +0 -107
- package/dist/node_modules/core-util-is/package.json +0 -38
- package/dist/node_modules/gauge/LICENSE +0 -13
- package/dist/node_modules/gauge/has-color.js +0 -12
- package/dist/node_modules/gauge/themes.js +0 -54
- package/dist/node_modules/isarray/component.json +0 -19
- package/dist/node_modules/isarray/index.js +0 -5
- package/dist/node_modules/isarray/package.json +0 -45
- package/dist/node_modules/isarray/test.js +0 -20
- package/dist/node_modules/number-is-nan/index.js +0 -4
- package/dist/node_modules/number-is-nan/license +0 -21
- package/dist/node_modules/number-is-nan/package.json +0 -35
- package/dist/node_modules/object-assign/index.js +0 -90
- package/dist/node_modules/object-assign/license +0 -21
- package/dist/node_modules/object-assign/package.json +0 -42
- package/dist/node_modules/process-nextick-args/index.js +0 -45
- package/dist/node_modules/process-nextick-args/package.json +0 -25
- package/dist/node_modules/readable-stream/duplex-browser.js +0 -1
- package/dist/node_modules/readable-stream/duplex.js +0 -1
- package/dist/node_modules/readable-stream/lib/internal/streams/BufferList.js +0 -79
- package/dist/node_modules/readable-stream/passthrough.js +0 -1
- package/dist/node_modules/readable-stream/transform.js +0 -1
- package/dist/node_modules/readable-stream/writable-browser.js +0 -1
- package/dist/node_modules/readable-stream/writable.js +0 -8
- package/dist/node_modules/wide-align/node_modules/ansi-regex/index.js +0 -10
- package/dist/node_modules/wide-align/node_modules/ansi-regex/license +0 -9
- package/dist/node_modules/wide-align/node_modules/ansi-regex/package.json +0 -55
- package/dist/node_modules/wide-align/node_modules/is-fullwidth-code-point/index.js +0 -50
- package/dist/node_modules/wide-align/node_modules/is-fullwidth-code-point/license +0 -9
- package/dist/node_modules/wide-align/node_modules/is-fullwidth-code-point/package.json +0 -42
- package/dist/node_modules/wide-align/node_modules/string-width/index.js +0 -47
- package/dist/node_modules/wide-align/node_modules/string-width/license +0 -9
- package/dist/node_modules/wide-align/node_modules/string-width/package.json +0 -56
- package/dist/node_modules/wide-align/node_modules/strip-ansi/index.js +0 -4
- package/dist/node_modules/wide-align/node_modules/strip-ansi/license +0 -9
- package/dist/node_modules/wide-align/node_modules/strip-ansi/package.json +0 -54
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
// Ported from https://github.com/mafintosh/pump with
|
|
2
|
+
// permission from the author, Mathias Buus (@mafintosh).
|
|
3
|
+
'use strict';
|
|
4
|
+
|
|
5
|
+
var eos;
|
|
6
|
+
|
|
7
|
+
function once(callback) {
|
|
8
|
+
var called = false;
|
|
9
|
+
return function () {
|
|
10
|
+
if (called) return;
|
|
11
|
+
called = true;
|
|
12
|
+
callback.apply(void 0, arguments);
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
var _require$codes = require('../../../errors').codes,
|
|
17
|
+
ERR_MISSING_ARGS = _require$codes.ERR_MISSING_ARGS,
|
|
18
|
+
ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED;
|
|
19
|
+
|
|
20
|
+
function noop(err) {
|
|
21
|
+
// Rethrow the error if it exists to avoid swallowing it
|
|
22
|
+
if (err) throw err;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function isRequest(stream) {
|
|
26
|
+
return stream.setHeader && typeof stream.abort === 'function';
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function destroyer(stream, reading, writing, callback) {
|
|
30
|
+
callback = once(callback);
|
|
31
|
+
var closed = false;
|
|
32
|
+
stream.on('close', function () {
|
|
33
|
+
closed = true;
|
|
34
|
+
});
|
|
35
|
+
if (eos === undefined) eos = require('./end-of-stream');
|
|
36
|
+
eos(stream, {
|
|
37
|
+
readable: reading,
|
|
38
|
+
writable: writing
|
|
39
|
+
}, function (err) {
|
|
40
|
+
if (err) return callback(err);
|
|
41
|
+
closed = true;
|
|
42
|
+
callback();
|
|
43
|
+
});
|
|
44
|
+
var destroyed = false;
|
|
45
|
+
return function (err) {
|
|
46
|
+
if (closed) return;
|
|
47
|
+
if (destroyed) return;
|
|
48
|
+
destroyed = true; // request.destroy just do .end - .abort is what we want
|
|
49
|
+
|
|
50
|
+
if (isRequest(stream)) return stream.abort();
|
|
51
|
+
if (typeof stream.destroy === 'function') return stream.destroy();
|
|
52
|
+
callback(err || new ERR_STREAM_DESTROYED('pipe'));
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
function call(fn) {
|
|
57
|
+
fn();
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function pipe(from, to) {
|
|
61
|
+
return from.pipe(to);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function popCallback(streams) {
|
|
65
|
+
if (!streams.length) return noop;
|
|
66
|
+
if (typeof streams[streams.length - 1] !== 'function') return noop;
|
|
67
|
+
return streams.pop();
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
function pipeline() {
|
|
71
|
+
for (var _len = arguments.length, streams = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
72
|
+
streams[_key] = arguments[_key];
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
var callback = popCallback(streams);
|
|
76
|
+
if (Array.isArray(streams[0])) streams = streams[0];
|
|
77
|
+
|
|
78
|
+
if (streams.length < 2) {
|
|
79
|
+
throw new ERR_MISSING_ARGS('streams');
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
var error;
|
|
83
|
+
var destroys = streams.map(function (stream, i) {
|
|
84
|
+
var reading = i < streams.length - 1;
|
|
85
|
+
var writing = i > 0;
|
|
86
|
+
return destroyer(stream, reading, writing, function (err) {
|
|
87
|
+
if (!error) error = err;
|
|
88
|
+
if (err) destroys.forEach(call);
|
|
89
|
+
if (reading) return;
|
|
90
|
+
destroys.forEach(call);
|
|
91
|
+
callback(error);
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
return streams.reduce(pipe);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
module.exports = pipeline;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var ERR_INVALID_OPT_VALUE = require('../../../errors').codes.ERR_INVALID_OPT_VALUE;
|
|
4
|
+
|
|
5
|
+
function highWaterMarkFrom(options, isDuplex, duplexKey) {
|
|
6
|
+
return options.highWaterMark != null ? options.highWaterMark : isDuplex ? options[duplexKey] : null;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
function getHighWaterMark(state, options, duplexKey, isDuplex) {
|
|
10
|
+
var hwm = highWaterMarkFrom(options, isDuplex, duplexKey);
|
|
11
|
+
|
|
12
|
+
if (hwm != null) {
|
|
13
|
+
if (!(isFinite(hwm) && Math.floor(hwm) === hwm) || hwm < 0) {
|
|
14
|
+
var name = isDuplex ? duplexKey : 'highWaterMark';
|
|
15
|
+
throw new ERR_INVALID_OPT_VALUE(name, hwm);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
return Math.floor(hwm);
|
|
19
|
+
} // Default value
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
return state.objectMode ? 16 : 16 * 1024;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
module.exports = {
|
|
26
|
+
getHighWaterMark: getHighWaterMark
|
|
27
|
+
};
|
|
@@ -1,31 +1,46 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "readable-stream",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.6.0",
|
|
4
4
|
"description": "Streams3, a user-land copy of the stream library from Node.js",
|
|
5
5
|
"main": "readable.js",
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": ">= 6"
|
|
8
|
+
},
|
|
6
9
|
"dependencies": {
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"process-nextick-args": "~2.0.0",
|
|
11
|
-
"safe-buffer": "~5.1.1",
|
|
12
|
-
"string_decoder": "~1.1.1",
|
|
13
|
-
"util-deprecate": "~1.0.1"
|
|
10
|
+
"inherits": "^2.0.3",
|
|
11
|
+
"string_decoder": "^1.1.1",
|
|
12
|
+
"util-deprecate": "^1.0.1"
|
|
14
13
|
},
|
|
15
14
|
"devDependencies": {
|
|
15
|
+
"@babel/cli": "^7.2.0",
|
|
16
|
+
"@babel/core": "^7.2.0",
|
|
17
|
+
"@babel/polyfill": "^7.0.0",
|
|
18
|
+
"@babel/preset-env": "^7.2.0",
|
|
19
|
+
"airtap": "0.0.9",
|
|
16
20
|
"assert": "^1.4.0",
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
21
|
+
"bl": "^2.0.0",
|
|
22
|
+
"deep-strict-equal": "^0.2.0",
|
|
23
|
+
"events.once": "^2.0.2",
|
|
24
|
+
"glob": "^7.1.2",
|
|
25
|
+
"gunzip-maybe": "^1.4.1",
|
|
26
|
+
"hyperquest": "^2.1.3",
|
|
27
|
+
"lolex": "^2.6.0",
|
|
28
|
+
"nyc": "^11.0.0",
|
|
29
|
+
"pump": "^3.0.0",
|
|
30
|
+
"rimraf": "^2.6.2",
|
|
31
|
+
"tap": "^12.0.0",
|
|
32
|
+
"tape": "^4.9.0",
|
|
33
|
+
"tar-fs": "^1.16.2",
|
|
34
|
+
"util-promisify": "^2.1.0"
|
|
23
35
|
},
|
|
24
36
|
"scripts": {
|
|
25
|
-
"test": "tap test/parallel/*.js test/ours/*.js
|
|
26
|
-
"ci": "tap test/parallel/*.js test/ours/*.js
|
|
37
|
+
"test": "tap -J --no-esm test/parallel/*.js test/ours/*.js",
|
|
38
|
+
"ci": "TAP=1 tap --no-esm test/parallel/*.js test/ours/*.js | tee test.tap",
|
|
39
|
+
"test-browsers": "airtap --sauce-connect --loopback airtap.local -- test/browser.js",
|
|
40
|
+
"test-browser-local": "airtap --open --local -- test/browser.js",
|
|
27
41
|
"cover": "nyc npm test",
|
|
28
|
-
"report": "nyc report --reporter=lcov"
|
|
42
|
+
"report": "nyc report --reporter=lcov",
|
|
43
|
+
"update-browser-errors": "babel -o errors-browser.js errors.js"
|
|
29
44
|
},
|
|
30
45
|
"repository": {
|
|
31
46
|
"type": "git",
|
|
@@ -38,9 +53,10 @@
|
|
|
38
53
|
],
|
|
39
54
|
"browser": {
|
|
40
55
|
"util": false,
|
|
56
|
+
"worker_threads": false,
|
|
57
|
+
"./errors": "./errors-browser.js",
|
|
41
58
|
"./readable.js": "./readable-browser.js",
|
|
42
|
-
"./
|
|
43
|
-
"./duplex.js": "./duplex-browser.js",
|
|
59
|
+
"./lib/internal/streams/from.js": "./lib/internal/streams/from-browser.js",
|
|
44
60
|
"./lib/internal/streams/stream.js": "./lib/internal/streams/stream-browser.js"
|
|
45
61
|
},
|
|
46
62
|
"nyc": {
|
|
@@ -5,3 +5,5 @@ exports.Writable = require('./lib/_stream_writable.js');
|
|
|
5
5
|
exports.Duplex = require('./lib/_stream_duplex.js');
|
|
6
6
|
exports.Transform = require('./lib/_stream_transform.js');
|
|
7
7
|
exports.PassThrough = require('./lib/_stream_passthrough.js');
|
|
8
|
+
exports.finished = require('./lib/internal/streams/end-of-stream.js');
|
|
9
|
+
exports.pipeline = require('./lib/internal/streams/pipeline.js');
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
var Stream = require('stream');
|
|
2
2
|
if (process.env.READABLE_STREAM === 'disable' && Stream) {
|
|
3
|
-
module.exports = Stream;
|
|
4
|
-
|
|
5
|
-
exports.
|
|
6
|
-
exports.Writable = Stream.Writable;
|
|
7
|
-
exports.Duplex = Stream.Duplex;
|
|
8
|
-
exports.Transform = Stream.Transform;
|
|
9
|
-
exports.PassThrough = Stream.PassThrough;
|
|
10
|
-
exports.Stream = Stream;
|
|
3
|
+
module.exports = Stream.Readable;
|
|
4
|
+
Object.assign(module.exports, Stream);
|
|
5
|
+
module.exports.Stream = Stream;
|
|
11
6
|
} else {
|
|
12
7
|
exports = module.exports = require('./lib/_stream_readable.js');
|
|
13
8
|
exports.Stream = Stream || exports;
|
|
@@ -16,4 +11,6 @@ if (process.env.READABLE_STREAM === 'disable' && Stream) {
|
|
|
16
11
|
exports.Duplex = require('./lib/_stream_duplex.js');
|
|
17
12
|
exports.Transform = require('./lib/_stream_transform.js');
|
|
18
13
|
exports.PassThrough = require('./lib/_stream_passthrough.js');
|
|
14
|
+
exports.finished = require('./lib/internal/streams/end-of-stream.js');
|
|
15
|
+
exports.pipeline = require('./lib/internal/streams/pipeline.js');
|
|
19
16
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
1
2
|
/* eslint-disable node/no-deprecated-api */
|
|
2
3
|
var buffer = require('buffer')
|
|
3
4
|
var Buffer = buffer.Buffer
|
|
@@ -20,6 +21,8 @@ function SafeBuffer (arg, encodingOrOffset, length) {
|
|
|
20
21
|
return Buffer(arg, encodingOrOffset, length)
|
|
21
22
|
}
|
|
22
23
|
|
|
24
|
+
SafeBuffer.prototype = Object.create(Buffer.prototype)
|
|
25
|
+
|
|
23
26
|
// Copy static methods from Buffer
|
|
24
27
|
copyProps(Buffer, SafeBuffer)
|
|
25
28
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "safe-buffer",
|
|
3
3
|
"description": "Safer Node.js Buffer API",
|
|
4
|
-
"version": "5.1
|
|
4
|
+
"version": "5.2.1",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Feross Aboukhadijeh",
|
|
7
7
|
"email": "feross@feross.org",
|
|
8
|
-
"url": "
|
|
8
|
+
"url": "https://feross.org"
|
|
9
9
|
},
|
|
10
10
|
"bugs": {
|
|
11
11
|
"url": "https://github.com/feross/safe-buffer/issues"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"standard": "*",
|
|
15
|
-
"tape": "^
|
|
15
|
+
"tape": "^5.0.0"
|
|
16
16
|
},
|
|
17
17
|
"homepage": "https://github.com/feross/safe-buffer",
|
|
18
18
|
"keywords": [
|
|
@@ -33,5 +33,19 @@
|
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"test": "standard && tape test/*.js"
|
|
36
|
-
}
|
|
36
|
+
},
|
|
37
|
+
"funding": [
|
|
38
|
+
{
|
|
39
|
+
"type": "github",
|
|
40
|
+
"url": "https://github.com/sponsors/feross"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"type": "patreon",
|
|
44
|
+
"url": "https://www.patreon.com/feross"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"type": "consulting",
|
|
48
|
+
"url": "https://feross.org/support"
|
|
49
|
+
}
|
|
50
|
+
]
|
|
37
51
|
}
|
|
@@ -3,8 +3,22 @@
|
|
|
3
3
|
// ignored, since we can never get coverage for them.
|
|
4
4
|
// grab a reference to node's real process object right away
|
|
5
5
|
var process = global.process
|
|
6
|
+
|
|
7
|
+
const processOk = function (process) {
|
|
8
|
+
return process &&
|
|
9
|
+
typeof process === 'object' &&
|
|
10
|
+
typeof process.removeListener === 'function' &&
|
|
11
|
+
typeof process.emit === 'function' &&
|
|
12
|
+
typeof process.reallyExit === 'function' &&
|
|
13
|
+
typeof process.listeners === 'function' &&
|
|
14
|
+
typeof process.kill === 'function' &&
|
|
15
|
+
typeof process.pid === 'number' &&
|
|
16
|
+
typeof process.on === 'function'
|
|
17
|
+
}
|
|
18
|
+
|
|
6
19
|
// some kind of non-node environment, just no-op
|
|
7
|
-
|
|
20
|
+
/* istanbul ignore if */
|
|
21
|
+
if (!processOk(process)) {
|
|
8
22
|
module.exports = function () {}
|
|
9
23
|
} else {
|
|
10
24
|
var assert = require('assert')
|
|
@@ -36,7 +50,8 @@ if (typeof process !== 'object' || !process) {
|
|
|
36
50
|
}
|
|
37
51
|
|
|
38
52
|
module.exports = function (cb, opts) {
|
|
39
|
-
|
|
53
|
+
/* istanbul ignore if */
|
|
54
|
+
if (!processOk(global.process)) {
|
|
40
55
|
return
|
|
41
56
|
}
|
|
42
57
|
assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler')
|
|
@@ -63,7 +78,7 @@ if (typeof process !== 'object' || !process) {
|
|
|
63
78
|
}
|
|
64
79
|
|
|
65
80
|
var unload = function unload () {
|
|
66
|
-
if (!loaded || global.process
|
|
81
|
+
if (!loaded || !processOk(global.process)) {
|
|
67
82
|
return
|
|
68
83
|
}
|
|
69
84
|
loaded = false
|
|
@@ -80,6 +95,7 @@ if (typeof process !== 'object' || !process) {
|
|
|
80
95
|
module.exports.unload = unload
|
|
81
96
|
|
|
82
97
|
var emit = function emit (event, code, signal) {
|
|
98
|
+
/* istanbul ignore if */
|
|
83
99
|
if (emitter.emitted[event]) {
|
|
84
100
|
return
|
|
85
101
|
}
|
|
@@ -91,7 +107,8 @@ if (typeof process !== 'object' || !process) {
|
|
|
91
107
|
var sigListeners = {}
|
|
92
108
|
signals.forEach(function (sig) {
|
|
93
109
|
sigListeners[sig] = function listener () {
|
|
94
|
-
|
|
110
|
+
/* istanbul ignore if */
|
|
111
|
+
if (!processOk(global.process)) {
|
|
95
112
|
return
|
|
96
113
|
}
|
|
97
114
|
// If there are no other listeners, an exit is coming!
|
|
@@ -110,6 +127,7 @@ if (typeof process !== 'object' || !process) {
|
|
|
110
127
|
// so use a supported signal instead
|
|
111
128
|
sig = 'SIGINT'
|
|
112
129
|
}
|
|
130
|
+
/* istanbul ignore next */
|
|
113
131
|
process.kill(process.pid, sig)
|
|
114
132
|
}
|
|
115
133
|
}
|
|
@@ -122,7 +140,7 @@ if (typeof process !== 'object' || !process) {
|
|
|
122
140
|
var loaded = false
|
|
123
141
|
|
|
124
142
|
var load = function load () {
|
|
125
|
-
if (loaded ||
|
|
143
|
+
if (loaded || !processOk(global.process)) {
|
|
126
144
|
return
|
|
127
145
|
}
|
|
128
146
|
loaded = true
|
|
@@ -149,10 +167,11 @@ if (typeof process !== 'object' || !process) {
|
|
|
149
167
|
|
|
150
168
|
var originalProcessReallyExit = process.reallyExit
|
|
151
169
|
var processReallyExit = function processReallyExit (code) {
|
|
152
|
-
|
|
170
|
+
/* istanbul ignore if */
|
|
171
|
+
if (!processOk(global.process)) {
|
|
153
172
|
return
|
|
154
173
|
}
|
|
155
|
-
process.exitCode = code || 0
|
|
174
|
+
process.exitCode = code || /* istanbul ignore next */ 0
|
|
156
175
|
emit('exit', process.exitCode, null)
|
|
157
176
|
/* istanbul ignore next */
|
|
158
177
|
emit('afterexit', process.exitCode, null)
|
|
@@ -162,14 +181,17 @@ if (typeof process !== 'object' || !process) {
|
|
|
162
181
|
|
|
163
182
|
var originalProcessEmit = process.emit
|
|
164
183
|
var processEmit = function processEmit (ev, arg) {
|
|
165
|
-
if (ev === 'exit' &&
|
|
184
|
+
if (ev === 'exit' && processOk(global.process)) {
|
|
185
|
+
/* istanbul ignore else */
|
|
166
186
|
if (arg !== undefined) {
|
|
167
187
|
process.exitCode = arg
|
|
168
188
|
}
|
|
169
189
|
var ret = originalProcessEmit.apply(this, arguments)
|
|
190
|
+
/* istanbul ignore next */
|
|
170
191
|
emit('exit', process.exitCode, null)
|
|
171
192
|
/* istanbul ignore next */
|
|
172
193
|
emit('afterexit', process.exitCode, null)
|
|
194
|
+
/* istanbul ignore next */
|
|
173
195
|
return ret
|
|
174
196
|
} else {
|
|
175
197
|
return originalProcessEmit.apply(this, arguments)
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "signal-exit",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.6",
|
|
4
4
|
"description": "when you want to fire an event no matter how a process exits.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"test": "tap
|
|
8
|
-
"
|
|
9
|
-
"
|
|
7
|
+
"test": "tap",
|
|
8
|
+
"snap": "tap",
|
|
9
|
+
"preversion": "npm test",
|
|
10
|
+
"postversion": "npm publish",
|
|
11
|
+
"prepublishOnly": "git push origin --follow-tags"
|
|
10
12
|
},
|
|
11
13
|
"files": [
|
|
12
14
|
"index.js",
|
|
@@ -31,6 +33,6 @@
|
|
|
31
33
|
"coveralls": "^3.1.1",
|
|
32
34
|
"nyc": "^15.1.0",
|
|
33
35
|
"standard-version": "^9.3.1",
|
|
34
|
-
"tap": "^15.
|
|
36
|
+
"tap": "^15.1.1"
|
|
35
37
|
}
|
|
36
38
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "socks-proxy-agent",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.1",
|
|
4
4
|
"description": "A SOCKS proxy `http.Agent` implementation for HTTP and HTTPS",
|
|
5
5
|
"main": "dist/index",
|
|
6
|
-
"typings": "dist/index",
|
|
6
|
+
"typings": "dist/index.d.ts",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|
|
9
9
|
],
|
|
@@ -1,37 +1,47 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
const stripAnsi = require('strip-ansi');
|
|
3
|
+
const isFullwidthCodePoint = require('is-fullwidth-code-point');
|
|
4
|
+
const emojiRegex = require('emoji-regex');
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
if (typeof str !== 'string' || str.length === 0) {
|
|
6
|
+
const stringWidth = string => {
|
|
7
|
+
if (typeof string !== 'string' || string.length === 0) {
|
|
9
8
|
return 0;
|
|
10
9
|
}
|
|
11
10
|
|
|
12
|
-
|
|
11
|
+
string = stripAnsi(string);
|
|
13
12
|
|
|
14
|
-
|
|
13
|
+
if (string.length === 0) {
|
|
14
|
+
return 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
string = string.replace(emojiRegex(), ' ');
|
|
15
18
|
|
|
16
|
-
|
|
17
|
-
var code = codePointAt(str, i);
|
|
19
|
+
let width = 0;
|
|
18
20
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
for (let i = 0; i < string.length; i++) {
|
|
22
|
+
const code = string.codePointAt(i);
|
|
23
|
+
|
|
24
|
+
// Ignore control characters
|
|
25
|
+
if (code <= 0x1F || (code >= 0x7F && code <= 0x9F)) {
|
|
21
26
|
continue;
|
|
22
27
|
}
|
|
23
28
|
|
|
24
|
-
//
|
|
25
|
-
if (code >=
|
|
26
|
-
|
|
29
|
+
// Ignore combining characters
|
|
30
|
+
if (code >= 0x300 && code <= 0x36F) {
|
|
31
|
+
continue;
|
|
27
32
|
}
|
|
28
33
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
width++;
|
|
34
|
+
// Surrogates
|
|
35
|
+
if (code > 0xFFFF) {
|
|
36
|
+
i++;
|
|
33
37
|
}
|
|
38
|
+
|
|
39
|
+
width += isFullwidthCodePoint(code) ? 2 : 1;
|
|
34
40
|
}
|
|
35
41
|
|
|
36
42
|
return width;
|
|
37
43
|
};
|
|
44
|
+
|
|
45
|
+
module.exports = stringWidth;
|
|
46
|
+
// TODO: remove this in the next major version
|
|
47
|
+
module.exports.default = stringWidth;
|
|
@@ -1,21 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
MIT License
|
|
2
2
|
|
|
3
3
|
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
4
4
|
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
11
6
|
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
all copies or substantial portions of the Software.
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
14
8
|
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
THE SOFTWARE.
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
2
|
+
"name": "string-width",
|
|
3
|
+
"version": "4.2.3",
|
|
4
|
+
"description": "Get the visual width of a string - the number of columns required to display it",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "sindresorhus/string-width",
|
|
7
|
+
"author": {
|
|
8
|
+
"name": "Sindre Sorhus",
|
|
9
|
+
"email": "sindresorhus@gmail.com",
|
|
10
|
+
"url": "sindresorhus.com"
|
|
11
|
+
},
|
|
12
|
+
"engines": {
|
|
13
|
+
"node": ">=8"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"test": "xo && ava && tsd"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"index.js",
|
|
20
|
+
"index.d.ts"
|
|
21
|
+
],
|
|
22
|
+
"keywords": [
|
|
23
|
+
"string",
|
|
24
|
+
"character",
|
|
25
|
+
"unicode",
|
|
26
|
+
"width",
|
|
27
|
+
"visual",
|
|
28
|
+
"column",
|
|
29
|
+
"columns",
|
|
30
|
+
"fullwidth",
|
|
31
|
+
"full-width",
|
|
32
|
+
"full",
|
|
33
|
+
"ansi",
|
|
34
|
+
"escape",
|
|
35
|
+
"codes",
|
|
36
|
+
"cli",
|
|
37
|
+
"command-line",
|
|
38
|
+
"terminal",
|
|
39
|
+
"console",
|
|
40
|
+
"cjk",
|
|
41
|
+
"chinese",
|
|
42
|
+
"japanese",
|
|
43
|
+
"korean",
|
|
44
|
+
"fixed-width"
|
|
45
|
+
],
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"emoji-regex": "^8.0.0",
|
|
48
|
+
"is-fullwidth-code-point": "^3.0.0",
|
|
49
|
+
"strip-ansi": "^6.0.1"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"ava": "^1.4.1",
|
|
53
|
+
"tsd": "^0.7.1",
|
|
54
|
+
"xo": "^0.24.0"
|
|
55
|
+
}
|
|
56
56
|
}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "string_decoder",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "The string_decoder module from Node core",
|
|
5
5
|
"main": "lib/string_decoder.js",
|
|
6
|
+
"files": [
|
|
7
|
+
"lib"
|
|
8
|
+
],
|
|
6
9
|
"dependencies": {
|
|
7
|
-
"safe-buffer": "~5.
|
|
10
|
+
"safe-buffer": "~5.2.0"
|
|
8
11
|
},
|
|
9
12
|
"devDependencies": {
|
|
10
13
|
"babel-polyfill": "^6.23.0",
|