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.
Files changed (113) hide show
  1. package/dist/node_modules/ansi-regex/index.js +8 -2
  2. package/dist/node_modules/ansi-regex/license +4 -16
  3. package/dist/node_modules/ansi-regex/package.json +53 -62
  4. package/dist/node_modules/aproba/index.js +33 -33
  5. package/dist/node_modules/aproba/package.json +5 -4
  6. package/dist/node_modules/are-we-there-yet/{index.js → lib/index.js} +0 -0
  7. package/dist/node_modules/are-we-there-yet/{tracker-base.js → lib/tracker-base.js} +0 -0
  8. package/dist/node_modules/are-we-there-yet/{tracker-group.js → lib/tracker-group.js} +14 -5
  9. package/dist/node_modules/are-we-there-yet/{tracker-stream.js → lib/tracker-stream.js} +0 -0
  10. package/dist/node_modules/are-we-there-yet/{tracker.js → lib/tracker.js} +3 -1
  11. package/dist/node_modules/are-we-there-yet/package.json +35 -17
  12. package/dist/node_modules/{npmlog → color-support}/LICENSE +0 -0
  13. package/dist/node_modules/color-support/bin.js +3 -0
  14. package/dist/node_modules/color-support/browser.js +14 -0
  15. package/dist/node_modules/color-support/index.js +134 -0
  16. package/dist/node_modules/color-support/package.json +36 -0
  17. package/dist/node_modules/gauge/{base-theme.js → lib/base-theme.js} +7 -3
  18. package/dist/node_modules/gauge/lib/demo.js +45 -0
  19. package/dist/node_modules/gauge/{error.js → lib/error.js} +0 -0
  20. package/dist/node_modules/gauge/lib/has-color.js +4 -0
  21. package/dist/node_modules/gauge/{index.js → lib/index.js} +90 -33
  22. package/dist/node_modules/gauge/{plumbing.js → lib/plumbing.js} +3 -1
  23. package/dist/node_modules/gauge/{process.js → lib/process.js} +0 -0
  24. package/dist/node_modules/gauge/{progress-bar.js → lib/progress-bar.js} +12 -6
  25. package/dist/node_modules/gauge/{render-template.js → lib/render-template.js} +69 -28
  26. package/dist/node_modules/gauge/{set-immediate.js → lib/set-immediate.js} +0 -0
  27. package/dist/node_modules/gauge/{set-interval.js → lib/set-interval.js} +0 -0
  28. package/dist/node_modules/gauge/{spin.js → lib/spin.js} +0 -0
  29. package/dist/node_modules/gauge/{template-item.js → lib/template-item.js} +21 -7
  30. package/dist/node_modules/gauge/{theme-set.js → lib/theme-set.js} +31 -24
  31. package/dist/node_modules/gauge/lib/themes.js +56 -0
  32. package/dist/node_modules/gauge/{wide-truncate.js → lib/wide-truncate.js} +9 -3
  33. package/dist/node_modules/gauge/package.json +39 -40
  34. package/dist/node_modules/is-fullwidth-code-point/index.js +40 -36
  35. package/dist/node_modules/is-fullwidth-code-point/license +4 -16
  36. package/dist/node_modules/is-fullwidth-code-point/package.json +40 -43
  37. package/dist/node_modules/node-gyp/package.json +2 -2
  38. package/dist/node_modules/npmlog/{log.js → lib/log.js} +148 -54
  39. package/dist/node_modules/npmlog/package.json +30 -12
  40. package/dist/node_modules/readable-stream/errors-browser.js +127 -0
  41. package/dist/node_modules/readable-stream/errors.js +116 -0
  42. package/dist/node_modules/readable-stream/experimentalWarning.js +17 -0
  43. package/dist/node_modules/readable-stream/lib/_stream_duplex.js +52 -44
  44. package/dist/node_modules/readable-stream/lib/_stream_passthrough.js +1 -9
  45. package/dist/node_modules/readable-stream/lib/_stream_readable.js +446 -341
  46. package/dist/node_modules/readable-stream/lib/_stream_transform.js +29 -42
  47. package/dist/node_modules/readable-stream/lib/_stream_writable.js +200 -190
  48. package/dist/node_modules/readable-stream/lib/internal/streams/async_iterator.js +207 -0
  49. package/dist/node_modules/readable-stream/lib/internal/streams/buffer_list.js +210 -0
  50. package/dist/node_modules/readable-stream/lib/internal/streams/destroy.js +48 -17
  51. package/dist/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +104 -0
  52. package/dist/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
  53. package/dist/node_modules/readable-stream/lib/internal/streams/from.js +64 -0
  54. package/dist/node_modules/readable-stream/lib/internal/streams/pipeline.js +97 -0
  55. package/dist/node_modules/readable-stream/lib/internal/streams/state.js +27 -0
  56. package/dist/node_modules/readable-stream/package.json +35 -19
  57. package/dist/node_modules/readable-stream/readable-browser.js +2 -0
  58. package/dist/node_modules/readable-stream/readable.js +5 -8
  59. package/dist/node_modules/safe-buffer/index.js +3 -0
  60. package/dist/node_modules/safe-buffer/package.json +18 -4
  61. package/dist/node_modules/signal-exit/index.js +30 -8
  62. package/dist/node_modules/signal-exit/package.json +7 -5
  63. package/dist/node_modules/socks-proxy-agent/package.json +2 -2
  64. package/dist/node_modules/string-width/index.js +29 -19
  65. package/dist/node_modules/string-width/license +4 -16
  66. package/dist/node_modules/string-width/package.json +54 -54
  67. package/dist/node_modules/string_decoder/package.json +5 -2
  68. package/dist/node_modules/strip-ansi/index.js +2 -4
  69. package/dist/node_modules/strip-ansi/license +4 -16
  70. package/dist/node_modules/strip-ansi/package.json +52 -55
  71. package/dist/pnpm.cjs +746 -667
  72. package/package.json +18 -18
  73. package/dist/node_modules/are-we-there-yet/LICENSE +0 -5
  74. package/dist/node_modules/code-point-at/index.js +0 -32
  75. package/dist/node_modules/code-point-at/license +0 -21
  76. package/dist/node_modules/code-point-at/package.json +0 -38
  77. package/dist/node_modules/core-util-is/LICENSE +0 -19
  78. package/dist/node_modules/core-util-is/lib/util.js +0 -107
  79. package/dist/node_modules/core-util-is/package.json +0 -38
  80. package/dist/node_modules/gauge/LICENSE +0 -13
  81. package/dist/node_modules/gauge/has-color.js +0 -12
  82. package/dist/node_modules/gauge/themes.js +0 -54
  83. package/dist/node_modules/isarray/component.json +0 -19
  84. package/dist/node_modules/isarray/index.js +0 -5
  85. package/dist/node_modules/isarray/package.json +0 -45
  86. package/dist/node_modules/isarray/test.js +0 -20
  87. package/dist/node_modules/number-is-nan/index.js +0 -4
  88. package/dist/node_modules/number-is-nan/license +0 -21
  89. package/dist/node_modules/number-is-nan/package.json +0 -35
  90. package/dist/node_modules/object-assign/index.js +0 -90
  91. package/dist/node_modules/object-assign/license +0 -21
  92. package/dist/node_modules/object-assign/package.json +0 -42
  93. package/dist/node_modules/process-nextick-args/index.js +0 -45
  94. package/dist/node_modules/process-nextick-args/package.json +0 -25
  95. package/dist/node_modules/readable-stream/duplex-browser.js +0 -1
  96. package/dist/node_modules/readable-stream/duplex.js +0 -1
  97. package/dist/node_modules/readable-stream/lib/internal/streams/BufferList.js +0 -79
  98. package/dist/node_modules/readable-stream/passthrough.js +0 -1
  99. package/dist/node_modules/readable-stream/transform.js +0 -1
  100. package/dist/node_modules/readable-stream/writable-browser.js +0 -1
  101. package/dist/node_modules/readable-stream/writable.js +0 -8
  102. package/dist/node_modules/wide-align/node_modules/ansi-regex/index.js +0 -10
  103. package/dist/node_modules/wide-align/node_modules/ansi-regex/license +0 -9
  104. package/dist/node_modules/wide-align/node_modules/ansi-regex/package.json +0 -55
  105. package/dist/node_modules/wide-align/node_modules/is-fullwidth-code-point/index.js +0 -50
  106. package/dist/node_modules/wide-align/node_modules/is-fullwidth-code-point/license +0 -9
  107. package/dist/node_modules/wide-align/node_modules/is-fullwidth-code-point/package.json +0 -42
  108. package/dist/node_modules/wide-align/node_modules/string-width/index.js +0 -47
  109. package/dist/node_modules/wide-align/node_modules/string-width/license +0 -9
  110. package/dist/node_modules/wide-align/node_modules/string-width/package.json +0 -56
  111. package/dist/node_modules/wide-align/node_modules/strip-ansi/index.js +0 -4
  112. package/dist/node_modules/wide-align/node_modules/strip-ansi/license +0 -9
  113. package/dist/node_modules/wide-align/node_modules/strip-ansi/package.json +0 -54
