pnpm 6.22.2 → 6.23.3
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/debug/LICENSE +10 -9
- package/dist/node_modules/debug/package.json +6 -6
- package/dist/node_modules/debug/src/common.js +1 -1
- 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 +52779 -4337
- 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
|
@@ -18,43 +18,37 @@
|
|
|
18
18
|
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
19
19
|
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
20
20
|
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
21
|
-
|
|
22
21
|
// a duplex stream is just a stream that is both readable and writable.
|
|
23
22
|
// Since JS doesn't have multiple prototypal inheritance, this class
|
|
24
23
|
// prototypally inherits from Readable, and then parasitically from
|
|
25
24
|
// Writable.
|
|
26
|
-
|
|
27
25
|
'use strict';
|
|
28
|
-
|
|
29
26
|
/*<replacement>*/
|
|
30
27
|
|
|
31
|
-
var pna = require('process-nextick-args');
|
|
32
|
-
/*</replacement>*/
|
|
33
|
-
|
|
34
|
-
/*<replacement>*/
|
|
35
28
|
var objectKeys = Object.keys || function (obj) {
|
|
36
29
|
var keys = [];
|
|
30
|
+
|
|
37
31
|
for (var key in obj) {
|
|
38
32
|
keys.push(key);
|
|
39
|
-
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return keys;
|
|
40
36
|
};
|
|
41
37
|
/*</replacement>*/
|
|
42
38
|
|
|
43
|
-
module.exports = Duplex;
|
|
44
39
|
|
|
45
|
-
|
|
46
|
-
var util = Object.create(require('core-util-is'));
|
|
47
|
-
util.inherits = require('inherits');
|
|
48
|
-
/*</replacement>*/
|
|
40
|
+
module.exports = Duplex;
|
|
49
41
|
|
|
50
42
|
var Readable = require('./_stream_readable');
|
|
43
|
+
|
|
51
44
|
var Writable = require('./_stream_writable');
|
|
52
45
|
|
|
53
|
-
|
|
46
|
+
require('inherits')(Duplex, Readable);
|
|
54
47
|
|
|
55
48
|
{
|
|
56
|
-
//
|
|
49
|
+
// Allow the keys array to be GC'ed.
|
|
57
50
|
var keys = objectKeys(Writable.prototype);
|
|
51
|
+
|
|
58
52
|
for (var v = 0; v < keys.length; v++) {
|
|
59
53
|
var method = keys[v];
|
|
60
54
|
if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method];
|
|
@@ -63,18 +57,19 @@ util.inherits(Duplex, Readable);
|
|
|
63
57
|
|
|
64
58
|
function Duplex(options) {
|
|
65
59
|
if (!(this instanceof Duplex)) return new Duplex(options);
|
|
66
|
-
|
|
67
60
|
Readable.call(this, options);
|
|
68
61
|
Writable.call(this, options);
|
|
69
|
-
|
|
70
|
-
if (options && options.readable === false) this.readable = false;
|
|
71
|
-
|
|
72
|
-
if (options && options.writable === false) this.writable = false;
|
|
73
|
-
|
|
74
62
|
this.allowHalfOpen = true;
|
|
75
|
-
if (options && options.allowHalfOpen === false) this.allowHalfOpen = false;
|
|
76
63
|
|
|
77
|
-
|
|
64
|
+
if (options) {
|
|
65
|
+
if (options.readable === false) this.readable = false;
|
|
66
|
+
if (options.writable === false) this.writable = false;
|
|
67
|
+
|
|
68
|
+
if (options.allowHalfOpen === false) {
|
|
69
|
+
this.allowHalfOpen = false;
|
|
70
|
+
this.once('end', onend);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
78
73
|
}
|
|
79
74
|
|
|
80
75
|
Object.defineProperty(Duplex.prototype, 'writableHighWaterMark', {
|
|
@@ -82,20 +77,35 @@ Object.defineProperty(Duplex.prototype, 'writableHighWaterMark', {
|
|
|
82
77
|
// because otherwise some prototype manipulation in
|
|
83
78
|
// userland will fail
|
|
84
79
|
enumerable: false,
|
|
85
|
-
get: function () {
|
|
80
|
+
get: function get() {
|
|
86
81
|
return this._writableState.highWaterMark;
|
|
87
82
|
}
|
|
88
83
|
});
|
|
84
|
+
Object.defineProperty(Duplex.prototype, 'writableBuffer', {
|
|
85
|
+
// making it explicit this property is not enumerable
|
|
86
|
+
// because otherwise some prototype manipulation in
|
|
87
|
+
// userland will fail
|
|
88
|
+
enumerable: false,
|
|
89
|
+
get: function get() {
|
|
90
|
+
return this._writableState && this._writableState.getBuffer();
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
Object.defineProperty(Duplex.prototype, 'writableLength', {
|
|
94
|
+
// making it explicit this property is not enumerable
|
|
95
|
+
// because otherwise some prototype manipulation in
|
|
96
|
+
// userland will fail
|
|
97
|
+
enumerable: false,
|
|
98
|
+
get: function get() {
|
|
99
|
+
return this._writableState.length;
|
|
100
|
+
}
|
|
101
|
+
}); // the no-half-open enforcer
|
|
89
102
|
|
|
90
|
-
// the no-half-open enforcer
|
|
91
103
|
function onend() {
|
|
92
|
-
//
|
|
93
|
-
//
|
|
94
|
-
if (this.allowHalfOpen || this._writableState.ended) return;
|
|
95
|
-
|
|
96
|
-
// no more data can be written.
|
|
104
|
+
// If the writable side ended, then we're ok.
|
|
105
|
+
if (this._writableState.ended) return; // no more data can be written.
|
|
97
106
|
// But allow more writes to happen in this tick.
|
|
98
|
-
|
|
107
|
+
|
|
108
|
+
process.nextTick(onEndNT, this);
|
|
99
109
|
}
|
|
100
110
|
|
|
101
111
|
function onEndNT(self) {
|
|
@@ -103,29 +113,27 @@ function onEndNT(self) {
|
|
|
103
113
|
}
|
|
104
114
|
|
|
105
115
|
Object.defineProperty(Duplex.prototype, 'destroyed', {
|
|
106
|
-
|
|
116
|
+
// making it explicit this property is not enumerable
|
|
117
|
+
// because otherwise some prototype manipulation in
|
|
118
|
+
// userland will fail
|
|
119
|
+
enumerable: false,
|
|
120
|
+
get: function get() {
|
|
107
121
|
if (this._readableState === undefined || this._writableState === undefined) {
|
|
108
122
|
return false;
|
|
109
123
|
}
|
|
124
|
+
|
|
110
125
|
return this._readableState.destroyed && this._writableState.destroyed;
|
|
111
126
|
},
|
|
112
|
-
set: function (value) {
|
|
127
|
+
set: function set(value) {
|
|
113
128
|
// we ignore the value if the stream
|
|
114
129
|
// has not been initialized yet
|
|
115
130
|
if (this._readableState === undefined || this._writableState === undefined) {
|
|
116
131
|
return;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
// backward compatibility, the user is explicitly
|
|
132
|
+
} // backward compatibility, the user is explicitly
|
|
120
133
|
// managing destroyed
|
|
134
|
+
|
|
135
|
+
|
|
121
136
|
this._readableState.destroyed = value;
|
|
122
137
|
this._writableState.destroyed = value;
|
|
123
138
|
}
|
|
124
|
-
});
|
|
125
|
-
|
|
126
|
-
Duplex.prototype._destroy = function (err, cb) {
|
|
127
|
-
this.push(null);
|
|
128
|
-
this.end();
|
|
129
|
-
|
|
130
|
-
pna.nextTick(cb, err);
|
|
131
|
-
};
|
|
139
|
+
});
|
|
@@ -18,27 +18,19 @@
|
|
|
18
18
|
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
19
19
|
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
20
20
|
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
21
|
-
|
|
22
21
|
// a passthrough stream.
|
|
23
22
|
// basically just the most minimal sort of Transform stream.
|
|
24
23
|
// Every written chunk gets output as-is.
|
|
25
|
-
|
|
26
24
|
'use strict';
|
|
27
25
|
|
|
28
26
|
module.exports = PassThrough;
|
|
29
27
|
|
|
30
28
|
var Transform = require('./_stream_transform');
|
|
31
29
|
|
|
32
|
-
|
|
33
|
-
var util = Object.create(require('core-util-is'));
|
|
34
|
-
util.inherits = require('inherits');
|
|
35
|
-
/*</replacement>*/
|
|
36
|
-
|
|
37
|
-
util.inherits(PassThrough, Transform);
|
|
30
|
+
require('inherits')(PassThrough, Transform);
|
|
38
31
|
|
|
39
32
|
function PassThrough(options) {
|
|
40
33
|
if (!(this instanceof PassThrough)) return new PassThrough(options);
|
|
41
|
-
|
|
42
34
|
Transform.call(this, options);
|
|
43
35
|
}
|
|
44
36
|
|