@scrabble-solver/scrabble-solver 2.10.11 → 2.11.0
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/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +12 -12
- package/.next/cache/.tsbuildinfo +1 -1
- package/.next/cache/eslint/.cache_8dgz12 +1 -1
- package/.next/cache/next-server.js.nft.json +1 -1
- package/.next/cache/webpack/client-production/0.pack +0 -0
- package/.next/cache/webpack/client-production/index.pack +0 -0
- package/.next/cache/webpack/edge-server-production/0.pack +0 -0
- package/.next/cache/webpack/edge-server-production/index.pack +0 -0
- package/.next/cache/webpack/server-production/0.pack +0 -0
- package/.next/cache/webpack/server-production/index.pack +0 -0
- package/.next/next-server.js.nft.json +1 -1
- package/.next/prerender-manifest.json +1 -1
- package/.next/required-server-files.json +1 -1
- package/.next/routes-manifest.json +1 -1
- package/.next/server/chunks/{176.js → 277.js} +734 -590
- package/.next/server/chunks/{290.js → 417.js} +3 -3
- package/.next/server/chunks/50.js +371 -343
- package/.next/server/chunks/664.js +15 -15
- package/.next/server/chunks/859.js +17 -10
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/next-font-manifest.js +1 -0
- package/.next/server/pages/404.html +2 -2
- package/.next/server/pages/404.js.nft.json +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/pages/_app.js +4 -4
- package/.next/server/pages/_app.js.nft.json +1 -1
- package/.next/server/pages/_document.js +2 -2
- package/.next/server/pages/_document.js.nft.json +1 -1
- package/.next/server/pages/_error.js +4 -4
- package/.next/server/pages/api/dictionary/[locale]/[word].js +4 -4
- package/.next/server/pages/api/dictionary/[locale]/[word].js.nft.json +1 -1
- package/.next/server/pages/api/dictionary/[locale].js +3 -3
- package/.next/server/pages/api/dictionary/[locale].js.nft.json +1 -1
- package/.next/server/pages/api/solve.js +9 -10
- package/.next/server/pages/api/solve.js.nft.json +1 -1
- package/.next/server/pages/api/verify.js +3 -3
- package/.next/server/pages/api/verify.js.nft.json +1 -1
- package/.next/server/pages/api/visit.js +3 -3
- package/.next/server/pages/api/visit.js.nft.json +1 -1
- package/.next/server/pages/index.html +1 -1
- package/.next/server/pages/index.js +253 -159
- package/.next/server/pages/index.js.nft.json +1 -1
- package/.next/server/pages/index.json +1 -1
- package/.next/static/45ye7793DY705HOcuK9lJ/_buildManifest.js +1 -0
- package/.next/static/chunks/main-0ecb9ccfcb6c9b24.js +1 -0
- package/.next/static/chunks/pages/404-e0f30450e9920dc3.js +1 -0
- package/.next/static/chunks/pages/_app-d7acee5e526752d9.js +28 -0
- package/.next/static/chunks/pages/{_error-8353112a01355ec2.js → _error-54de1933a164a1ff.js} +1 -1
- package/.next/static/chunks/pages/index-35d2c1c79a201ae2.js +1 -0
- package/.next/static/css/a48caa6f57de6e98.css +1 -0
- package/.next/static/css/c49bbe944ddd1b39.css +2 -0
- package/.next/trace +55 -55
- package/package.json +12 -12
- package/src/components/Board/components/Cell/Cell.module.scss +1 -0
- package/src/components/Board/hooks/useGrid.ts +1 -1
- package/src/components/Dictionary/Dictionary.module.scss +13 -8
- package/src/components/Dictionary/Dictionary.tsx +5 -5
- package/src/components/Loading/Loading.tsx +1 -1
- package/src/components/Modal/Modal.module.scss +0 -1
- package/src/components/NavButtons/NavButtons.tsx +4 -5
- package/src/components/Results/Results.module.scss +5 -2
- package/src/components/Results/Results.tsx +11 -11
- package/src/components/Solver/Solver.module.scss +1 -0
- package/src/components/Solver/Solver.tsx +13 -26
- package/src/components/Solver/components/FloatingSolveButton/FloatingSolveButton.module.scss +7 -0
- package/src/components/Solver/components/{SolveButton/SolveButton.tsx → FloatingSolveButton/FloatingSolveButton.tsx} +6 -6
- package/src/components/Solver/components/FloatingSolveButton/index.ts +1 -0
- package/src/components/Solver/components/ResultCandidatePicker/ResultCandidatePicker.module.scss +19 -4
- package/src/components/Solver/components/ResultCandidatePicker/ResultCandidatePicker.tsx +13 -1
- package/src/components/Solver/components/index.ts +1 -1
- package/src/components/Spinner/Spinner.module.scss +11 -0
- package/src/components/Spinner/Spinner.tsx +19 -0
- package/src/components/Spinner/index.ts +1 -0
- package/src/components/Tile/Tile.tsx +5 -5
- package/src/components/index.ts +1 -0
- package/src/hooks/index.ts +1 -0
- package/src/hooks/useAppLayout.ts +29 -0
- package/src/i18n/de.json +1 -0
- package/src/i18n/en.json +1 -0
- package/src/i18n/es.json +1 -0
- package/src/i18n/fa.json +1 -0
- package/src/i18n/fr.json +1 -0
- package/src/i18n/index.ts +1 -1
- package/src/i18n/pl.json +1 -0
- package/src/modals/DictionaryModal/DictionaryModal.module.scss +18 -0
- package/src/modals/DictionaryModal/DictionaryModal.tsx +27 -0
- package/src/modals/DictionaryModal/index.ts +1 -0
- package/src/modals/MenuModal/MenuModal.tsx +7 -1
- package/src/modals/ResultsModal/ResultsModal.module.scss +18 -0
- package/src/modals/ResultsModal/ResultsModal.tsx +8 -7
- package/src/modals/index.ts +1 -0
- package/src/pages/api/solve.ts +9 -10
- package/src/pages/index.tsx +20 -15
- package/src/state/localStorage.ts +0 -9
- package/src/styles/animations.scss +10 -0
- package/src/styles/global.scss +1 -1
- package/src/styles/variables.scss +1 -1
- package/src/types/index.ts +1 -0
- package/.next/server/font-loader-manifest.js +0 -1
- package/.next/static/chunks/main-74c4d6b2b5c362f3.js +0 -1
- package/.next/static/chunks/pages/404-6c1a6e3251710371.js +0 -1
- package/.next/static/chunks/pages/_app-d98e480ff8c583de.js +0 -28
- package/.next/static/chunks/pages/index-bd1c7d3872c37456.js +0 -1
- package/.next/static/css/a9b55372a26cf77d.css +0 -1
- package/.next/static/css/b8954b85e2fa5b63.css +0 -2
- package/.next/static/msKI0ZURgJImoGBJvCBiF/_buildManifest.js +0 -1
- package/src/components/Solver/components/SolveButton/SolveButton.module.scss +0 -4
- package/src/components/Solver/components/SolveButton/index.ts +0 -1
- /package/.next/server/{font-loader-manifest.json → next-font-manifest.json} +0 -0
- /package/.next/static/{msKI0ZURgJImoGBJvCBiF → 45ye7793DY705HOcuK9lJ}/_ssgManifest.js +0 -0
|
@@ -1165,7 +1165,7 @@ module.exports = exports['default'];
|
|
|
1165
1165
|
|
|
1166
1166
|
/***/ }),
|
|
1167
1167
|
|
|
1168
|
-
/***/
|
|
1168
|
+
/***/ 36274:
|
|
1169
1169
|
/***/ ((module, exports, __webpack_require__) => {
|
|
1170
1170
|
|
|
1171
1171
|
"use strict";
|
|
@@ -1467,7 +1467,7 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
1467
1467
|
value: true
|
|
1468
1468
|
}));
|
|
1469
1469
|
|
|
1470
|
-
var _eachOf = __webpack_require__(
|
|
1470
|
+
var _eachOf = __webpack_require__(36274);
|
|
1471
1471
|
|
|
1472
1472
|
var _eachOf2 = _interopRequireDefault(_eachOf);
|
|
1473
1473
|
|
|
@@ -4354,14 +4354,14 @@ var objectKeys = Object.keys || function (obj) {
|
|
|
4354
4354
|
/*</replacement>*/
|
|
4355
4355
|
|
|
4356
4356
|
module.exports = Duplex;
|
|
4357
|
-
|
|
4358
|
-
|
|
4357
|
+
var Readable = __webpack_require__(46560);
|
|
4358
|
+
var Writable = __webpack_require__(28168);
|
|
4359
4359
|
__webpack_require__(90838)(Duplex, Readable);
|
|
4360
4360
|
{
|
|
4361
4361
|
// Allow the keys array to be GC'ed.
|
|
4362
|
-
|
|
4362
|
+
var keys = objectKeys(Writable.prototype);
|
|
4363
4363
|
for (var v = 0; v < keys.length; v++) {
|
|
4364
|
-
|
|
4364
|
+
var method = keys[v];
|
|
4365
4365
|
if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method];
|
|
4366
4366
|
}
|
|
4367
4367
|
}
|
|
@@ -4384,7 +4384,7 @@ Object.defineProperty(Duplex.prototype, 'writableHighWaterMark', {
|
|
|
4384
4384
|
// because otherwise some prototype manipulation in
|
|
4385
4385
|
// userland will fail
|
|
4386
4386
|
enumerable: false,
|
|
4387
|
-
get() {
|
|
4387
|
+
get: function get() {
|
|
4388
4388
|
return this._writableState.highWaterMark;
|
|
4389
4389
|
}
|
|
4390
4390
|
});
|
|
@@ -4402,7 +4402,7 @@ Object.defineProperty(Duplex.prototype, 'writableLength', {
|
|
|
4402
4402
|
// because otherwise some prototype manipulation in
|
|
4403
4403
|
// userland will fail
|
|
4404
4404
|
enumerable: false,
|
|
4405
|
-
get() {
|
|
4405
|
+
get: function get() {
|
|
4406
4406
|
return this._writableState.length;
|
|
4407
4407
|
}
|
|
4408
4408
|
});
|
|
@@ -4424,13 +4424,13 @@ Object.defineProperty(Duplex.prototype, 'destroyed', {
|
|
|
4424
4424
|
// because otherwise some prototype manipulation in
|
|
4425
4425
|
// userland will fail
|
|
4426
4426
|
enumerable: false,
|
|
4427
|
-
get() {
|
|
4427
|
+
get: function get() {
|
|
4428
4428
|
if (this._readableState === undefined || this._writableState === undefined) {
|
|
4429
4429
|
return false;
|
|
4430
4430
|
}
|
|
4431
4431
|
return this._readableState.destroyed && this._writableState.destroyed;
|
|
4432
4432
|
},
|
|
4433
|
-
set(value) {
|
|
4433
|
+
set: function set(value) {
|
|
4434
4434
|
// we ignore the value if the stream
|
|
4435
4435
|
// has not been initialized yet
|
|
4436
4436
|
if (this._readableState === undefined || this._writableState === undefined) {
|
|
@@ -4478,7 +4478,7 @@ Object.defineProperty(Duplex.prototype, 'destroyed', {
|
|
|
4478
4478
|
|
|
4479
4479
|
|
|
4480
4480
|
module.exports = PassThrough;
|
|
4481
|
-
|
|
4481
|
+
var Transform = __webpack_require__(13969);
|
|
4482
4482
|
__webpack_require__(90838)(PassThrough, Transform);
|
|
4483
4483
|
function PassThrough(options) {
|
|
4484
4484
|
if (!(this instanceof PassThrough)) return new PassThrough(options);
|
|
@@ -4526,7 +4526,7 @@ var Duplex;
|
|
|
4526
4526
|
Readable.ReadableState = ReadableState;
|
|
4527
4527
|
|
|
4528
4528
|
/*<replacement>*/
|
|
4529
|
-
|
|
4529
|
+
var EE = (__webpack_require__(82361).EventEmitter);
|
|
4530
4530
|
var EElistenerCount = function EElistenerCount(emitter, type) {
|
|
4531
4531
|
return emitter.listeners(type).length;
|
|
4532
4532
|
};
|
|
@@ -4536,8 +4536,8 @@ var EElistenerCount = function EElistenerCount(emitter, type) {
|
|
|
4536
4536
|
var Stream = __webpack_require__(2184);
|
|
4537
4537
|
/*</replacement>*/
|
|
4538
4538
|
|
|
4539
|
-
|
|
4540
|
-
|
|
4539
|
+
var Buffer = (__webpack_require__(60871).Buffer);
|
|
4540
|
+
var OurUint8Array = (typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : {}).Uint8Array || function () {};
|
|
4541
4541
|
function _uint8ArrayToBuffer(chunk) {
|
|
4542
4542
|
return Buffer.from(chunk);
|
|
4543
4543
|
}
|
|
@@ -4546,8 +4546,8 @@ function _isUint8Array(obj) {
|
|
|
4546
4546
|
}
|
|
4547
4547
|
|
|
4548
4548
|
/*<replacement>*/
|
|
4549
|
-
|
|
4550
|
-
|
|
4549
|
+
var debugUtil = __webpack_require__(73837);
|
|
4550
|
+
var debug;
|
|
4551
4551
|
if (debugUtil && debugUtil.debuglog) {
|
|
4552
4552
|
debug = debugUtil.debuglog('stream');
|
|
4553
4553
|
} else {
|
|
@@ -4555,23 +4555,23 @@ if (debugUtil && debugUtil.debuglog) {
|
|
|
4555
4555
|
}
|
|
4556
4556
|
/*</replacement>*/
|
|
4557
4557
|
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4558
|
+
var BufferList = __webpack_require__(81474);
|
|
4559
|
+
var destroyImpl = __webpack_require__(52576);
|
|
4560
|
+
var _require = __webpack_require__(74479),
|
|
4561
4561
|
getHighWaterMark = _require.getHighWaterMark;
|
|
4562
|
-
|
|
4562
|
+
var _require$codes = (__webpack_require__(18128)/* .codes */ .q),
|
|
4563
4563
|
ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE,
|
|
4564
4564
|
ERR_STREAM_PUSH_AFTER_EOF = _require$codes.ERR_STREAM_PUSH_AFTER_EOF,
|
|
4565
4565
|
ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED,
|
|
4566
4566
|
ERR_STREAM_UNSHIFT_AFTER_END_EVENT = _require$codes.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;
|
|
4567
4567
|
|
|
4568
4568
|
// Lazy loaded to improve the startup performance.
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4569
|
+
var StringDecoder;
|
|
4570
|
+
var createReadableStreamAsyncIterator;
|
|
4571
|
+
var from;
|
|
4572
4572
|
__webpack_require__(90838)(Readable, Stream);
|
|
4573
|
-
|
|
4574
|
-
|
|
4573
|
+
var errorOrDestroy = destroyImpl.errorOrDestroy;
|
|
4574
|
+
var kProxyEvents = ['error', 'close', 'destroy', 'pause', 'resume'];
|
|
4575
4575
|
function prependListener(emitter, event, fn) {
|
|
4576
4576
|
// Sadly this is not cacheable as some libraries bundle their own
|
|
4577
4577
|
// event emitter implementation with them.
|
|
@@ -4662,7 +4662,7 @@ function Readable(options) {
|
|
|
4662
4662
|
|
|
4663
4663
|
// Checking for a Stream.Duplex instance is faster here instead of inside
|
|
4664
4664
|
// the ReadableState constructor, at least with V8 6.5
|
|
4665
|
-
|
|
4665
|
+
var isDuplex = this instanceof Duplex;
|
|
4666
4666
|
this._readableState = new ReadableState(options, this, isDuplex);
|
|
4667
4667
|
|
|
4668
4668
|
// legacy
|
|
@@ -4678,13 +4678,13 @@ Object.defineProperty(Readable.prototype, 'destroyed', {
|
|
|
4678
4678
|
// because otherwise some prototype manipulation in
|
|
4679
4679
|
// userland will fail
|
|
4680
4680
|
enumerable: false,
|
|
4681
|
-
get() {
|
|
4681
|
+
get: function get() {
|
|
4682
4682
|
if (this._readableState === undefined) {
|
|
4683
4683
|
return false;
|
|
4684
4684
|
}
|
|
4685
4685
|
return this._readableState.destroyed;
|
|
4686
4686
|
},
|
|
4687
|
-
set(value) {
|
|
4687
|
+
set: function set(value) {
|
|
4688
4688
|
// we ignore the value if the stream
|
|
4689
4689
|
// has not been initialized yet
|
|
4690
4690
|
if (!this._readableState) {
|
|
@@ -4795,14 +4795,14 @@ Readable.prototype.isPaused = function () {
|
|
|
4795
4795
|
// backwards compatibility.
|
|
4796
4796
|
Readable.prototype.setEncoding = function (enc) {
|
|
4797
4797
|
if (!StringDecoder) StringDecoder = (__webpack_require__(60181)/* .StringDecoder */ .s);
|
|
4798
|
-
|
|
4798
|
+
var decoder = new StringDecoder(enc);
|
|
4799
4799
|
this._readableState.decoder = decoder;
|
|
4800
4800
|
// If setEncoding(null), decoder.encoding equals utf8
|
|
4801
4801
|
this._readableState.encoding = this._readableState.decoder.encoding;
|
|
4802
4802
|
|
|
4803
4803
|
// Iterate over current buffer to convert already stored Buffers:
|
|
4804
|
-
|
|
4805
|
-
|
|
4804
|
+
var p = this._readableState.buffer.head;
|
|
4805
|
+
var content = '';
|
|
4806
4806
|
while (p !== null) {
|
|
4807
4807
|
content += decoder.write(p.data);
|
|
4808
4808
|
p = p.next;
|
|
@@ -4814,7 +4814,7 @@ Readable.prototype.setEncoding = function (enc) {
|
|
|
4814
4814
|
};
|
|
4815
4815
|
|
|
4816
4816
|
// Don't raise the hwm > 1GB
|
|
4817
|
-
|
|
4817
|
+
var MAX_HWM = 0x40000000;
|
|
4818
4818
|
function computeNewHighWaterMark(n) {
|
|
4819
4819
|
if (n >= MAX_HWM) {
|
|
4820
4820
|
// TODO(ronag): Throw ERR_VALUE_OUT_OF_RANGE.
|
|
@@ -5041,7 +5041,7 @@ function maybeReadMore_(stream, state) {
|
|
|
5041
5041
|
// read()s. The execution ends in this method again after the _read() ends
|
|
5042
5042
|
// up calling push() with more data.
|
|
5043
5043
|
while (!state.reading && !state.ended && (state.length < state.highWaterMark || state.flowing && state.length === 0)) {
|
|
5044
|
-
|
|
5044
|
+
var len = state.length;
|
|
5045
5045
|
debug('maybeReadMore read 0');
|
|
5046
5046
|
stream.read(0);
|
|
5047
5047
|
if (len === state.length)
|
|
@@ -5238,8 +5238,8 @@ Readable.prototype.unpipe = function (dest) {
|
|
|
5238
5238
|
// set up data events if they are asked for
|
|
5239
5239
|
// Ensure readable listeners eventually get something
|
|
5240
5240
|
Readable.prototype.on = function (ev, fn) {
|
|
5241
|
-
|
|
5242
|
-
|
|
5241
|
+
var res = Stream.prototype.on.call(this, ev, fn);
|
|
5242
|
+
var state = this._readableState;
|
|
5243
5243
|
if (ev === 'data') {
|
|
5244
5244
|
// update readableListening so that resume() may be a no-op
|
|
5245
5245
|
// a few lines down. This is needed to support once('readable').
|
|
@@ -5264,7 +5264,7 @@ Readable.prototype.on = function (ev, fn) {
|
|
|
5264
5264
|
};
|
|
5265
5265
|
Readable.prototype.addListener = Readable.prototype.on;
|
|
5266
5266
|
Readable.prototype.removeListener = function (ev, fn) {
|
|
5267
|
-
|
|
5267
|
+
var res = Stream.prototype.removeListener.call(this, ev, fn);
|
|
5268
5268
|
if (ev === 'readable') {
|
|
5269
5269
|
// We need to check if there is someone still listening to
|
|
5270
5270
|
// readable and reset the state. However this needs to happen
|
|
@@ -5277,7 +5277,7 @@ Readable.prototype.removeListener = function (ev, fn) {
|
|
|
5277
5277
|
return res;
|
|
5278
5278
|
};
|
|
5279
5279
|
Readable.prototype.removeAllListeners = function (ev) {
|
|
5280
|
-
|
|
5280
|
+
var res = Stream.prototype.removeAllListeners.apply(this, arguments);
|
|
5281
5281
|
if (ev === 'readable' || ev === undefined) {
|
|
5282
5282
|
// We need to check if there is someone still listening to
|
|
5283
5283
|
// readable and reset the state. However this needs to happen
|
|
@@ -5290,7 +5290,7 @@ Readable.prototype.removeAllListeners = function (ev) {
|
|
|
5290
5290
|
return res;
|
|
5291
5291
|
};
|
|
5292
5292
|
function updateReadableListening(self) {
|
|
5293
|
-
|
|
5293
|
+
var state = self._readableState;
|
|
5294
5294
|
state.readableListening = self.listenerCount('readable') > 0;
|
|
5295
5295
|
if (state.resumeScheduled && !state.paused) {
|
|
5296
5296
|
// flowing needs to be set to true now, otherwise
|
|
@@ -5349,7 +5349,7 @@ Readable.prototype.pause = function () {
|
|
|
5349
5349
|
return this;
|
|
5350
5350
|
};
|
|
5351
5351
|
function flow(stream) {
|
|
5352
|
-
|
|
5352
|
+
var state = stream._readableState;
|
|
5353
5353
|
debug('flow', state.flowing);
|
|
5354
5354
|
while (state.flowing && stream.read() !== null);
|
|
5355
5355
|
}
|
|
@@ -5358,23 +5358,24 @@ function flow(stream) {
|
|
|
5358
5358
|
// This is *not* part of the readable stream interface.
|
|
5359
5359
|
// It is an ugly unfortunate mess of history.
|
|
5360
5360
|
Readable.prototype.wrap = function (stream) {
|
|
5361
|
+
var _this = this;
|
|
5361
5362
|
var state = this._readableState;
|
|
5362
5363
|
var paused = false;
|
|
5363
|
-
stream.on('end', ()
|
|
5364
|
+
stream.on('end', function () {
|
|
5364
5365
|
debug('wrapped end');
|
|
5365
5366
|
if (state.decoder && !state.ended) {
|
|
5366
5367
|
var chunk = state.decoder.end();
|
|
5367
|
-
if (chunk && chunk.length)
|
|
5368
|
+
if (chunk && chunk.length) _this.push(chunk);
|
|
5368
5369
|
}
|
|
5369
|
-
|
|
5370
|
+
_this.push(null);
|
|
5370
5371
|
});
|
|
5371
|
-
stream.on('data', chunk
|
|
5372
|
+
stream.on('data', function (chunk) {
|
|
5372
5373
|
debug('wrapped data');
|
|
5373
5374
|
if (state.decoder) chunk = state.decoder.write(chunk);
|
|
5374
5375
|
|
|
5375
5376
|
// don't skip over falsy values in objectMode
|
|
5376
5377
|
if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return;
|
|
5377
|
-
var ret =
|
|
5378
|
+
var ret = _this.push(chunk);
|
|
5378
5379
|
if (!ret) {
|
|
5379
5380
|
paused = true;
|
|
5380
5381
|
stream.pause();
|
|
@@ -5400,7 +5401,7 @@ Readable.prototype.wrap = function (stream) {
|
|
|
5400
5401
|
|
|
5401
5402
|
// when we try to consume some more bytes, simply unpause the
|
|
5402
5403
|
// underlying stream.
|
|
5403
|
-
this._read = n
|
|
5404
|
+
this._read = function (n) {
|
|
5404
5405
|
debug('wrapped _read', n);
|
|
5405
5406
|
if (paused) {
|
|
5406
5407
|
paused = false;
|
|
@@ -5457,7 +5458,7 @@ Object.defineProperty(Readable.prototype, 'readableLength', {
|
|
|
5457
5458
|
// because otherwise some prototype manipulation in
|
|
5458
5459
|
// userland will fail
|
|
5459
5460
|
enumerable: false,
|
|
5460
|
-
get() {
|
|
5461
|
+
get: function get() {
|
|
5461
5462
|
return this._readableState.length;
|
|
5462
5463
|
}
|
|
5463
5464
|
});
|
|
@@ -5499,7 +5500,7 @@ function endReadableNT(state, stream) {
|
|
|
5499
5500
|
if (state.autoDestroy) {
|
|
5500
5501
|
// In case of duplex streams we need a way to detect
|
|
5501
5502
|
// if the writable side is ready for autoDestroy as well
|
|
5502
|
-
|
|
5503
|
+
var wState = stream._writableState;
|
|
5503
5504
|
if (!wState || wState.autoDestroy && wState.finished) {
|
|
5504
5505
|
stream.destroy();
|
|
5505
5506
|
}
|
|
@@ -5593,12 +5594,12 @@ function indexOf(xs, x) {
|
|
|
5593
5594
|
|
|
5594
5595
|
|
|
5595
5596
|
module.exports = Transform;
|
|
5596
|
-
|
|
5597
|
+
var _require$codes = (__webpack_require__(18128)/* .codes */ .q),
|
|
5597
5598
|
ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED,
|
|
5598
5599
|
ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK,
|
|
5599
5600
|
ERR_TRANSFORM_ALREADY_TRANSFORMING = _require$codes.ERR_TRANSFORM_ALREADY_TRANSFORMING,
|
|
5600
5601
|
ERR_TRANSFORM_WITH_LENGTH_0 = _require$codes.ERR_TRANSFORM_WITH_LENGTH_0;
|
|
5601
|
-
|
|
5602
|
+
var Duplex = __webpack_require__(57439);
|
|
5602
5603
|
__webpack_require__(90838)(Transform, Duplex);
|
|
5603
5604
|
function afterTransform(er, data) {
|
|
5604
5605
|
var ts = this._transformState;
|
|
@@ -5647,9 +5648,10 @@ function Transform(options) {
|
|
|
5647
5648
|
this.on('prefinish', prefinish);
|
|
5648
5649
|
}
|
|
5649
5650
|
function prefinish() {
|
|
5651
|
+
var _this = this;
|
|
5650
5652
|
if (typeof this._flush === 'function' && !this._readableState.destroyed) {
|
|
5651
|
-
this._flush((er, data)
|
|
5652
|
-
done(
|
|
5653
|
+
this._flush(function (er, data) {
|
|
5654
|
+
done(_this, er, data);
|
|
5653
5655
|
});
|
|
5654
5656
|
} else {
|
|
5655
5657
|
done(this, null, null);
|
|
@@ -5699,7 +5701,7 @@ Transform.prototype._read = function (n) {
|
|
|
5699
5701
|
}
|
|
5700
5702
|
};
|
|
5701
5703
|
Transform.prototype._destroy = function (err, cb) {
|
|
5702
|
-
Duplex.prototype._destroy.call(this, err, err2
|
|
5704
|
+
Duplex.prototype._destroy.call(this, err, function (err2) {
|
|
5703
5705
|
cb(err2);
|
|
5704
5706
|
});
|
|
5705
5707
|
};
|
|
@@ -5763,10 +5765,11 @@ function WriteReq(chunk, encoding, cb) {
|
|
|
5763
5765
|
// It seems a linked list but it is not
|
|
5764
5766
|
// there will be only 2 of these for each stream
|
|
5765
5767
|
function CorkedRequest(state) {
|
|
5768
|
+
var _this = this;
|
|
5766
5769
|
this.next = null;
|
|
5767
5770
|
this.entry = null;
|
|
5768
|
-
this.finish = ()
|
|
5769
|
-
onCorkedFinish(
|
|
5771
|
+
this.finish = function () {
|
|
5772
|
+
onCorkedFinish(_this, state);
|
|
5770
5773
|
};
|
|
5771
5774
|
}
|
|
5772
5775
|
/* </replacement> */
|
|
@@ -5778,7 +5781,7 @@ var Duplex;
|
|
|
5778
5781
|
Writable.WritableState = WritableState;
|
|
5779
5782
|
|
|
5780
5783
|
/*<replacement>*/
|
|
5781
|
-
|
|
5784
|
+
var internalUtil = {
|
|
5782
5785
|
deprecate: __webpack_require__(89671)
|
|
5783
5786
|
};
|
|
5784
5787
|
/*</replacement>*/
|
|
@@ -5787,18 +5790,18 @@ const internalUtil = {
|
|
|
5787
5790
|
var Stream = __webpack_require__(2184);
|
|
5788
5791
|
/*</replacement>*/
|
|
5789
5792
|
|
|
5790
|
-
|
|
5791
|
-
|
|
5793
|
+
var Buffer = (__webpack_require__(60871).Buffer);
|
|
5794
|
+
var OurUint8Array = (typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : {}).Uint8Array || function () {};
|
|
5792
5795
|
function _uint8ArrayToBuffer(chunk) {
|
|
5793
5796
|
return Buffer.from(chunk);
|
|
5794
5797
|
}
|
|
5795
5798
|
function _isUint8Array(obj) {
|
|
5796
5799
|
return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;
|
|
5797
5800
|
}
|
|
5798
|
-
|
|
5799
|
-
|
|
5801
|
+
var destroyImpl = __webpack_require__(52576);
|
|
5802
|
+
var _require = __webpack_require__(74479),
|
|
5800
5803
|
getHighWaterMark = _require.getHighWaterMark;
|
|
5801
|
-
|
|
5804
|
+
var _require$codes = (__webpack_require__(18128)/* .codes */ .q),
|
|
5802
5805
|
ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE,
|
|
5803
5806
|
ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED,
|
|
5804
5807
|
ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK,
|
|
@@ -5807,7 +5810,7 @@ const _require$codes = (__webpack_require__(18128)/* .codes */ .q),
|
|
|
5807
5810
|
ERR_STREAM_NULL_VALUES = _require$codes.ERR_STREAM_NULL_VALUES,
|
|
5808
5811
|
ERR_STREAM_WRITE_AFTER_END = _require$codes.ERR_STREAM_WRITE_AFTER_END,
|
|
5809
5812
|
ERR_UNKNOWN_ENCODING = _require$codes.ERR_UNKNOWN_ENCODING;
|
|
5810
|
-
|
|
5813
|
+
var errorOrDestroy = destroyImpl.errorOrDestroy;
|
|
5811
5814
|
__webpack_require__(90838)(Writable, Stream);
|
|
5812
5815
|
function nop() {}
|
|
5813
5816
|
function WritableState(options, stream, isDuplex) {
|
|
@@ -5965,7 +5968,7 @@ function Writable(options) {
|
|
|
5965
5968
|
|
|
5966
5969
|
// Checking for a Stream.Duplex instance is faster here instead of inside
|
|
5967
5970
|
// the WritableState constructor, at least with V8 6.5
|
|
5968
|
-
|
|
5971
|
+
var isDuplex = this instanceof Duplex;
|
|
5969
5972
|
if (!isDuplex && !realHasInstance.call(Writable, this)) return new Writable(options);
|
|
5970
5973
|
this._writableState = new WritableState(options, this, isDuplex);
|
|
5971
5974
|
|
|
@@ -6089,9 +6092,9 @@ function writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) {
|
|
|
6089
6092
|
if (state.writing || state.corked) {
|
|
6090
6093
|
var last = state.lastBufferedRequest;
|
|
6091
6094
|
state.lastBufferedRequest = {
|
|
6092
|
-
chunk,
|
|
6093
|
-
encoding,
|
|
6094
|
-
isBuf,
|
|
6095
|
+
chunk: chunk,
|
|
6096
|
+
encoding: encoding,
|
|
6097
|
+
isBuf: isBuf,
|
|
6095
6098
|
callback: cb,
|
|
6096
6099
|
next: null
|
|
6097
6100
|
};
|
|
@@ -6264,7 +6267,7 @@ Object.defineProperty(Writable.prototype, 'writableLength', {
|
|
|
6264
6267
|
// because otherwise some prototype manipulation in
|
|
6265
6268
|
// userland will fail
|
|
6266
6269
|
enumerable: false,
|
|
6267
|
-
get() {
|
|
6270
|
+
get: function get() {
|
|
6268
6271
|
return this._writableState.length;
|
|
6269
6272
|
}
|
|
6270
6273
|
});
|
|
@@ -6272,7 +6275,7 @@ function needFinish(state) {
|
|
|
6272
6275
|
return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing;
|
|
6273
6276
|
}
|
|
6274
6277
|
function callFinal(stream, state) {
|
|
6275
|
-
stream._final(err
|
|
6278
|
+
stream._final(function (err) {
|
|
6276
6279
|
state.pendingcb--;
|
|
6277
6280
|
if (err) {
|
|
6278
6281
|
errorOrDestroy(stream, err);
|
|
@@ -6304,7 +6307,7 @@ function finishMaybe(stream, state) {
|
|
|
6304
6307
|
if (state.autoDestroy) {
|
|
6305
6308
|
// In case of duplex streams we need a way to detect
|
|
6306
6309
|
// if the readable side is ready for autoDestroy as well
|
|
6307
|
-
|
|
6310
|
+
var rState = stream._readableState;
|
|
6308
6311
|
if (!rState || rState.autoDestroy && rState.endEmitted) {
|
|
6309
6312
|
stream.destroy();
|
|
6310
6313
|
}
|
|
@@ -6340,13 +6343,13 @@ Object.defineProperty(Writable.prototype, 'destroyed', {
|
|
|
6340
6343
|
// because otherwise some prototype manipulation in
|
|
6341
6344
|
// userland will fail
|
|
6342
6345
|
enumerable: false,
|
|
6343
|
-
get() {
|
|
6346
|
+
get: function get() {
|
|
6344
6347
|
if (this._writableState === undefined) {
|
|
6345
6348
|
return false;
|
|
6346
6349
|
}
|
|
6347
6350
|
return this._writableState.destroyed;
|
|
6348
6351
|
},
|
|
6349
|
-
set(value) {
|
|
6352
|
+
set: function set(value) {
|
|
6350
6353
|
// we ignore the value if the stream
|
|
6351
6354
|
// has not been initialized yet
|
|
6352
6355
|
if (!this._writableState) {
|
|
@@ -6372,24 +6375,28 @@ Writable.prototype._destroy = function (err, cb) {
|
|
|
6372
6375
|
"use strict";
|
|
6373
6376
|
|
|
6374
6377
|
|
|
6375
|
-
|
|
6376
|
-
|
|
6377
|
-
|
|
6378
|
-
|
|
6379
|
-
|
|
6380
|
-
|
|
6381
|
-
|
|
6382
|
-
|
|
6378
|
+
var _Object$setPrototypeO;
|
|
6379
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6380
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
6381
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
6382
|
+
var finished = __webpack_require__(30685);
|
|
6383
|
+
var kLastResolve = Symbol('lastResolve');
|
|
6384
|
+
var kLastReject = Symbol('lastReject');
|
|
6385
|
+
var kError = Symbol('error');
|
|
6386
|
+
var kEnded = Symbol('ended');
|
|
6387
|
+
var kLastPromise = Symbol('lastPromise');
|
|
6388
|
+
var kHandlePromise = Symbol('handlePromise');
|
|
6389
|
+
var kStream = Symbol('stream');
|
|
6383
6390
|
function createIterResult(value, done) {
|
|
6384
6391
|
return {
|
|
6385
|
-
value,
|
|
6386
|
-
done
|
|
6392
|
+
value: value,
|
|
6393
|
+
done: done
|
|
6387
6394
|
};
|
|
6388
6395
|
}
|
|
6389
6396
|
function readAndResolve(iter) {
|
|
6390
|
-
|
|
6397
|
+
var resolve = iter[kLastResolve];
|
|
6391
6398
|
if (resolve !== null) {
|
|
6392
|
-
|
|
6399
|
+
var data = iter[kStream].read();
|
|
6393
6400
|
// we defer if data is null
|
|
6394
6401
|
// we can be expecting either 'end' or
|
|
6395
6402
|
// 'error'
|
|
@@ -6407,8 +6414,8 @@ function onReadable(iter) {
|
|
|
6407
6414
|
process.nextTick(readAndResolve, iter);
|
|
6408
6415
|
}
|
|
6409
6416
|
function wrapForNext(lastPromise, iter) {
|
|
6410
|
-
return (resolve, reject)
|
|
6411
|
-
lastPromise.then(()
|
|
6417
|
+
return function (resolve, reject) {
|
|
6418
|
+
lastPromise.then(function () {
|
|
6412
6419
|
if (iter[kEnded]) {
|
|
6413
6420
|
resolve(createIterResult(undefined, true));
|
|
6414
6421
|
return;
|
|
@@ -6417,15 +6424,16 @@ function wrapForNext(lastPromise, iter) {
|
|
|
6417
6424
|
}, reject);
|
|
6418
6425
|
};
|
|
6419
6426
|
}
|
|
6420
|
-
|
|
6421
|
-
|
|
6427
|
+
var AsyncIteratorPrototype = Object.getPrototypeOf(function () {});
|
|
6428
|
+
var ReadableStreamAsyncIteratorPrototype = Object.setPrototypeOf((_Object$setPrototypeO = {
|
|
6422
6429
|
get stream() {
|
|
6423
6430
|
return this[kStream];
|
|
6424
6431
|
},
|
|
6425
|
-
next() {
|
|
6432
|
+
next: function next() {
|
|
6433
|
+
var _this = this;
|
|
6426
6434
|
// if we have detected an error in the meanwhile
|
|
6427
6435
|
// reject straight away
|
|
6428
|
-
|
|
6436
|
+
var error = this[kError];
|
|
6429
6437
|
if (error !== null) {
|
|
6430
6438
|
return Promise.reject(error);
|
|
6431
6439
|
}
|
|
@@ -6437,10 +6445,10 @@ const ReadableStreamAsyncIteratorPrototype = Object.setPrototypeOf({
|
|
|
6437
6445
|
// called, the error will be emitted via nextTick, and
|
|
6438
6446
|
// we cannot guarantee that there is no error lingering around
|
|
6439
6447
|
// waiting to be emitted.
|
|
6440
|
-
return new Promise((resolve, reject)
|
|
6441
|
-
process.nextTick(()
|
|
6442
|
-
if (
|
|
6443
|
-
reject(
|
|
6448
|
+
return new Promise(function (resolve, reject) {
|
|
6449
|
+
process.nextTick(function () {
|
|
6450
|
+
if (_this[kError]) {
|
|
6451
|
+
reject(_this[kError]);
|
|
6444
6452
|
} else {
|
|
6445
6453
|
resolve(createIterResult(undefined, true));
|
|
6446
6454
|
}
|
|
@@ -6452,14 +6460,14 @@ const ReadableStreamAsyncIteratorPrototype = Object.setPrototypeOf({
|
|
|
6452
6460
|
// we will wait for the previous Promise to finish
|
|
6453
6461
|
// this logic is optimized to support for await loops,
|
|
6454
6462
|
// where next() is only called once at a time
|
|
6455
|
-
|
|
6456
|
-
|
|
6463
|
+
var lastPromise = this[kLastPromise];
|
|
6464
|
+
var promise;
|
|
6457
6465
|
if (lastPromise) {
|
|
6458
6466
|
promise = new Promise(wrapForNext(lastPromise, this));
|
|
6459
6467
|
} else {
|
|
6460
6468
|
// fast path needed to support multiple this.push()
|
|
6461
6469
|
// without triggering the next() queue
|
|
6462
|
-
|
|
6470
|
+
var data = this[kStream].read();
|
|
6463
6471
|
if (data !== null) {
|
|
6464
6472
|
return Promise.resolve(createIterResult(data, false));
|
|
6465
6473
|
}
|
|
@@ -6467,70 +6475,60 @@ const ReadableStreamAsyncIteratorPrototype = Object.setPrototypeOf({
|
|
|
6467
6475
|
}
|
|
6468
6476
|
this[kLastPromise] = promise;
|
|
6469
6477
|
return promise;
|
|
6470
|
-
},
|
|
6471
|
-
[Symbol.asyncIterator]() {
|
|
6472
|
-
return this;
|
|
6473
|
-
},
|
|
6474
|
-
return() {
|
|
6475
|
-
// destroy(err, cb) is a private API
|
|
6476
|
-
// we can guarantee we have that here, because we control the
|
|
6477
|
-
// Readable class this is attached to
|
|
6478
|
-
return new Promise((resolve, reject) => {
|
|
6479
|
-
this[kStream].destroy(null, err => {
|
|
6480
|
-
if (err) {
|
|
6481
|
-
reject(err);
|
|
6482
|
-
return;
|
|
6483
|
-
}
|
|
6484
|
-
resolve(createIterResult(undefined, true));
|
|
6485
|
-
});
|
|
6486
|
-
});
|
|
6487
6478
|
}
|
|
6488
|
-
},
|
|
6489
|
-
|
|
6490
|
-
|
|
6491
|
-
|
|
6492
|
-
|
|
6493
|
-
|
|
6494
|
-
|
|
6495
|
-
|
|
6496
|
-
|
|
6497
|
-
|
|
6498
|
-
|
|
6499
|
-
|
|
6500
|
-
|
|
6501
|
-
|
|
6502
|
-
}
|
|
6503
|
-
[kError]: {
|
|
6504
|
-
value: null,
|
|
6505
|
-
writable: true
|
|
6506
|
-
},
|
|
6507
|
-
[kEnded]: {
|
|
6508
|
-
value: stream._readableState.endEmitted,
|
|
6509
|
-
writable: true
|
|
6510
|
-
},
|
|
6511
|
-
// the function passed to new Promise
|
|
6512
|
-
// is cached so we avoid allocating a new
|
|
6513
|
-
// closure at every run
|
|
6514
|
-
[kHandlePromise]: {
|
|
6515
|
-
value: (resolve, reject) => {
|
|
6516
|
-
const data = iterator[kStream].read();
|
|
6517
|
-
if (data) {
|
|
6518
|
-
iterator[kLastPromise] = null;
|
|
6519
|
-
iterator[kLastResolve] = null;
|
|
6520
|
-
iterator[kLastReject] = null;
|
|
6521
|
-
resolve(createIterResult(data, false));
|
|
6522
|
-
} else {
|
|
6523
|
-
iterator[kLastResolve] = resolve;
|
|
6524
|
-
iterator[kLastReject] = reject;
|
|
6525
|
-
}
|
|
6526
|
-
},
|
|
6527
|
-
writable: true
|
|
6528
|
-
}
|
|
6479
|
+
}, _defineProperty(_Object$setPrototypeO, Symbol.asyncIterator, function () {
|
|
6480
|
+
return this;
|
|
6481
|
+
}), _defineProperty(_Object$setPrototypeO, "return", function _return() {
|
|
6482
|
+
var _this2 = this;
|
|
6483
|
+
// destroy(err, cb) is a private API
|
|
6484
|
+
// we can guarantee we have that here, because we control the
|
|
6485
|
+
// Readable class this is attached to
|
|
6486
|
+
return new Promise(function (resolve, reject) {
|
|
6487
|
+
_this2[kStream].destroy(null, function (err) {
|
|
6488
|
+
if (err) {
|
|
6489
|
+
reject(err);
|
|
6490
|
+
return;
|
|
6491
|
+
}
|
|
6492
|
+
resolve(createIterResult(undefined, true));
|
|
6493
|
+
});
|
|
6529
6494
|
});
|
|
6495
|
+
}), _Object$setPrototypeO), AsyncIteratorPrototype);
|
|
6496
|
+
var createReadableStreamAsyncIterator = function createReadableStreamAsyncIterator(stream) {
|
|
6497
|
+
var _Object$create;
|
|
6498
|
+
var iterator = Object.create(ReadableStreamAsyncIteratorPrototype, (_Object$create = {}, _defineProperty(_Object$create, kStream, {
|
|
6499
|
+
value: stream,
|
|
6500
|
+
writable: true
|
|
6501
|
+
}), _defineProperty(_Object$create, kLastResolve, {
|
|
6502
|
+
value: null,
|
|
6503
|
+
writable: true
|
|
6504
|
+
}), _defineProperty(_Object$create, kLastReject, {
|
|
6505
|
+
value: null,
|
|
6506
|
+
writable: true
|
|
6507
|
+
}), _defineProperty(_Object$create, kError, {
|
|
6508
|
+
value: null,
|
|
6509
|
+
writable: true
|
|
6510
|
+
}), _defineProperty(_Object$create, kEnded, {
|
|
6511
|
+
value: stream._readableState.endEmitted,
|
|
6512
|
+
writable: true
|
|
6513
|
+
}), _defineProperty(_Object$create, kHandlePromise, {
|
|
6514
|
+
value: function value(resolve, reject) {
|
|
6515
|
+
var data = iterator[kStream].read();
|
|
6516
|
+
if (data) {
|
|
6517
|
+
iterator[kLastPromise] = null;
|
|
6518
|
+
iterator[kLastResolve] = null;
|
|
6519
|
+
iterator[kLastReject] = null;
|
|
6520
|
+
resolve(createIterResult(data, false));
|
|
6521
|
+
} else {
|
|
6522
|
+
iterator[kLastResolve] = resolve;
|
|
6523
|
+
iterator[kLastReject] = reject;
|
|
6524
|
+
}
|
|
6525
|
+
},
|
|
6526
|
+
writable: true
|
|
6527
|
+
}), _Object$create));
|
|
6530
6528
|
iterator[kLastPromise] = null;
|
|
6531
|
-
finished(stream, err
|
|
6529
|
+
finished(stream, function (err) {
|
|
6532
6530
|
if (err && err.code !== 'ERR_STREAM_PREMATURE_CLOSE') {
|
|
6533
|
-
|
|
6531
|
+
var reject = iterator[kLastReject];
|
|
6534
6532
|
// reject if we are waiting for data in the Promise
|
|
6535
6533
|
// returned by next() and store the error
|
|
6536
6534
|
if (reject !== null) {
|
|
@@ -6542,7 +6540,7 @@ const createReadableStreamAsyncIterator = stream => {
|
|
|
6542
6540
|
iterator[kError] = err;
|
|
6543
6541
|
return;
|
|
6544
6542
|
}
|
|
6545
|
-
|
|
6543
|
+
var resolve = iterator[kLastResolve];
|
|
6546
6544
|
if (resolve !== null) {
|
|
6547
6545
|
iterator[kLastPromise] = null;
|
|
6548
6546
|
iterator[kLastResolve] = null;
|
|
@@ -6567,156 +6565,184 @@ module.exports = createReadableStreamAsyncIterator;
|
|
|
6567
6565
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6568
6566
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6569
6567
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6568
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6569
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
6570
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
6570
6571
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
6571
6572
|
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
6572
|
-
|
|
6573
|
+
var _require = __webpack_require__(60871),
|
|
6573
6574
|
Buffer = _require.Buffer;
|
|
6574
|
-
|
|
6575
|
+
var _require2 = __webpack_require__(73837),
|
|
6575
6576
|
inspect = _require2.inspect;
|
|
6576
|
-
|
|
6577
|
+
var custom = inspect && inspect.custom || 'inspect';
|
|
6577
6578
|
function copyBuffer(src, target, offset) {
|
|
6578
6579
|
Buffer.prototype.copy.call(src, target, offset);
|
|
6579
6580
|
}
|
|
6580
|
-
module.exports =
|
|
6581
|
-
|
|
6581
|
+
module.exports = /*#__PURE__*/function () {
|
|
6582
|
+
function BufferList() {
|
|
6583
|
+
_classCallCheck(this, BufferList);
|
|
6582
6584
|
this.head = null;
|
|
6583
6585
|
this.tail = null;
|
|
6584
6586
|
this.length = 0;
|
|
6585
6587
|
}
|
|
6586
|
-
|
|
6587
|
-
|
|
6588
|
-
|
|
6589
|
-
|
|
6590
|
-
|
|
6591
|
-
|
|
6592
|
-
|
|
6593
|
-
|
|
6594
|
-
|
|
6595
|
-
|
|
6596
|
-
|
|
6597
|
-
|
|
6598
|
-
|
|
6599
|
-
|
|
6600
|
-
|
|
6601
|
-
|
|
6602
|
-
|
|
6603
|
-
|
|
6604
|
-
|
|
6605
|
-
|
|
6606
|
-
|
|
6607
|
-
|
|
6608
|
-
|
|
6609
|
-
|
|
6610
|
-
|
|
6611
|
-
|
|
6612
|
-
|
|
6613
|
-
|
|
6614
|
-
|
|
6615
|
-
|
|
6616
|
-
|
|
6617
|
-
|
|
6618
|
-
|
|
6619
|
-
|
|
6620
|
-
|
|
6621
|
-
|
|
6622
|
-
|
|
6623
|
-
|
|
6624
|
-
|
|
6625
|
-
|
|
6626
|
-
|
|
6627
|
-
|
|
6628
|
-
|
|
6629
|
-
|
|
6630
|
-
|
|
6631
|
-
}
|
|
6632
|
-
|
|
6633
|
-
|
|
6634
|
-
|
|
6635
|
-
|
|
6636
|
-
|
|
6637
|
-
|
|
6638
|
-
|
|
6639
|
-
|
|
6640
|
-
|
|
6641
|
-
|
|
6642
|
-
|
|
6643
|
-
|
|
6644
|
-
ret
|
|
6645
|
-
}
|
|
6646
|
-
|
|
6647
|
-
|
|
6648
|
-
|
|
6649
|
-
|
|
6650
|
-
|
|
6651
|
-
|
|
6652
|
-
|
|
6653
|
-
|
|
6654
|
-
|
|
6655
|
-
|
|
6656
|
-
|
|
6657
|
-
|
|
6658
|
-
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
6667
|
-
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
|
|
6672
|
-
|
|
6588
|
+
_createClass(BufferList, [{
|
|
6589
|
+
key: "push",
|
|
6590
|
+
value: function push(v) {
|
|
6591
|
+
var entry = {
|
|
6592
|
+
data: v,
|
|
6593
|
+
next: null
|
|
6594
|
+
};
|
|
6595
|
+
if (this.length > 0) this.tail.next = entry;else this.head = entry;
|
|
6596
|
+
this.tail = entry;
|
|
6597
|
+
++this.length;
|
|
6598
|
+
}
|
|
6599
|
+
}, {
|
|
6600
|
+
key: "unshift",
|
|
6601
|
+
value: function unshift(v) {
|
|
6602
|
+
var entry = {
|
|
6603
|
+
data: v,
|
|
6604
|
+
next: this.head
|
|
6605
|
+
};
|
|
6606
|
+
if (this.length === 0) this.tail = entry;
|
|
6607
|
+
this.head = entry;
|
|
6608
|
+
++this.length;
|
|
6609
|
+
}
|
|
6610
|
+
}, {
|
|
6611
|
+
key: "shift",
|
|
6612
|
+
value: function shift() {
|
|
6613
|
+
if (this.length === 0) return;
|
|
6614
|
+
var ret = this.head.data;
|
|
6615
|
+
if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next;
|
|
6616
|
+
--this.length;
|
|
6617
|
+
return ret;
|
|
6618
|
+
}
|
|
6619
|
+
}, {
|
|
6620
|
+
key: "clear",
|
|
6621
|
+
value: function clear() {
|
|
6622
|
+
this.head = this.tail = null;
|
|
6623
|
+
this.length = 0;
|
|
6624
|
+
}
|
|
6625
|
+
}, {
|
|
6626
|
+
key: "join",
|
|
6627
|
+
value: function join(s) {
|
|
6628
|
+
if (this.length === 0) return '';
|
|
6629
|
+
var p = this.head;
|
|
6630
|
+
var ret = '' + p.data;
|
|
6631
|
+
while (p = p.next) ret += s + p.data;
|
|
6632
|
+
return ret;
|
|
6633
|
+
}
|
|
6634
|
+
}, {
|
|
6635
|
+
key: "concat",
|
|
6636
|
+
value: function concat(n) {
|
|
6637
|
+
if (this.length === 0) return Buffer.alloc(0);
|
|
6638
|
+
var ret = Buffer.allocUnsafe(n >>> 0);
|
|
6639
|
+
var p = this.head;
|
|
6640
|
+
var i = 0;
|
|
6641
|
+
while (p) {
|
|
6642
|
+
copyBuffer(p.data, ret, i);
|
|
6643
|
+
i += p.data.length;
|
|
6644
|
+
p = p.next;
|
|
6645
|
+
}
|
|
6646
|
+
return ret;
|
|
6647
|
+
}
|
|
6648
|
+
|
|
6649
|
+
// Consumes a specified amount of bytes or characters from the buffered data.
|
|
6650
|
+
}, {
|
|
6651
|
+
key: "consume",
|
|
6652
|
+
value: function consume(n, hasStrings) {
|
|
6653
|
+
var ret;
|
|
6654
|
+
if (n < this.head.data.length) {
|
|
6655
|
+
// `slice` is the same for buffers and strings.
|
|
6656
|
+
ret = this.head.data.slice(0, n);
|
|
6657
|
+
this.head.data = this.head.data.slice(n);
|
|
6658
|
+
} else if (n === this.head.data.length) {
|
|
6659
|
+
// First chunk is a perfect match.
|
|
6660
|
+
ret = this.shift();
|
|
6661
|
+
} else {
|
|
6662
|
+
// Result spans more than one buffer.
|
|
6663
|
+
ret = hasStrings ? this._getString(n) : this._getBuffer(n);
|
|
6664
|
+
}
|
|
6665
|
+
return ret;
|
|
6666
|
+
}
|
|
6667
|
+
}, {
|
|
6668
|
+
key: "first",
|
|
6669
|
+
value: function first() {
|
|
6670
|
+
return this.head.data;
|
|
6671
|
+
}
|
|
6672
|
+
|
|
6673
|
+
// Consumes a specified amount of characters from the buffered data.
|
|
6674
|
+
}, {
|
|
6675
|
+
key: "_getString",
|
|
6676
|
+
value: function _getString(n) {
|
|
6677
|
+
var p = this.head;
|
|
6678
|
+
var c = 1;
|
|
6679
|
+
var ret = p.data;
|
|
6680
|
+
n -= ret.length;
|
|
6681
|
+
while (p = p.next) {
|
|
6682
|
+
var str = p.data;
|
|
6683
|
+
var nb = n > str.length ? str.length : n;
|
|
6684
|
+
if (nb === str.length) ret += str;else ret += str.slice(0, n);
|
|
6685
|
+
n -= nb;
|
|
6686
|
+
if (n === 0) {
|
|
6687
|
+
if (nb === str.length) {
|
|
6688
|
+
++c;
|
|
6689
|
+
if (p.next) this.head = p.next;else this.head = this.tail = null;
|
|
6690
|
+
} else {
|
|
6691
|
+
this.head = p;
|
|
6692
|
+
p.data = str.slice(nb);
|
|
6693
|
+
}
|
|
6694
|
+
break;
|
|
6673
6695
|
}
|
|
6674
|
-
|
|
6696
|
+
++c;
|
|
6675
6697
|
}
|
|
6676
|
-
|
|
6677
|
-
|
|
6678
|
-
|
|
6679
|
-
|
|
6680
|
-
|
|
6681
|
-
|
|
6682
|
-
|
|
6683
|
-
|
|
6684
|
-
|
|
6685
|
-
|
|
6686
|
-
|
|
6687
|
-
|
|
6688
|
-
|
|
6689
|
-
|
|
6690
|
-
|
|
6691
|
-
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
|
|
6700
|
-
|
|
6698
|
+
this.length -= c;
|
|
6699
|
+
return ret;
|
|
6700
|
+
}
|
|
6701
|
+
|
|
6702
|
+
// Consumes a specified amount of bytes from the buffered data.
|
|
6703
|
+
}, {
|
|
6704
|
+
key: "_getBuffer",
|
|
6705
|
+
value: function _getBuffer(n) {
|
|
6706
|
+
var ret = Buffer.allocUnsafe(n);
|
|
6707
|
+
var p = this.head;
|
|
6708
|
+
var c = 1;
|
|
6709
|
+
p.data.copy(ret);
|
|
6710
|
+
n -= p.data.length;
|
|
6711
|
+
while (p = p.next) {
|
|
6712
|
+
var buf = p.data;
|
|
6713
|
+
var nb = n > buf.length ? buf.length : n;
|
|
6714
|
+
buf.copy(ret, ret.length - n, 0, nb);
|
|
6715
|
+
n -= nb;
|
|
6716
|
+
if (n === 0) {
|
|
6717
|
+
if (nb === buf.length) {
|
|
6718
|
+
++c;
|
|
6719
|
+
if (p.next) this.head = p.next;else this.head = this.tail = null;
|
|
6720
|
+
} else {
|
|
6721
|
+
this.head = p;
|
|
6722
|
+
p.data = buf.slice(nb);
|
|
6723
|
+
}
|
|
6724
|
+
break;
|
|
6701
6725
|
}
|
|
6702
|
-
|
|
6726
|
+
++c;
|
|
6703
6727
|
}
|
|
6704
|
-
|
|
6728
|
+
this.length -= c;
|
|
6729
|
+
return ret;
|
|
6705
6730
|
}
|
|
6706
|
-
this.length -= c;
|
|
6707
|
-
return ret;
|
|
6708
|
-
}
|
|
6709
6731
|
|
|
6710
|
-
|
|
6711
|
-
|
|
6712
|
-
|
|
6713
|
-
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
|
|
6717
|
-
|
|
6718
|
-
|
|
6719
|
-
};
|
|
6732
|
+
// Make sure the linked list only shows the minimal necessary information.
|
|
6733
|
+
}, {
|
|
6734
|
+
key: custom,
|
|
6735
|
+
value: function value(_, options) {
|
|
6736
|
+
return inspect(this, _objectSpread(_objectSpread({}, options), {}, {
|
|
6737
|
+
// Only inspect one level.
|
|
6738
|
+
depth: 0,
|
|
6739
|
+
// It should not recurse.
|
|
6740
|
+
customInspect: false
|
|
6741
|
+
}));
|
|
6742
|
+
}
|
|
6743
|
+
}]);
|
|
6744
|
+
return BufferList;
|
|
6745
|
+
}();
|
|
6720
6746
|
|
|
6721
6747
|
/***/ }),
|
|
6722
6748
|
|
|
@@ -6728,8 +6754,9 @@ module.exports = class BufferList {
|
|
|
6728
6754
|
|
|
6729
6755
|
// undocumented cb() API, needed for core, not for public API
|
|
6730
6756
|
function destroy(err, cb) {
|
|
6731
|
-
|
|
6732
|
-
|
|
6757
|
+
var _this = this;
|
|
6758
|
+
var readableDestroyed = this._readableState && this._readableState.destroyed;
|
|
6759
|
+
var writableDestroyed = this._writableState && this._writableState.destroyed;
|
|
6733
6760
|
if (readableDestroyed || writableDestroyed) {
|
|
6734
6761
|
if (cb) {
|
|
6735
6762
|
cb(err);
|
|
@@ -6755,21 +6782,21 @@ function destroy(err, cb) {
|
|
|
6755
6782
|
if (this._writableState) {
|
|
6756
6783
|
this._writableState.destroyed = true;
|
|
6757
6784
|
}
|
|
6758
|
-
this._destroy(err || null, err
|
|
6785
|
+
this._destroy(err || null, function (err) {
|
|
6759
6786
|
if (!cb && err) {
|
|
6760
|
-
if (!
|
|
6761
|
-
process.nextTick(emitErrorAndCloseNT,
|
|
6762
|
-
} else if (!
|
|
6763
|
-
|
|
6764
|
-
process.nextTick(emitErrorAndCloseNT,
|
|
6787
|
+
if (!_this._writableState) {
|
|
6788
|
+
process.nextTick(emitErrorAndCloseNT, _this, err);
|
|
6789
|
+
} else if (!_this._writableState.errorEmitted) {
|
|
6790
|
+
_this._writableState.errorEmitted = true;
|
|
6791
|
+
process.nextTick(emitErrorAndCloseNT, _this, err);
|
|
6765
6792
|
} else {
|
|
6766
|
-
process.nextTick(emitCloseNT,
|
|
6793
|
+
process.nextTick(emitCloseNT, _this);
|
|
6767
6794
|
}
|
|
6768
6795
|
} else if (cb) {
|
|
6769
|
-
process.nextTick(emitCloseNT,
|
|
6796
|
+
process.nextTick(emitCloseNT, _this);
|
|
6770
6797
|
cb(err);
|
|
6771
6798
|
} else {
|
|
6772
|
-
process.nextTick(emitCloseNT,
|
|
6799
|
+
process.nextTick(emitCloseNT, _this);
|
|
6773
6800
|
}
|
|
6774
6801
|
});
|
|
6775
6802
|
return this;
|
|
@@ -6810,14 +6837,14 @@ function errorOrDestroy(stream, err) {
|
|
|
6810
6837
|
// the error to be emitted nextTick. In a future
|
|
6811
6838
|
// semver major update we should change the default to this.
|
|
6812
6839
|
|
|
6813
|
-
|
|
6814
|
-
|
|
6840
|
+
var rState = stream._readableState;
|
|
6841
|
+
var wState = stream._writableState;
|
|
6815
6842
|
if (rState && rState.autoDestroy || wState && wState.autoDestroy) stream.destroy(err);else stream.emit('error', err);
|
|
6816
6843
|
}
|
|
6817
6844
|
module.exports = {
|
|
6818
|
-
destroy,
|
|
6819
|
-
undestroy,
|
|
6820
|
-
errorOrDestroy
|
|
6845
|
+
destroy: destroy,
|
|
6846
|
+
undestroy: undestroy,
|
|
6847
|
+
errorOrDestroy: errorOrDestroy
|
|
6821
6848
|
};
|
|
6822
6849
|
|
|
6823
6850
|
/***/ }),
|
|
@@ -6831,9 +6858,9 @@ module.exports = {
|
|
|
6831
6858
|
|
|
6832
6859
|
|
|
6833
6860
|
|
|
6834
|
-
|
|
6861
|
+
var ERR_STREAM_PREMATURE_CLOSE = (__webpack_require__(18128)/* .codes.ERR_STREAM_PREMATURE_CLOSE */ .q.ERR_STREAM_PREMATURE_CLOSE);
|
|
6835
6862
|
function once(callback) {
|
|
6836
|
-
|
|
6863
|
+
var called = false;
|
|
6837
6864
|
return function () {
|
|
6838
6865
|
if (called) return;
|
|
6839
6866
|
called = true;
|
|
@@ -6851,28 +6878,28 @@ function eos(stream, opts, callback) {
|
|
|
6851
6878
|
if (typeof opts === 'function') return eos(stream, null, opts);
|
|
6852
6879
|
if (!opts) opts = {};
|
|
6853
6880
|
callback = once(callback || noop);
|
|
6854
|
-
|
|
6855
|
-
|
|
6856
|
-
|
|
6881
|
+
var readable = opts.readable || opts.readable !== false && stream.readable;
|
|
6882
|
+
var writable = opts.writable || opts.writable !== false && stream.writable;
|
|
6883
|
+
var onlegacyfinish = function onlegacyfinish() {
|
|
6857
6884
|
if (!stream.writable) onfinish();
|
|
6858
6885
|
};
|
|
6859
6886
|
var writableEnded = stream._writableState && stream._writableState.finished;
|
|
6860
|
-
|
|
6887
|
+
var onfinish = function onfinish() {
|
|
6861
6888
|
writable = false;
|
|
6862
6889
|
writableEnded = true;
|
|
6863
6890
|
if (!readable) callback.call(stream);
|
|
6864
6891
|
};
|
|
6865
6892
|
var readableEnded = stream._readableState && stream._readableState.endEmitted;
|
|
6866
|
-
|
|
6893
|
+
var onend = function onend() {
|
|
6867
6894
|
readable = false;
|
|
6868
6895
|
readableEnded = true;
|
|
6869
6896
|
if (!writable) callback.call(stream);
|
|
6870
6897
|
};
|
|
6871
|
-
|
|
6898
|
+
var onerror = function onerror(err) {
|
|
6872
6899
|
callback.call(stream, err);
|
|
6873
6900
|
};
|
|
6874
|
-
|
|
6875
|
-
|
|
6901
|
+
var onclose = function onclose() {
|
|
6902
|
+
var err;
|
|
6876
6903
|
if (readable && !readableEnded) {
|
|
6877
6904
|
if (!stream._readableState || !stream._readableState.ended) err = new ERR_STREAM_PREMATURE_CLOSE();
|
|
6878
6905
|
return callback.call(stream, err);
|
|
@@ -6882,7 +6909,7 @@ function eos(stream, opts, callback) {
|
|
|
6882
6909
|
return callback.call(stream, err);
|
|
6883
6910
|
}
|
|
6884
6911
|
};
|
|
6885
|
-
|
|
6912
|
+
var onrequest = function onrequest() {
|
|
6886
6913
|
stream.req.on('finish', onfinish);
|
|
6887
6914
|
};
|
|
6888
6915
|
if (isRequest(stream)) {
|
|
@@ -6928,18 +6955,18 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6928
6955
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6929
6956
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
6930
6957
|
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
6931
|
-
|
|
6958
|
+
var ERR_INVALID_ARG_TYPE = (__webpack_require__(18128)/* .codes.ERR_INVALID_ARG_TYPE */ .q.ERR_INVALID_ARG_TYPE);
|
|
6932
6959
|
function from(Readable, iterable, opts) {
|
|
6933
|
-
|
|
6960
|
+
var iterator;
|
|
6934
6961
|
if (iterable && typeof iterable.next === 'function') {
|
|
6935
6962
|
iterator = iterable;
|
|
6936
6963
|
} else if (iterable && iterable[Symbol.asyncIterator]) iterator = iterable[Symbol.asyncIterator]();else if (iterable && iterable[Symbol.iterator]) iterator = iterable[Symbol.iterator]();else throw new ERR_INVALID_ARG_TYPE('iterable', ['Iterable'], iterable);
|
|
6937
|
-
|
|
6964
|
+
var readable = new Readable(_objectSpread({
|
|
6938
6965
|
objectMode: true
|
|
6939
6966
|
}, opts));
|
|
6940
6967
|
// Reading boolean to protect against _read
|
|
6941
6968
|
// being called before last iteration completion.
|
|
6942
|
-
|
|
6969
|
+
var reading = false;
|
|
6943
6970
|
readable._read = function () {
|
|
6944
6971
|
if (!reading) {
|
|
6945
6972
|
reading = true;
|
|
@@ -6952,7 +6979,7 @@ function from(Readable, iterable, opts) {
|
|
|
6952
6979
|
function _next2() {
|
|
6953
6980
|
_next2 = _asyncToGenerator(function* () {
|
|
6954
6981
|
try {
|
|
6955
|
-
|
|
6982
|
+
var _yield$iterator$next = yield iterator.next(),
|
|
6956
6983
|
value = _yield$iterator$next.value,
|
|
6957
6984
|
done = _yield$iterator$next.done;
|
|
6958
6985
|
if (done) {
|
|
@@ -6972,6 +6999,7 @@ function from(Readable, iterable, opts) {
|
|
|
6972
6999
|
}
|
|
6973
7000
|
module.exports = from;
|
|
6974
7001
|
|
|
7002
|
+
|
|
6975
7003
|
/***/ }),
|
|
6976
7004
|
|
|
6977
7005
|
/***/ 51693:
|
|
@@ -6983,16 +7011,16 @@ module.exports = from;
|
|
|
6983
7011
|
|
|
6984
7012
|
|
|
6985
7013
|
|
|
6986
|
-
|
|
7014
|
+
var eos;
|
|
6987
7015
|
function once(callback) {
|
|
6988
|
-
|
|
7016
|
+
var called = false;
|
|
6989
7017
|
return function () {
|
|
6990
7018
|
if (called) return;
|
|
6991
7019
|
called = true;
|
|
6992
|
-
callback(
|
|
7020
|
+
callback.apply(void 0, arguments);
|
|
6993
7021
|
};
|
|
6994
7022
|
}
|
|
6995
|
-
|
|
7023
|
+
var _require$codes = (__webpack_require__(18128)/* .codes */ .q),
|
|
6996
7024
|
ERR_MISSING_ARGS = _require$codes.ERR_MISSING_ARGS,
|
|
6997
7025
|
ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED;
|
|
6998
7026
|
function noop(err) {
|
|
@@ -7004,21 +7032,21 @@ function isRequest(stream) {
|
|
|
7004
7032
|
}
|
|
7005
7033
|
function destroyer(stream, reading, writing, callback) {
|
|
7006
7034
|
callback = once(callback);
|
|
7007
|
-
|
|
7008
|
-
stream.on('close', ()
|
|
7035
|
+
var closed = false;
|
|
7036
|
+
stream.on('close', function () {
|
|
7009
7037
|
closed = true;
|
|
7010
7038
|
});
|
|
7011
7039
|
if (eos === undefined) eos = __webpack_require__(30685);
|
|
7012
7040
|
eos(stream, {
|
|
7013
7041
|
readable: reading,
|
|
7014
7042
|
writable: writing
|
|
7015
|
-
}, err
|
|
7043
|
+
}, function (err) {
|
|
7016
7044
|
if (err) return callback(err);
|
|
7017
7045
|
closed = true;
|
|
7018
7046
|
callback();
|
|
7019
7047
|
});
|
|
7020
|
-
|
|
7021
|
-
return err
|
|
7048
|
+
var destroyed = false;
|
|
7049
|
+
return function (err) {
|
|
7022
7050
|
if (closed) return;
|
|
7023
7051
|
if (destroyed) return;
|
|
7024
7052
|
destroyed = true;
|
|
@@ -7044,15 +7072,15 @@ function pipeline() {
|
|
|
7044
7072
|
for (var _len = arguments.length, streams = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
7045
7073
|
streams[_key] = arguments[_key];
|
|
7046
7074
|
}
|
|
7047
|
-
|
|
7075
|
+
var callback = popCallback(streams);
|
|
7048
7076
|
if (Array.isArray(streams[0])) streams = streams[0];
|
|
7049
7077
|
if (streams.length < 2) {
|
|
7050
7078
|
throw new ERR_MISSING_ARGS('streams');
|
|
7051
7079
|
}
|
|
7052
|
-
|
|
7053
|
-
|
|
7054
|
-
|
|
7055
|
-
|
|
7080
|
+
var error;
|
|
7081
|
+
var destroys = streams.map(function (stream, i) {
|
|
7082
|
+
var reading = i < streams.length - 1;
|
|
7083
|
+
var writing = i > 0;
|
|
7056
7084
|
return destroyer(stream, reading, writing, function (err) {
|
|
7057
7085
|
if (!error) error = err;
|
|
7058
7086
|
if (err) destroys.forEach(call);
|
|
@@ -7073,15 +7101,15 @@ module.exports = pipeline;
|
|
|
7073
7101
|
"use strict";
|
|
7074
7102
|
|
|
7075
7103
|
|
|
7076
|
-
|
|
7104
|
+
var ERR_INVALID_OPT_VALUE = (__webpack_require__(18128)/* .codes.ERR_INVALID_OPT_VALUE */ .q.ERR_INVALID_OPT_VALUE);
|
|
7077
7105
|
function highWaterMarkFrom(options, isDuplex, duplexKey) {
|
|
7078
7106
|
return options.highWaterMark != null ? options.highWaterMark : isDuplex ? options[duplexKey] : null;
|
|
7079
7107
|
}
|
|
7080
7108
|
function getHighWaterMark(state, options, duplexKey, isDuplex) {
|
|
7081
|
-
|
|
7109
|
+
var hwm = highWaterMarkFrom(options, isDuplex, duplexKey);
|
|
7082
7110
|
if (hwm != null) {
|
|
7083
7111
|
if (!(isFinite(hwm) && Math.floor(hwm) === hwm) || hwm < 0) {
|
|
7084
|
-
|
|
7112
|
+
var name = isDuplex ? duplexKey : 'highWaterMark';
|
|
7085
7113
|
throw new ERR_INVALID_OPT_VALUE(name, hwm);
|
|
7086
7114
|
}
|
|
7087
7115
|
return Math.floor(hwm);
|
|
@@ -7091,7 +7119,7 @@ function getHighWaterMark(state, options, duplexKey, isDuplex) {
|
|
|
7091
7119
|
return state.objectMode ? 16 : 16 * 1024;
|
|
7092
7120
|
}
|
|
7093
7121
|
module.exports = {
|
|
7094
|
-
getHighWaterMark
|
|
7122
|
+
getHighWaterMark: getHighWaterMark
|
|
7095
7123
|
};
|
|
7096
7124
|
|
|
7097
7125
|
/***/ }),
|
|
@@ -8950,7 +8978,7 @@ exports.transports = __webpack_require__(76091);
|
|
|
8950
8978
|
* Expose utility methods
|
|
8951
8979
|
* @type {Object}
|
|
8952
8980
|
*/
|
|
8953
|
-
exports.config = __webpack_require__(
|
|
8981
|
+
exports.config = __webpack_require__(17082);
|
|
8954
8982
|
/**
|
|
8955
8983
|
* Hoist format-related functionality from logform.
|
|
8956
8984
|
* @type {Object}
|
|
@@ -9173,7 +9201,7 @@ exports.warn = {
|
|
|
9173
9201
|
|
|
9174
9202
|
/***/ }),
|
|
9175
9203
|
|
|
9176
|
-
/***/
|
|
9204
|
+
/***/ 17082:
|
|
9177
9205
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
9178
9206
|
|
|
9179
9207
|
"use strict";
|
|
@@ -9352,7 +9380,7 @@ module.exports = class Container {
|
|
|
9352
9380
|
|
|
9353
9381
|
|
|
9354
9382
|
const { LEVEL } = __webpack_require__(82068);
|
|
9355
|
-
const config = __webpack_require__(
|
|
9383
|
+
const config = __webpack_require__(17082);
|
|
9356
9384
|
const Logger = __webpack_require__(13240);
|
|
9357
9385
|
const debug = __webpack_require__(37908)('winston:create-logger');
|
|
9358
9386
|
|
|
@@ -9787,7 +9815,7 @@ const RejectionHandler = __webpack_require__(47983);
|
|
|
9787
9815
|
const LegacyTransportStream = __webpack_require__(45630);
|
|
9788
9816
|
const Profiler = __webpack_require__(64871);
|
|
9789
9817
|
const { warn } = __webpack_require__(23220);
|
|
9790
|
-
const config = __webpack_require__(
|
|
9818
|
+
const config = __webpack_require__(17082);
|
|
9791
9819
|
|
|
9792
9820
|
/**
|
|
9793
9821
|
* Captures the number of format (i.e. %s strings) in a given string.
|