@@ -18,7 +18,6 @@
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 transform stream is a readable/writable stream where you do
23
22
  // something with the data. Sometimes it's called a "filter",
24
23
  // but that's not a great name for it, since that implies a thing where
@@ -60,40 +59,37 @@
60
59
  // However, even in such a pathological case, only a single written chunk
61
60
  // would be consumed, and then the rest would wait (un-transformed) until
62
61
  // the results of the previous transformed chunk were consumed.
63
-
64
62
  'use strict';
65
63
 
66
64
  module.exports = Transform;
67
65
 
68
- var Duplex = require('./_stream_duplex');
66
+ var _require$codes = require('../errors').codes,
67
+ ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED,
68
+ ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK,
69
+ ERR_TRANSFORM_ALREADY_TRANSFORMING = _require$codes.ERR_TRANSFORM_ALREADY_TRANSFORMING,
70
+ ERR_TRANSFORM_WITH_LENGTH_0 = _require$codes.ERR_TRANSFORM_WITH_LENGTH_0;
69
71
 
70
- /*<replacement>*/
71
- var util = Object.create(require('core-util-is'));
72
- util.inherits = require('inherits');
73
- /*</replacement>*/
72
+ var Duplex = require('./_stream_duplex');
74
73
 
75
- util.inherits(Transform, Duplex);
74
+ require('inherits')(Transform, Duplex);
76
75
 
77
76
  function afterTransform(er, data) {
78
77
  var ts = this._transformState;
79
78
  ts.transforming = false;
80
-
81
79
  var cb = ts.writecb;
82
80
 
83
- if (!cb) {
84
- return this.emit('error', new Error('write callback called multiple times'));
81
+ if (cb === null) {
82
+ return this.emit('error', new ERR_MULTIPLE_CALLBACK());
85
83
  }
86
84
 
87
85
  ts.writechunk = null;
88
86
  ts.writecb = null;
89
-
90
87
  if (data != null) // single equals check for both `null` and `undefined`
91
88
  this.push(data);
92
-
93
89
  cb(er);
94
-
95
90
  var rs = this._readableState;
96
91
  rs.reading = false;
92
+
97
93
  if (rs.needReadable || rs.length < rs.highWaterMark) {
98
94
  this._read(rs.highWaterMark);
99
95
  }
@@ -101,9 +97,7 @@ function afterTransform(er, data) {
101
97
 
102
98
  function Transform(options) {
103
99
  if (!(this instanceof Transform)) return new Transform(options);
104
-
105
100
  Duplex.call(this, options);
106
-
107
101
  this._transformState = {
108
102
  afterTransform: afterTransform.bind(this),
109
103
  needTransform: false,
@@ -111,30 +105,27 @@ function Transform(options) {
111
105
  writecb: null,
112
106
  writechunk: null,
113
107
  writeencoding: null
114
- };
115
-
116
- // start out asking for a readable event once data is transformed.
117
- this._readableState.needReadable = true;
108
+ }; // start out asking for a readable event once data is transformed.
118
109
 
119
- // we have implemented the _read method, and done the other things
110
+ this._readableState.needReadable = true; // we have implemented the _read method, and done the other things
120
111
  // that Readable wants before the first _read call, so unset the
121
112
  // sync guard flag.
113
+
122
114
  this._readableState.sync = false;
123
115
 
124
116
  if (options) {
125
117
  if (typeof options.transform === 'function') this._transform = options.transform;
126
-
127
118
  if (typeof options.flush === 'function') this._flush = options.flush;
128
- }
119
+ } // When the writable side finishes, then flush out anything remaining.
120
+
129
121
 
130
- // When the writable side finishes, then flush out anything remaining.
131
122
  this.on('prefinish', prefinish);
132
123
  }
133
124
 
134
125
  function prefinish() {
135
126
  var _this = this;
136
127
 
137
- if (typeof this._flush === 'function') {
128
+ if (typeof this._flush === 'function' && !this._readableState.destroyed) {
138
129
  this._flush(function (er, data) {
139
130
  done(_this, er, data);
140
131
  });
@@ -146,9 +137,7 @@ function prefinish() {
146
137
  Transform.prototype.push = function (chunk, encoding) {
147
138
  this._transformState.needTransform = false;
148
139
  return Duplex.prototype.push.call(this, chunk, encoding);
149
- };
150
-
151
- // This is the part where you do stuff!
140
+ }; // This is the part where you do stuff!
152
141
  // override this function in implementation classes.
153
142
  // 'chunk' is an input chunk.
154
143
  //
@@ -158,8 +147,10 @@ Transform.prototype.push = function (chunk, encoding) {
158
147
  // Call `cb(err)` when you are done with this chunk. If you pass
159
148
  // an error, then that'll put the hurt on the whole operation. If you
160
149
  // never call cb(), then you'll never get another chunk.
150
+
151
+
161
152
  Transform.prototype._transform = function (chunk, encoding, cb) {
162
- throw new Error('_transform() is not implemented');
153
+ cb(new ERR_METHOD_NOT_IMPLEMENTED('_transform()'));
163
154
  };
164
155
 
165
156
  Transform.prototype._write = function (chunk, encoding, cb) {
@@ -167,20 +158,22 @@ Transform.prototype._write = function (chunk, encoding, cb) {
167
158
  ts.writecb = cb;
168
159
  ts.writechunk = chunk;
169
160
  ts.writeencoding = encoding;
161
+
170
162
  if (!ts.transforming) {
171
163
  var rs = this._readableState;
172
164
  if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark);
173
165
  }
174
- };
175
-
176
- // Doesn't matter what the args are here.
166
+ }; // Doesn't matter what the args are here.
177
167
  // _transform does all the work.
178
168
  // That we got here means that the readable side wants more data.
169
+
170
+
179
171
  Transform.prototype._read = function (n) {
180
172
  var ts = this._transformState;
181
173
 
182
- if (ts.writechunk !== null && ts.writecb && !ts.transforming) {
174
+ if (ts.writechunk !== null && !ts.transforming) {
183
175
  ts.transforming = true;
176
+
184
177
  this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);
185
178
  } else {
186
179
  // mark that we need a transform, so that any data that comes in
@@ -190,25 +183,19 @@ Transform.prototype._read = function (n) {
190
183
  };
191
184
 
192
185
  Transform.prototype._destroy = function (err, cb) {
193
- var _this2 = this;
194
-
195
186
  Duplex.prototype._destroy.call(this, err, function (err2) {
196
187
  cb(err2);
197
- _this2.emit('close');
198
188
  });
199
189
  };
200
190
 
201
191
  function done(stream, er, data) {
202
192
  if (er) return stream.emit('error', er);
203
-
204
193
  if (data != null) // single equals check for both `null` and `undefined`
205
- stream.push(data);
206
-
194
+ stream.push(data); // TODO(BridgeAR): Write a test for these two error cases
207
195
  // if there's nothing in the write buffer, then that means
208
196
  // that nothing more will ever be provided
209
- if (stream._writableState.length) throw new Error('Calling transform done when ws.length != 0');
210
-
211
- if (stream._transformState.transforming) throw new Error('Calling transform done when still transforming');
212
197
 
198
+ if (stream._writableState.length) throw new ERR_TRANSFORM_WITH_LENGTH_0();
199
+ if (stream._transformState.transforming) throw new ERR_TRANSFORM_ALREADY_TRANSFORMING();
213
200
  return stream.push(null);
214
201
  }