@sap/ux-ui5-tooling 1.12.2 → 1.12.4
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/CHANGELOG.md +11 -0
- package/dist/cli/index.js +21416 -20156
- package/dist/middlewares/fiori-tools-appreload.js +44 -2565
- package/dist/middlewares/fiori-tools-preview.js +827 -3210
- package/dist/middlewares/fiori-tools-proxy.js +12210 -16876
- package/dist/middlewares/fiori-tools-servestatic.js +44 -2565
- package/dist/tasks/cf-deploy/index.js +840 -3223
- package/dist/tasks/deploy/index.js +18707 -17450
- package/package.json +15 -14
|
@@ -4451,16 +4451,16 @@ var require_node2 = __commonJS({
|
|
|
4451
4451
|
}
|
|
4452
4452
|
});
|
|
4453
4453
|
|
|
4454
|
-
// ../../node_modules/
|
|
4454
|
+
// ../../node_modules/readable-stream/lib/internal/streams/stream.js
|
|
4455
4455
|
var require_stream = __commonJS({
|
|
4456
|
-
"../../node_modules/
|
|
4456
|
+
"../../node_modules/readable-stream/lib/internal/streams/stream.js"(exports2, module2) {
|
|
4457
4457
|
module2.exports = require("stream");
|
|
4458
4458
|
}
|
|
4459
4459
|
});
|
|
4460
4460
|
|
|
4461
|
-
// ../../node_modules/
|
|
4461
|
+
// ../../node_modules/readable-stream/lib/internal/streams/destroy.js
|
|
4462
4462
|
var require_destroy2 = __commonJS({
|
|
4463
|
-
"../../node_modules/
|
|
4463
|
+
"../../node_modules/readable-stream/lib/internal/streams/destroy.js"(exports2, module2) {
|
|
4464
4464
|
"use strict";
|
|
4465
4465
|
function destroy(err, cb) {
|
|
4466
4466
|
var _this = this;
|
|
@@ -4551,9 +4551,9 @@ var require_destroy2 = __commonJS({
|
|
|
4551
4551
|
}
|
|
4552
4552
|
});
|
|
4553
4553
|
|
|
4554
|
-
// ../../node_modules/
|
|
4554
|
+
// ../../node_modules/readable-stream/errors.js
|
|
4555
4555
|
var require_errors = __commonJS({
|
|
4556
|
-
"../../node_modules/
|
|
4556
|
+
"../../node_modules/readable-stream/errors.js"(exports2, module2) {
|
|
4557
4557
|
"use strict";
|
|
4558
4558
|
var codes = {};
|
|
4559
4559
|
function createErrorType(code, message2, Base) {
|
|
@@ -4651,9 +4651,9 @@ var require_errors = __commonJS({
|
|
|
4651
4651
|
}
|
|
4652
4652
|
});
|
|
4653
4653
|
|
|
4654
|
-
// ../../node_modules/
|
|
4654
|
+
// ../../node_modules/readable-stream/lib/internal/streams/state.js
|
|
4655
4655
|
var require_state = __commonJS({
|
|
4656
|
-
"../../node_modules/
|
|
4656
|
+
"../../node_modules/readable-stream/lib/internal/streams/state.js"(exports2, module2) {
|
|
4657
4657
|
"use strict";
|
|
4658
4658
|
var ERR_INVALID_OPT_VALUE = require_errors().codes.ERR_INVALID_OPT_VALUE;
|
|
4659
4659
|
function highWaterMarkFrom(options, isDuplex, duplexKey) {
|
|
@@ -4676,9 +4676,9 @@ var require_state = __commonJS({
|
|
|
4676
4676
|
}
|
|
4677
4677
|
});
|
|
4678
4678
|
|
|
4679
|
-
// ../../node_modules/
|
|
4679
|
+
// ../../node_modules/readable-stream/lib/internal/streams/buffer_list.js
|
|
4680
4680
|
var require_buffer_list = __commonJS({
|
|
4681
|
-
"../../node_modules/
|
|
4681
|
+
"../../node_modules/readable-stream/lib/internal/streams/buffer_list.js"(exports2, module2) {
|
|
4682
4682
|
"use strict";
|
|
4683
4683
|
function ownKeys(object, enumerableOnly) {
|
|
4684
4684
|
var keys = Object.keys(object);
|
|
@@ -4987,9 +4987,9 @@ var require_safe_buffer = __commonJS({
|
|
|
4987
4987
|
}
|
|
4988
4988
|
});
|
|
4989
4989
|
|
|
4990
|
-
// ../../node_modules/
|
|
4990
|
+
// ../../node_modules/readable-stream/node_modules/string_decoder/lib/string_decoder.js
|
|
4991
4991
|
var require_string_decoder = __commonJS({
|
|
4992
|
-
"../../node_modules/
|
|
4992
|
+
"../../node_modules/readable-stream/node_modules/string_decoder/lib/string_decoder.js"(exports2) {
|
|
4993
4993
|
"use strict";
|
|
4994
4994
|
var Buffer2 = require_safe_buffer().Buffer;
|
|
4995
4995
|
var isEncoding = Buffer2.isEncoding || function(encoding) {
|
|
@@ -5247,9 +5247,9 @@ var require_string_decoder = __commonJS({
|
|
|
5247
5247
|
}
|
|
5248
5248
|
});
|
|
5249
5249
|
|
|
5250
|
-
// ../../node_modules/
|
|
5250
|
+
// ../../node_modules/readable-stream/lib/internal/streams/end-of-stream.js
|
|
5251
5251
|
var require_end_of_stream = __commonJS({
|
|
5252
|
-
"../../node_modules/
|
|
5252
|
+
"../../node_modules/readable-stream/lib/internal/streams/end-of-stream.js"(exports2, module2) {
|
|
5253
5253
|
"use strict";
|
|
5254
5254
|
var ERR_STREAM_PREMATURE_CLOSE = require_errors().codes.ERR_STREAM_PREMATURE_CLOSE;
|
|
5255
5255
|
function once(callback) {
|
|
@@ -5348,9 +5348,9 @@ var require_end_of_stream = __commonJS({
|
|
|
5348
5348
|
}
|
|
5349
5349
|
});
|
|
5350
5350
|
|
|
5351
|
-
// ../../node_modules/
|
|
5351
|
+
// ../../node_modules/readable-stream/lib/internal/streams/async_iterator.js
|
|
5352
5352
|
var require_async_iterator = __commonJS({
|
|
5353
|
-
"../../node_modules/
|
|
5353
|
+
"../../node_modules/readable-stream/lib/internal/streams/async_iterator.js"(exports2, module2) {
|
|
5354
5354
|
"use strict";
|
|
5355
5355
|
var _Object$setPrototypeO;
|
|
5356
5356
|
function _defineProperty2(obj, key, value) {
|
|
@@ -5516,9 +5516,9 @@ var require_async_iterator = __commonJS({
|
|
|
5516
5516
|
}
|
|
5517
5517
|
});
|
|
5518
5518
|
|
|
5519
|
-
// ../../node_modules/
|
|
5519
|
+
// ../../node_modules/readable-stream/lib/internal/streams/from.js
|
|
5520
5520
|
var require_from = __commonJS({
|
|
5521
|
-
"../../node_modules/
|
|
5521
|
+
"../../node_modules/readable-stream/lib/internal/streams/from.js"(exports2, module2) {
|
|
5522
5522
|
"use strict";
|
|
5523
5523
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
5524
5524
|
try {
|
|
@@ -5633,9 +5633,9 @@ var require_from = __commonJS({
|
|
|
5633
5633
|
}
|
|
5634
5634
|
});
|
|
5635
5635
|
|
|
5636
|
-
// ../../node_modules/
|
|
5636
|
+
// ../../node_modules/readable-stream/lib/_stream_readable.js
|
|
5637
5637
|
var require_stream_readable = __commonJS({
|
|
5638
|
-
"../../node_modules/
|
|
5638
|
+
"../../node_modules/readable-stream/lib/_stream_readable.js"(exports2, module2) {
|
|
5639
5639
|
"use strict";
|
|
5640
5640
|
module2.exports = Readable;
|
|
5641
5641
|
var Duplex;
|
|
@@ -6431,9 +6431,9 @@ var require_stream_readable = __commonJS({
|
|
|
6431
6431
|
}
|
|
6432
6432
|
});
|
|
6433
6433
|
|
|
6434
|
-
// ../../node_modules/
|
|
6434
|
+
// ../../node_modules/readable-stream/lib/_stream_duplex.js
|
|
6435
6435
|
var require_stream_duplex = __commonJS({
|
|
6436
|
-
"../../node_modules/
|
|
6436
|
+
"../../node_modules/readable-stream/lib/_stream_duplex.js"(exports2, module2) {
|
|
6437
6437
|
"use strict";
|
|
6438
6438
|
var objectKeys = Object.keys || function(obj) {
|
|
6439
6439
|
var keys2 = [];
|
|
@@ -6531,9 +6531,9 @@ var require_stream_duplex = __commonJS({
|
|
|
6531
6531
|
}
|
|
6532
6532
|
});
|
|
6533
6533
|
|
|
6534
|
-
// ../../node_modules/
|
|
6534
|
+
// ../../node_modules/readable-stream/lib/_stream_writable.js
|
|
6535
6535
|
var require_stream_writable = __commonJS({
|
|
6536
|
-
"../../node_modules/
|
|
6536
|
+
"../../node_modules/readable-stream/lib/_stream_writable.js"(exports2, module2) {
|
|
6537
6537
|
"use strict";
|
|
6538
6538
|
module2.exports = Writable;
|
|
6539
6539
|
function CorkedRequest(state) {
|
|
@@ -10765,2539 +10765,17 @@ var require_series = __commonJS({
|
|
|
10765
10765
|
}
|
|
10766
10766
|
});
|
|
10767
10767
|
|
|
10768
|
-
// ../../node_modules/
|
|
10769
|
-
var require_stream2 = __commonJS({
|
|
10770
|
-
"../../node_modules/winston/node_modules/readable-stream/lib/internal/streams/stream.js"(exports2, module2) {
|
|
10771
|
-
module2.exports = require("stream");
|
|
10772
|
-
}
|
|
10773
|
-
});
|
|
10774
|
-
|
|
10775
|
-
// ../../node_modules/winston/node_modules/readable-stream/lib/internal/streams/buffer_list.js
|
|
10776
|
-
var require_buffer_list2 = __commonJS({
|
|
10777
|
-
"../../node_modules/winston/node_modules/readable-stream/lib/internal/streams/buffer_list.js"(exports2, module2) {
|
|
10778
|
-
"use strict";
|
|
10779
|
-
function ownKeys(object, enumerableOnly) {
|
|
10780
|
-
var keys = Object.keys(object);
|
|
10781
|
-
if (Object.getOwnPropertySymbols) {
|
|
10782
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
10783
|
-
if (enumerableOnly)
|
|
10784
|
-
symbols = symbols.filter(function(sym) {
|
|
10785
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
10786
|
-
});
|
|
10787
|
-
keys.push.apply(keys, symbols);
|
|
10788
|
-
}
|
|
10789
|
-
return keys;
|
|
10790
|
-
}
|
|
10791
|
-
function _objectSpread2(target) {
|
|
10792
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
10793
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
10794
|
-
if (i % 2) {
|
|
10795
|
-
ownKeys(Object(source), true).forEach(function(key) {
|
|
10796
|
-
_defineProperty2(target, key, source[key]);
|
|
10797
|
-
});
|
|
10798
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
|
10799
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10800
|
-
} else {
|
|
10801
|
-
ownKeys(Object(source)).forEach(function(key) {
|
|
10802
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10803
|
-
});
|
|
10804
|
-
}
|
|
10805
|
-
}
|
|
10806
|
-
return target;
|
|
10807
|
-
}
|
|
10808
|
-
function _defineProperty2(obj, key, value) {
|
|
10809
|
-
if (key in obj) {
|
|
10810
|
-
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
10811
|
-
} else {
|
|
10812
|
-
obj[key] = value;
|
|
10813
|
-
}
|
|
10814
|
-
return obj;
|
|
10815
|
-
}
|
|
10816
|
-
function _classCallCheck2(instance, Constructor) {
|
|
10817
|
-
if (!(instance instanceof Constructor)) {
|
|
10818
|
-
throw new TypeError("Cannot call a class as a function");
|
|
10819
|
-
}
|
|
10820
|
-
}
|
|
10821
|
-
function _defineProperties2(target, props) {
|
|
10822
|
-
for (var i = 0; i < props.length; i++) {
|
|
10823
|
-
var descriptor = props[i];
|
|
10824
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
10825
|
-
descriptor.configurable = true;
|
|
10826
|
-
if ("value" in descriptor)
|
|
10827
|
-
descriptor.writable = true;
|
|
10828
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
10829
|
-
}
|
|
10830
|
-
}
|
|
10831
|
-
function _createClass2(Constructor, protoProps, staticProps) {
|
|
10832
|
-
if (protoProps)
|
|
10833
|
-
_defineProperties2(Constructor.prototype, protoProps);
|
|
10834
|
-
if (staticProps)
|
|
10835
|
-
_defineProperties2(Constructor, staticProps);
|
|
10836
|
-
return Constructor;
|
|
10837
|
-
}
|
|
10838
|
-
var _require = require("buffer");
|
|
10839
|
-
var Buffer2 = _require.Buffer;
|
|
10840
|
-
var _require2 = require("util");
|
|
10841
|
-
var inspect = _require2.inspect;
|
|
10842
|
-
var custom = inspect && inspect.custom || "inspect";
|
|
10843
|
-
function copyBuffer(src, target, offset) {
|
|
10844
|
-
Buffer2.prototype.copy.call(src, target, offset);
|
|
10845
|
-
}
|
|
10846
|
-
module2.exports = /* @__PURE__ */ function() {
|
|
10847
|
-
function BufferList() {
|
|
10848
|
-
_classCallCheck2(this, BufferList);
|
|
10849
|
-
this.head = null;
|
|
10850
|
-
this.tail = null;
|
|
10851
|
-
this.length = 0;
|
|
10852
|
-
}
|
|
10853
|
-
_createClass2(BufferList, [{
|
|
10854
|
-
key: "push",
|
|
10855
|
-
value: function push(v) {
|
|
10856
|
-
var entry = {
|
|
10857
|
-
data: v,
|
|
10858
|
-
next: null
|
|
10859
|
-
};
|
|
10860
|
-
if (this.length > 0)
|
|
10861
|
-
this.tail.next = entry;
|
|
10862
|
-
else
|
|
10863
|
-
this.head = entry;
|
|
10864
|
-
this.tail = entry;
|
|
10865
|
-
++this.length;
|
|
10866
|
-
}
|
|
10867
|
-
}, {
|
|
10868
|
-
key: "unshift",
|
|
10869
|
-
value: function unshift(v) {
|
|
10870
|
-
var entry = {
|
|
10871
|
-
data: v,
|
|
10872
|
-
next: this.head
|
|
10873
|
-
};
|
|
10874
|
-
if (this.length === 0)
|
|
10875
|
-
this.tail = entry;
|
|
10876
|
-
this.head = entry;
|
|
10877
|
-
++this.length;
|
|
10878
|
-
}
|
|
10879
|
-
}, {
|
|
10880
|
-
key: "shift",
|
|
10881
|
-
value: function shift() {
|
|
10882
|
-
if (this.length === 0)
|
|
10883
|
-
return;
|
|
10884
|
-
var ret = this.head.data;
|
|
10885
|
-
if (this.length === 1)
|
|
10886
|
-
this.head = this.tail = null;
|
|
10887
|
-
else
|
|
10888
|
-
this.head = this.head.next;
|
|
10889
|
-
--this.length;
|
|
10890
|
-
return ret;
|
|
10891
|
-
}
|
|
10892
|
-
}, {
|
|
10893
|
-
key: "clear",
|
|
10894
|
-
value: function clear() {
|
|
10895
|
-
this.head = this.tail = null;
|
|
10896
|
-
this.length = 0;
|
|
10897
|
-
}
|
|
10898
|
-
}, {
|
|
10899
|
-
key: "join",
|
|
10900
|
-
value: function join2(s) {
|
|
10901
|
-
if (this.length === 0)
|
|
10902
|
-
return "";
|
|
10903
|
-
var p = this.head;
|
|
10904
|
-
var ret = "" + p.data;
|
|
10905
|
-
while (p = p.next) {
|
|
10906
|
-
ret += s + p.data;
|
|
10907
|
-
}
|
|
10908
|
-
return ret;
|
|
10909
|
-
}
|
|
10910
|
-
}, {
|
|
10911
|
-
key: "concat",
|
|
10912
|
-
value: function concat(n) {
|
|
10913
|
-
if (this.length === 0)
|
|
10914
|
-
return Buffer2.alloc(0);
|
|
10915
|
-
var ret = Buffer2.allocUnsafe(n >>> 0);
|
|
10916
|
-
var p = this.head;
|
|
10917
|
-
var i = 0;
|
|
10918
|
-
while (p) {
|
|
10919
|
-
copyBuffer(p.data, ret, i);
|
|
10920
|
-
i += p.data.length;
|
|
10921
|
-
p = p.next;
|
|
10922
|
-
}
|
|
10923
|
-
return ret;
|
|
10924
|
-
}
|
|
10925
|
-
// Consumes a specified amount of bytes or characters from the buffered data.
|
|
10926
|
-
}, {
|
|
10927
|
-
key: "consume",
|
|
10928
|
-
value: function consume(n, hasStrings) {
|
|
10929
|
-
var ret;
|
|
10930
|
-
if (n < this.head.data.length) {
|
|
10931
|
-
ret = this.head.data.slice(0, n);
|
|
10932
|
-
this.head.data = this.head.data.slice(n);
|
|
10933
|
-
} else if (n === this.head.data.length) {
|
|
10934
|
-
ret = this.shift();
|
|
10935
|
-
} else {
|
|
10936
|
-
ret = hasStrings ? this._getString(n) : this._getBuffer(n);
|
|
10937
|
-
}
|
|
10938
|
-
return ret;
|
|
10939
|
-
}
|
|
10940
|
-
}, {
|
|
10941
|
-
key: "first",
|
|
10942
|
-
value: function first() {
|
|
10943
|
-
return this.head.data;
|
|
10944
|
-
}
|
|
10945
|
-
// Consumes a specified amount of characters from the buffered data.
|
|
10946
|
-
}, {
|
|
10947
|
-
key: "_getString",
|
|
10948
|
-
value: function _getString(n) {
|
|
10949
|
-
var p = this.head;
|
|
10950
|
-
var c = 1;
|
|
10951
|
-
var ret = p.data;
|
|
10952
|
-
n -= ret.length;
|
|
10953
|
-
while (p = p.next) {
|
|
10954
|
-
var str = p.data;
|
|
10955
|
-
var nb = n > str.length ? str.length : n;
|
|
10956
|
-
if (nb === str.length)
|
|
10957
|
-
ret += str;
|
|
10958
|
-
else
|
|
10959
|
-
ret += str.slice(0, n);
|
|
10960
|
-
n -= nb;
|
|
10961
|
-
if (n === 0) {
|
|
10962
|
-
if (nb === str.length) {
|
|
10963
|
-
++c;
|
|
10964
|
-
if (p.next)
|
|
10965
|
-
this.head = p.next;
|
|
10966
|
-
else
|
|
10967
|
-
this.head = this.tail = null;
|
|
10968
|
-
} else {
|
|
10969
|
-
this.head = p;
|
|
10970
|
-
p.data = str.slice(nb);
|
|
10971
|
-
}
|
|
10972
|
-
break;
|
|
10973
|
-
}
|
|
10974
|
-
++c;
|
|
10975
|
-
}
|
|
10976
|
-
this.length -= c;
|
|
10977
|
-
return ret;
|
|
10978
|
-
}
|
|
10979
|
-
// Consumes a specified amount of bytes from the buffered data.
|
|
10980
|
-
}, {
|
|
10981
|
-
key: "_getBuffer",
|
|
10982
|
-
value: function _getBuffer(n) {
|
|
10983
|
-
var ret = Buffer2.allocUnsafe(n);
|
|
10984
|
-
var p = this.head;
|
|
10985
|
-
var c = 1;
|
|
10986
|
-
p.data.copy(ret);
|
|
10987
|
-
n -= p.data.length;
|
|
10988
|
-
while (p = p.next) {
|
|
10989
|
-
var buf = p.data;
|
|
10990
|
-
var nb = n > buf.length ? buf.length : n;
|
|
10991
|
-
buf.copy(ret, ret.length - n, 0, nb);
|
|
10992
|
-
n -= nb;
|
|
10993
|
-
if (n === 0) {
|
|
10994
|
-
if (nb === buf.length) {
|
|
10995
|
-
++c;
|
|
10996
|
-
if (p.next)
|
|
10997
|
-
this.head = p.next;
|
|
10998
|
-
else
|
|
10999
|
-
this.head = this.tail = null;
|
|
11000
|
-
} else {
|
|
11001
|
-
this.head = p;
|
|
11002
|
-
p.data = buf.slice(nb);
|
|
11003
|
-
}
|
|
11004
|
-
break;
|
|
11005
|
-
}
|
|
11006
|
-
++c;
|
|
11007
|
-
}
|
|
11008
|
-
this.length -= c;
|
|
11009
|
-
return ret;
|
|
11010
|
-
}
|
|
11011
|
-
// Make sure the linked list only shows the minimal necessary information.
|
|
11012
|
-
}, {
|
|
11013
|
-
key: custom,
|
|
11014
|
-
value: function value(_23, options) {
|
|
11015
|
-
return inspect(this, _objectSpread2({}, options, {
|
|
11016
|
-
// Only inspect one level.
|
|
11017
|
-
depth: 0,
|
|
11018
|
-
// It should not recurse.
|
|
11019
|
-
customInspect: false
|
|
11020
|
-
}));
|
|
11021
|
-
}
|
|
11022
|
-
}]);
|
|
11023
|
-
return BufferList;
|
|
11024
|
-
}();
|
|
11025
|
-
}
|
|
11026
|
-
});
|
|
11027
|
-
|
|
11028
|
-
// ../../node_modules/winston/node_modules/readable-stream/lib/internal/streams/destroy.js
|
|
11029
|
-
var require_destroy3 = __commonJS({
|
|
11030
|
-
"../../node_modules/winston/node_modules/readable-stream/lib/internal/streams/destroy.js"(exports2, module2) {
|
|
11031
|
-
"use strict";
|
|
11032
|
-
function destroy(err, cb) {
|
|
11033
|
-
var _this = this;
|
|
11034
|
-
var readableDestroyed = this._readableState && this._readableState.destroyed;
|
|
11035
|
-
var writableDestroyed = this._writableState && this._writableState.destroyed;
|
|
11036
|
-
if (readableDestroyed || writableDestroyed) {
|
|
11037
|
-
if (cb) {
|
|
11038
|
-
cb(err);
|
|
11039
|
-
} else if (err) {
|
|
11040
|
-
if (!this._writableState) {
|
|
11041
|
-
process.nextTick(emitErrorNT, this, err);
|
|
11042
|
-
} else if (!this._writableState.errorEmitted) {
|
|
11043
|
-
this._writableState.errorEmitted = true;
|
|
11044
|
-
process.nextTick(emitErrorNT, this, err);
|
|
11045
|
-
}
|
|
11046
|
-
}
|
|
11047
|
-
return this;
|
|
11048
|
-
}
|
|
11049
|
-
if (this._readableState) {
|
|
11050
|
-
this._readableState.destroyed = true;
|
|
11051
|
-
}
|
|
11052
|
-
if (this._writableState) {
|
|
11053
|
-
this._writableState.destroyed = true;
|
|
11054
|
-
}
|
|
11055
|
-
this._destroy(err || null, function(err2) {
|
|
11056
|
-
if (!cb && err2) {
|
|
11057
|
-
if (!_this._writableState) {
|
|
11058
|
-
process.nextTick(emitErrorAndCloseNT, _this, err2);
|
|
11059
|
-
} else if (!_this._writableState.errorEmitted) {
|
|
11060
|
-
_this._writableState.errorEmitted = true;
|
|
11061
|
-
process.nextTick(emitErrorAndCloseNT, _this, err2);
|
|
11062
|
-
} else {
|
|
11063
|
-
process.nextTick(emitCloseNT, _this);
|
|
11064
|
-
}
|
|
11065
|
-
} else if (cb) {
|
|
11066
|
-
process.nextTick(emitCloseNT, _this);
|
|
11067
|
-
cb(err2);
|
|
11068
|
-
} else {
|
|
11069
|
-
process.nextTick(emitCloseNT, _this);
|
|
11070
|
-
}
|
|
11071
|
-
});
|
|
11072
|
-
return this;
|
|
11073
|
-
}
|
|
11074
|
-
function emitErrorAndCloseNT(self2, err) {
|
|
11075
|
-
emitErrorNT(self2, err);
|
|
11076
|
-
emitCloseNT(self2);
|
|
11077
|
-
}
|
|
11078
|
-
function emitCloseNT(self2) {
|
|
11079
|
-
if (self2._writableState && !self2._writableState.emitClose)
|
|
11080
|
-
return;
|
|
11081
|
-
if (self2._readableState && !self2._readableState.emitClose)
|
|
11082
|
-
return;
|
|
11083
|
-
self2.emit("close");
|
|
11084
|
-
}
|
|
11085
|
-
function undestroy() {
|
|
11086
|
-
if (this._readableState) {
|
|
11087
|
-
this._readableState.destroyed = false;
|
|
11088
|
-
this._readableState.reading = false;
|
|
11089
|
-
this._readableState.ended = false;
|
|
11090
|
-
this._readableState.endEmitted = false;
|
|
11091
|
-
}
|
|
11092
|
-
if (this._writableState) {
|
|
11093
|
-
this._writableState.destroyed = false;
|
|
11094
|
-
this._writableState.ended = false;
|
|
11095
|
-
this._writableState.ending = false;
|
|
11096
|
-
this._writableState.finalCalled = false;
|
|
11097
|
-
this._writableState.prefinished = false;
|
|
11098
|
-
this._writableState.finished = false;
|
|
11099
|
-
this._writableState.errorEmitted = false;
|
|
11100
|
-
}
|
|
11101
|
-
}
|
|
11102
|
-
function emitErrorNT(self2, err) {
|
|
11103
|
-
self2.emit("error", err);
|
|
11104
|
-
}
|
|
11105
|
-
function errorOrDestroy(stream, err) {
|
|
11106
|
-
var rState = stream._readableState;
|
|
11107
|
-
var wState = stream._writableState;
|
|
11108
|
-
if (rState && rState.autoDestroy || wState && wState.autoDestroy)
|
|
11109
|
-
stream.destroy(err);
|
|
11110
|
-
else
|
|
11111
|
-
stream.emit("error", err);
|
|
11112
|
-
}
|
|
11113
|
-
module2.exports = {
|
|
11114
|
-
destroy,
|
|
11115
|
-
undestroy,
|
|
11116
|
-
errorOrDestroy
|
|
11117
|
-
};
|
|
11118
|
-
}
|
|
11119
|
-
});
|
|
11120
|
-
|
|
11121
|
-
// ../../node_modules/winston/node_modules/readable-stream/errors.js
|
|
11122
|
-
var require_errors3 = __commonJS({
|
|
11123
|
-
"../../node_modules/winston/node_modules/readable-stream/errors.js"(exports2, module2) {
|
|
11124
|
-
"use strict";
|
|
11125
|
-
var codes = {};
|
|
11126
|
-
function createErrorType(code, message2, Base) {
|
|
11127
|
-
if (!Base) {
|
|
11128
|
-
Base = Error;
|
|
11129
|
-
}
|
|
11130
|
-
function getMessage(arg1, arg2, arg3) {
|
|
11131
|
-
if (typeof message2 === "string") {
|
|
11132
|
-
return message2;
|
|
11133
|
-
} else {
|
|
11134
|
-
return message2(arg1, arg2, arg3);
|
|
11135
|
-
}
|
|
11136
|
-
}
|
|
11137
|
-
class NodeError extends Base {
|
|
11138
|
-
constructor(arg1, arg2, arg3) {
|
|
11139
|
-
super(getMessage(arg1, arg2, arg3));
|
|
11140
|
-
}
|
|
11141
|
-
}
|
|
11142
|
-
NodeError.prototype.name = Base.name;
|
|
11143
|
-
NodeError.prototype.code = code;
|
|
11144
|
-
codes[code] = NodeError;
|
|
11145
|
-
}
|
|
11146
|
-
function oneOf(expected, thing) {
|
|
11147
|
-
if (Array.isArray(expected)) {
|
|
11148
|
-
const len = expected.length;
|
|
11149
|
-
expected = expected.map((i) => String(i));
|
|
11150
|
-
if (len > 2) {
|
|
11151
|
-
return `one of ${thing} ${expected.slice(0, len - 1).join(", ")}, or ` + expected[len - 1];
|
|
11152
|
-
} else if (len === 2) {
|
|
11153
|
-
return `one of ${thing} ${expected[0]} or ${expected[1]}`;
|
|
11154
|
-
} else {
|
|
11155
|
-
return `of ${thing} ${expected[0]}`;
|
|
11156
|
-
}
|
|
11157
|
-
} else {
|
|
11158
|
-
return `of ${thing} ${String(expected)}`;
|
|
11159
|
-
}
|
|
11160
|
-
}
|
|
11161
|
-
function startsWith(str, search, pos) {
|
|
11162
|
-
return str.substr(!pos || pos < 0 ? 0 : +pos, search.length) === search;
|
|
11163
|
-
}
|
|
11164
|
-
function endsWith(str, search, this_len) {
|
|
11165
|
-
if (this_len === void 0 || this_len > str.length) {
|
|
11166
|
-
this_len = str.length;
|
|
11167
|
-
}
|
|
11168
|
-
return str.substring(this_len - search.length, this_len) === search;
|
|
11169
|
-
}
|
|
11170
|
-
function includes(str, search, start) {
|
|
11171
|
-
if (typeof start !== "number") {
|
|
11172
|
-
start = 0;
|
|
11173
|
-
}
|
|
11174
|
-
if (start + search.length > str.length) {
|
|
11175
|
-
return false;
|
|
11176
|
-
} else {
|
|
11177
|
-
return str.indexOf(search, start) !== -1;
|
|
11178
|
-
}
|
|
11179
|
-
}
|
|
11180
|
-
createErrorType("ERR_INVALID_OPT_VALUE", function(name, value) {
|
|
11181
|
-
return 'The value "' + value + '" is invalid for option "' + name + '"';
|
|
11182
|
-
}, TypeError);
|
|
11183
|
-
createErrorType("ERR_INVALID_ARG_TYPE", function(name, expected, actual) {
|
|
11184
|
-
let determiner;
|
|
11185
|
-
if (typeof expected === "string" && startsWith(expected, "not ")) {
|
|
11186
|
-
determiner = "must not be";
|
|
11187
|
-
expected = expected.replace(/^not /, "");
|
|
11188
|
-
} else {
|
|
11189
|
-
determiner = "must be";
|
|
11190
|
-
}
|
|
11191
|
-
let msg;
|
|
11192
|
-
if (endsWith(name, " argument")) {
|
|
11193
|
-
msg = `The ${name} ${determiner} ${oneOf(expected, "type")}`;
|
|
11194
|
-
} else {
|
|
11195
|
-
const type = includes(name, ".") ? "property" : "argument";
|
|
11196
|
-
msg = `The "${name}" ${type} ${determiner} ${oneOf(expected, "type")}`;
|
|
11197
|
-
}
|
|
11198
|
-
msg += `. Received type ${typeof actual}`;
|
|
11199
|
-
return msg;
|
|
11200
|
-
}, TypeError);
|
|
11201
|
-
createErrorType("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF");
|
|
11202
|
-
createErrorType("ERR_METHOD_NOT_IMPLEMENTED", function(name) {
|
|
11203
|
-
return "The " + name + " method is not implemented";
|
|
11204
|
-
});
|
|
11205
|
-
createErrorType("ERR_STREAM_PREMATURE_CLOSE", "Premature close");
|
|
11206
|
-
createErrorType("ERR_STREAM_DESTROYED", function(name) {
|
|
11207
|
-
return "Cannot call " + name + " after a stream was destroyed";
|
|
11208
|
-
});
|
|
11209
|
-
createErrorType("ERR_MULTIPLE_CALLBACK", "Callback called multiple times");
|
|
11210
|
-
createErrorType("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable");
|
|
11211
|
-
createErrorType("ERR_STREAM_WRITE_AFTER_END", "write after end");
|
|
11212
|
-
createErrorType("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError);
|
|
11213
|
-
createErrorType("ERR_UNKNOWN_ENCODING", function(arg) {
|
|
11214
|
-
return "Unknown encoding: " + arg;
|
|
11215
|
-
}, TypeError);
|
|
11216
|
-
createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event");
|
|
11217
|
-
module2.exports.codes = codes;
|
|
11218
|
-
}
|
|
11219
|
-
});
|
|
11220
|
-
|
|
11221
|
-
// ../../node_modules/winston/node_modules/readable-stream/lib/internal/streams/state.js
|
|
11222
|
-
var require_state2 = __commonJS({
|
|
11223
|
-
"../../node_modules/winston/node_modules/readable-stream/lib/internal/streams/state.js"(exports2, module2) {
|
|
11224
|
-
"use strict";
|
|
11225
|
-
var ERR_INVALID_OPT_VALUE = require_errors3().codes.ERR_INVALID_OPT_VALUE;
|
|
11226
|
-
function highWaterMarkFrom(options, isDuplex, duplexKey) {
|
|
11227
|
-
return options.highWaterMark != null ? options.highWaterMark : isDuplex ? options[duplexKey] : null;
|
|
11228
|
-
}
|
|
11229
|
-
function getHighWaterMark(state, options, duplexKey, isDuplex) {
|
|
11230
|
-
var hwm = highWaterMarkFrom(options, isDuplex, duplexKey);
|
|
11231
|
-
if (hwm != null) {
|
|
11232
|
-
if (!(isFinite(hwm) && Math.floor(hwm) === hwm) || hwm < 0) {
|
|
11233
|
-
var name = isDuplex ? duplexKey : "highWaterMark";
|
|
11234
|
-
throw new ERR_INVALID_OPT_VALUE(name, hwm);
|
|
11235
|
-
}
|
|
11236
|
-
return Math.floor(hwm);
|
|
11237
|
-
}
|
|
11238
|
-
return state.objectMode ? 16 : 16 * 1024;
|
|
11239
|
-
}
|
|
11240
|
-
module2.exports = {
|
|
11241
|
-
getHighWaterMark
|
|
11242
|
-
};
|
|
11243
|
-
}
|
|
11244
|
-
});
|
|
11245
|
-
|
|
11246
|
-
// ../../node_modules/winston/node_modules/readable-stream/lib/_stream_writable.js
|
|
11247
|
-
var require_stream_writable2 = __commonJS({
|
|
11248
|
-
"../../node_modules/winston/node_modules/readable-stream/lib/_stream_writable.js"(exports2, module2) {
|
|
11249
|
-
"use strict";
|
|
11250
|
-
module2.exports = Writable;
|
|
11251
|
-
function CorkedRequest(state) {
|
|
11252
|
-
var _this = this;
|
|
11253
|
-
this.next = null;
|
|
11254
|
-
this.entry = null;
|
|
11255
|
-
this.finish = function() {
|
|
11256
|
-
onCorkedFinish(_this, state);
|
|
11257
|
-
};
|
|
11258
|
-
}
|
|
11259
|
-
var Duplex;
|
|
11260
|
-
Writable.WritableState = WritableState;
|
|
11261
|
-
var internalUtil = {
|
|
11262
|
-
deprecate: require_node2()
|
|
11263
|
-
};
|
|
11264
|
-
var Stream = require_stream2();
|
|
11265
|
-
var Buffer2 = require("buffer").Buffer;
|
|
11266
|
-
var OurUint8Array = global.Uint8Array || function() {
|
|
11267
|
-
};
|
|
11268
|
-
function _uint8ArrayToBuffer(chunk) {
|
|
11269
|
-
return Buffer2.from(chunk);
|
|
11270
|
-
}
|
|
11271
|
-
function _isUint8Array(obj) {
|
|
11272
|
-
return Buffer2.isBuffer(obj) || obj instanceof OurUint8Array;
|
|
11273
|
-
}
|
|
11274
|
-
var destroyImpl = require_destroy3();
|
|
11275
|
-
var _require = require_state2();
|
|
11276
|
-
var getHighWaterMark = _require.getHighWaterMark;
|
|
11277
|
-
var _require$codes = require_errors3().codes;
|
|
11278
|
-
var ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE;
|
|
11279
|
-
var ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED;
|
|
11280
|
-
var ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK;
|
|
11281
|
-
var ERR_STREAM_CANNOT_PIPE = _require$codes.ERR_STREAM_CANNOT_PIPE;
|
|
11282
|
-
var ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED;
|
|
11283
|
-
var ERR_STREAM_NULL_VALUES = _require$codes.ERR_STREAM_NULL_VALUES;
|
|
11284
|
-
var ERR_STREAM_WRITE_AFTER_END = _require$codes.ERR_STREAM_WRITE_AFTER_END;
|
|
11285
|
-
var ERR_UNKNOWN_ENCODING = _require$codes.ERR_UNKNOWN_ENCODING;
|
|
11286
|
-
var errorOrDestroy = destroyImpl.errorOrDestroy;
|
|
11287
|
-
require_inherits()(Writable, Stream);
|
|
11288
|
-
function nop() {
|
|
11289
|
-
}
|
|
11290
|
-
function WritableState(options, stream, isDuplex) {
|
|
11291
|
-
Duplex = Duplex || require_stream_duplex2();
|
|
11292
|
-
options = options || {};
|
|
11293
|
-
if (typeof isDuplex !== "boolean")
|
|
11294
|
-
isDuplex = stream instanceof Duplex;
|
|
11295
|
-
this.objectMode = !!options.objectMode;
|
|
11296
|
-
if (isDuplex)
|
|
11297
|
-
this.objectMode = this.objectMode || !!options.writableObjectMode;
|
|
11298
|
-
this.highWaterMark = getHighWaterMark(this, options, "writableHighWaterMark", isDuplex);
|
|
11299
|
-
this.finalCalled = false;
|
|
11300
|
-
this.needDrain = false;
|
|
11301
|
-
this.ending = false;
|
|
11302
|
-
this.ended = false;
|
|
11303
|
-
this.finished = false;
|
|
11304
|
-
this.destroyed = false;
|
|
11305
|
-
var noDecode = options.decodeStrings === false;
|
|
11306
|
-
this.decodeStrings = !noDecode;
|
|
11307
|
-
this.defaultEncoding = options.defaultEncoding || "utf8";
|
|
11308
|
-
this.length = 0;
|
|
11309
|
-
this.writing = false;
|
|
11310
|
-
this.corked = 0;
|
|
11311
|
-
this.sync = true;
|
|
11312
|
-
this.bufferProcessing = false;
|
|
11313
|
-
this.onwrite = function(er) {
|
|
11314
|
-
onwrite(stream, er);
|
|
11315
|
-
};
|
|
11316
|
-
this.writecb = null;
|
|
11317
|
-
this.writelen = 0;
|
|
11318
|
-
this.bufferedRequest = null;
|
|
11319
|
-
this.lastBufferedRequest = null;
|
|
11320
|
-
this.pendingcb = 0;
|
|
11321
|
-
this.prefinished = false;
|
|
11322
|
-
this.errorEmitted = false;
|
|
11323
|
-
this.emitClose = options.emitClose !== false;
|
|
11324
|
-
this.autoDestroy = !!options.autoDestroy;
|
|
11325
|
-
this.bufferedRequestCount = 0;
|
|
11326
|
-
this.corkedRequestsFree = new CorkedRequest(this);
|
|
11327
|
-
}
|
|
11328
|
-
WritableState.prototype.getBuffer = function getBuffer() {
|
|
11329
|
-
var current = this.bufferedRequest;
|
|
11330
|
-
var out = [];
|
|
11331
|
-
while (current) {
|
|
11332
|
-
out.push(current);
|
|
11333
|
-
current = current.next;
|
|
11334
|
-
}
|
|
11335
|
-
return out;
|
|
11336
|
-
};
|
|
11337
|
-
(function() {
|
|
11338
|
-
try {
|
|
11339
|
-
Object.defineProperty(WritableState.prototype, "buffer", {
|
|
11340
|
-
get: internalUtil.deprecate(function writableStateBufferGetter() {
|
|
11341
|
-
return this.getBuffer();
|
|
11342
|
-
}, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003")
|
|
11343
|
-
});
|
|
11344
|
-
} catch (_23) {
|
|
11345
|
-
}
|
|
11346
|
-
})();
|
|
11347
|
-
var realHasInstance;
|
|
11348
|
-
if (typeof Symbol === "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === "function") {
|
|
11349
|
-
realHasInstance = Function.prototype[Symbol.hasInstance];
|
|
11350
|
-
Object.defineProperty(Writable, Symbol.hasInstance, {
|
|
11351
|
-
value: function value(object) {
|
|
11352
|
-
if (realHasInstance.call(this, object))
|
|
11353
|
-
return true;
|
|
11354
|
-
if (this !== Writable)
|
|
11355
|
-
return false;
|
|
11356
|
-
return object && object._writableState instanceof WritableState;
|
|
11357
|
-
}
|
|
11358
|
-
});
|
|
11359
|
-
} else {
|
|
11360
|
-
realHasInstance = function realHasInstance2(object) {
|
|
11361
|
-
return object instanceof this;
|
|
11362
|
-
};
|
|
11363
|
-
}
|
|
11364
|
-
function Writable(options) {
|
|
11365
|
-
Duplex = Duplex || require_stream_duplex2();
|
|
11366
|
-
var isDuplex = this instanceof Duplex;
|
|
11367
|
-
if (!isDuplex && !realHasInstance.call(Writable, this))
|
|
11368
|
-
return new Writable(options);
|
|
11369
|
-
this._writableState = new WritableState(options, this, isDuplex);
|
|
11370
|
-
this.writable = true;
|
|
11371
|
-
if (options) {
|
|
11372
|
-
if (typeof options.write === "function")
|
|
11373
|
-
this._write = options.write;
|
|
11374
|
-
if (typeof options.writev === "function")
|
|
11375
|
-
this._writev = options.writev;
|
|
11376
|
-
if (typeof options.destroy === "function")
|
|
11377
|
-
this._destroy = options.destroy;
|
|
11378
|
-
if (typeof options.final === "function")
|
|
11379
|
-
this._final = options.final;
|
|
11380
|
-
}
|
|
11381
|
-
Stream.call(this);
|
|
11382
|
-
}
|
|
11383
|
-
Writable.prototype.pipe = function() {
|
|
11384
|
-
errorOrDestroy(this, new ERR_STREAM_CANNOT_PIPE());
|
|
11385
|
-
};
|
|
11386
|
-
function writeAfterEnd(stream, cb) {
|
|
11387
|
-
var er = new ERR_STREAM_WRITE_AFTER_END();
|
|
11388
|
-
errorOrDestroy(stream, er);
|
|
11389
|
-
process.nextTick(cb, er);
|
|
11390
|
-
}
|
|
11391
|
-
function validChunk(stream, state, chunk, cb) {
|
|
11392
|
-
var er;
|
|
11393
|
-
if (chunk === null) {
|
|
11394
|
-
er = new ERR_STREAM_NULL_VALUES();
|
|
11395
|
-
} else if (typeof chunk !== "string" && !state.objectMode) {
|
|
11396
|
-
er = new ERR_INVALID_ARG_TYPE("chunk", ["string", "Buffer"], chunk);
|
|
11397
|
-
}
|
|
11398
|
-
if (er) {
|
|
11399
|
-
errorOrDestroy(stream, er);
|
|
11400
|
-
process.nextTick(cb, er);
|
|
11401
|
-
return false;
|
|
11402
|
-
}
|
|
11403
|
-
return true;
|
|
11404
|
-
}
|
|
11405
|
-
Writable.prototype.write = function(chunk, encoding, cb) {
|
|
11406
|
-
var state = this._writableState;
|
|
11407
|
-
var ret = false;
|
|
11408
|
-
var isBuf = !state.objectMode && _isUint8Array(chunk);
|
|
11409
|
-
if (isBuf && !Buffer2.isBuffer(chunk)) {
|
|
11410
|
-
chunk = _uint8ArrayToBuffer(chunk);
|
|
11411
|
-
}
|
|
11412
|
-
if (typeof encoding === "function") {
|
|
11413
|
-
cb = encoding;
|
|
11414
|
-
encoding = null;
|
|
11415
|
-
}
|
|
11416
|
-
if (isBuf)
|
|
11417
|
-
encoding = "buffer";
|
|
11418
|
-
else if (!encoding)
|
|
11419
|
-
encoding = state.defaultEncoding;
|
|
11420
|
-
if (typeof cb !== "function")
|
|
11421
|
-
cb = nop;
|
|
11422
|
-
if (state.ending)
|
|
11423
|
-
writeAfterEnd(this, cb);
|
|
11424
|
-
else if (isBuf || validChunk(this, state, chunk, cb)) {
|
|
11425
|
-
state.pendingcb++;
|
|
11426
|
-
ret = writeOrBuffer(this, state, isBuf, chunk, encoding, cb);
|
|
11427
|
-
}
|
|
11428
|
-
return ret;
|
|
11429
|
-
};
|
|
11430
|
-
Writable.prototype.cork = function() {
|
|
11431
|
-
this._writableState.corked++;
|
|
11432
|
-
};
|
|
11433
|
-
Writable.prototype.uncork = function() {
|
|
11434
|
-
var state = this._writableState;
|
|
11435
|
-
if (state.corked) {
|
|
11436
|
-
state.corked--;
|
|
11437
|
-
if (!state.writing && !state.corked && !state.bufferProcessing && state.bufferedRequest)
|
|
11438
|
-
clearBuffer(this, state);
|
|
11439
|
-
}
|
|
11440
|
-
};
|
|
11441
|
-
Writable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {
|
|
11442
|
-
if (typeof encoding === "string")
|
|
11443
|
-
encoding = encoding.toLowerCase();
|
|
11444
|
-
if (!(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((encoding + "").toLowerCase()) > -1))
|
|
11445
|
-
throw new ERR_UNKNOWN_ENCODING(encoding);
|
|
11446
|
-
this._writableState.defaultEncoding = encoding;
|
|
11447
|
-
return this;
|
|
11448
|
-
};
|
|
11449
|
-
Object.defineProperty(Writable.prototype, "writableBuffer", {
|
|
11450
|
-
// making it explicit this property is not enumerable
|
|
11451
|
-
// because otherwise some prototype manipulation in
|
|
11452
|
-
// userland will fail
|
|
11453
|
-
enumerable: false,
|
|
11454
|
-
get: function get2() {
|
|
11455
|
-
return this._writableState && this._writableState.getBuffer();
|
|
11456
|
-
}
|
|
11457
|
-
});
|
|
11458
|
-
function decodeChunk(state, chunk, encoding) {
|
|
11459
|
-
if (!state.objectMode && state.decodeStrings !== false && typeof chunk === "string") {
|
|
11460
|
-
chunk = Buffer2.from(chunk, encoding);
|
|
11461
|
-
}
|
|
11462
|
-
return chunk;
|
|
11463
|
-
}
|
|
11464
|
-
Object.defineProperty(Writable.prototype, "writableHighWaterMark", {
|
|
11465
|
-
// making it explicit this property is not enumerable
|
|
11466
|
-
// because otherwise some prototype manipulation in
|
|
11467
|
-
// userland will fail
|
|
11468
|
-
enumerable: false,
|
|
11469
|
-
get: function get2() {
|
|
11470
|
-
return this._writableState.highWaterMark;
|
|
11471
|
-
}
|
|
11472
|
-
});
|
|
11473
|
-
function writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) {
|
|
11474
|
-
if (!isBuf) {
|
|
11475
|
-
var newChunk = decodeChunk(state, chunk, encoding);
|
|
11476
|
-
if (chunk !== newChunk) {
|
|
11477
|
-
isBuf = true;
|
|
11478
|
-
encoding = "buffer";
|
|
11479
|
-
chunk = newChunk;
|
|
11480
|
-
}
|
|
11481
|
-
}
|
|
11482
|
-
var len = state.objectMode ? 1 : chunk.length;
|
|
11483
|
-
state.length += len;
|
|
11484
|
-
var ret = state.length < state.highWaterMark;
|
|
11485
|
-
if (!ret)
|
|
11486
|
-
state.needDrain = true;
|
|
11487
|
-
if (state.writing || state.corked) {
|
|
11488
|
-
var last = state.lastBufferedRequest;
|
|
11489
|
-
state.lastBufferedRequest = {
|
|
11490
|
-
chunk,
|
|
11491
|
-
encoding,
|
|
11492
|
-
isBuf,
|
|
11493
|
-
callback: cb,
|
|
11494
|
-
next: null
|
|
11495
|
-
};
|
|
11496
|
-
if (last) {
|
|
11497
|
-
last.next = state.lastBufferedRequest;
|
|
11498
|
-
} else {
|
|
11499
|
-
state.bufferedRequest = state.lastBufferedRequest;
|
|
11500
|
-
}
|
|
11501
|
-
state.bufferedRequestCount += 1;
|
|
11502
|
-
} else {
|
|
11503
|
-
doWrite(stream, state, false, len, chunk, encoding, cb);
|
|
11504
|
-
}
|
|
11505
|
-
return ret;
|
|
11506
|
-
}
|
|
11507
|
-
function doWrite(stream, state, writev, len, chunk, encoding, cb) {
|
|
11508
|
-
state.writelen = len;
|
|
11509
|
-
state.writecb = cb;
|
|
11510
|
-
state.writing = true;
|
|
11511
|
-
state.sync = true;
|
|
11512
|
-
if (state.destroyed)
|
|
11513
|
-
state.onwrite(new ERR_STREAM_DESTROYED("write"));
|
|
11514
|
-
else if (writev)
|
|
11515
|
-
stream._writev(chunk, state.onwrite);
|
|
11516
|
-
else
|
|
11517
|
-
stream._write(chunk, encoding, state.onwrite);
|
|
11518
|
-
state.sync = false;
|
|
11519
|
-
}
|
|
11520
|
-
function onwriteError(stream, state, sync, er, cb) {
|
|
11521
|
-
--state.pendingcb;
|
|
11522
|
-
if (sync) {
|
|
11523
|
-
process.nextTick(cb, er);
|
|
11524
|
-
process.nextTick(finishMaybe, stream, state);
|
|
11525
|
-
stream._writableState.errorEmitted = true;
|
|
11526
|
-
errorOrDestroy(stream, er);
|
|
11527
|
-
} else {
|
|
11528
|
-
cb(er);
|
|
11529
|
-
stream._writableState.errorEmitted = true;
|
|
11530
|
-
errorOrDestroy(stream, er);
|
|
11531
|
-
finishMaybe(stream, state);
|
|
11532
|
-
}
|
|
11533
|
-
}
|
|
11534
|
-
function onwriteStateUpdate(state) {
|
|
11535
|
-
state.writing = false;
|
|
11536
|
-
state.writecb = null;
|
|
11537
|
-
state.length -= state.writelen;
|
|
11538
|
-
state.writelen = 0;
|
|
11539
|
-
}
|
|
11540
|
-
function onwrite(stream, er) {
|
|
11541
|
-
var state = stream._writableState;
|
|
11542
|
-
var sync = state.sync;
|
|
11543
|
-
var cb = state.writecb;
|
|
11544
|
-
if (typeof cb !== "function")
|
|
11545
|
-
throw new ERR_MULTIPLE_CALLBACK();
|
|
11546
|
-
onwriteStateUpdate(state);
|
|
11547
|
-
if (er)
|
|
11548
|
-
onwriteError(stream, state, sync, er, cb);
|
|
11549
|
-
else {
|
|
11550
|
-
var finished = needFinish(state) || stream.destroyed;
|
|
11551
|
-
if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) {
|
|
11552
|
-
clearBuffer(stream, state);
|
|
11553
|
-
}
|
|
11554
|
-
if (sync) {
|
|
11555
|
-
process.nextTick(afterWrite, stream, state, finished, cb);
|
|
11556
|
-
} else {
|
|
11557
|
-
afterWrite(stream, state, finished, cb);
|
|
11558
|
-
}
|
|
11559
|
-
}
|
|
11560
|
-
}
|
|
11561
|
-
function afterWrite(stream, state, finished, cb) {
|
|
11562
|
-
if (!finished)
|
|
11563
|
-
onwriteDrain(stream, state);
|
|
11564
|
-
state.pendingcb--;
|
|
11565
|
-
cb();
|
|
11566
|
-
finishMaybe(stream, state);
|
|
11567
|
-
}
|
|
11568
|
-
function onwriteDrain(stream, state) {
|
|
11569
|
-
if (state.length === 0 && state.needDrain) {
|
|
11570
|
-
state.needDrain = false;
|
|
11571
|
-
stream.emit("drain");
|
|
11572
|
-
}
|
|
11573
|
-
}
|
|
11574
|
-
function clearBuffer(stream, state) {
|
|
11575
|
-
state.bufferProcessing = true;
|
|
11576
|
-
var entry = state.bufferedRequest;
|
|
11577
|
-
if (stream._writev && entry && entry.next) {
|
|
11578
|
-
var l = state.bufferedRequestCount;
|
|
11579
|
-
var buffer = new Array(l);
|
|
11580
|
-
var holder = state.corkedRequestsFree;
|
|
11581
|
-
holder.entry = entry;
|
|
11582
|
-
var count = 0;
|
|
11583
|
-
var allBuffers = true;
|
|
11584
|
-
while (entry) {
|
|
11585
|
-
buffer[count] = entry;
|
|
11586
|
-
if (!entry.isBuf)
|
|
11587
|
-
allBuffers = false;
|
|
11588
|
-
entry = entry.next;
|
|
11589
|
-
count += 1;
|
|
11590
|
-
}
|
|
11591
|
-
buffer.allBuffers = allBuffers;
|
|
11592
|
-
doWrite(stream, state, true, state.length, buffer, "", holder.finish);
|
|
11593
|
-
state.pendingcb++;
|
|
11594
|
-
state.lastBufferedRequest = null;
|
|
11595
|
-
if (holder.next) {
|
|
11596
|
-
state.corkedRequestsFree = holder.next;
|
|
11597
|
-
holder.next = null;
|
|
11598
|
-
} else {
|
|
11599
|
-
state.corkedRequestsFree = new CorkedRequest(state);
|
|
11600
|
-
}
|
|
11601
|
-
state.bufferedRequestCount = 0;
|
|
11602
|
-
} else {
|
|
11603
|
-
while (entry) {
|
|
11604
|
-
var chunk = entry.chunk;
|
|
11605
|
-
var encoding = entry.encoding;
|
|
11606
|
-
var cb = entry.callback;
|
|
11607
|
-
var len = state.objectMode ? 1 : chunk.length;
|
|
11608
|
-
doWrite(stream, state, false, len, chunk, encoding, cb);
|
|
11609
|
-
entry = entry.next;
|
|
11610
|
-
state.bufferedRequestCount--;
|
|
11611
|
-
if (state.writing) {
|
|
11612
|
-
break;
|
|
11613
|
-
}
|
|
11614
|
-
}
|
|
11615
|
-
if (entry === null)
|
|
11616
|
-
state.lastBufferedRequest = null;
|
|
11617
|
-
}
|
|
11618
|
-
state.bufferedRequest = entry;
|
|
11619
|
-
state.bufferProcessing = false;
|
|
11620
|
-
}
|
|
11621
|
-
Writable.prototype._write = function(chunk, encoding, cb) {
|
|
11622
|
-
cb(new ERR_METHOD_NOT_IMPLEMENTED("_write()"));
|
|
11623
|
-
};
|
|
11624
|
-
Writable.prototype._writev = null;
|
|
11625
|
-
Writable.prototype.end = function(chunk, encoding, cb) {
|
|
11626
|
-
var state = this._writableState;
|
|
11627
|
-
if (typeof chunk === "function") {
|
|
11628
|
-
cb = chunk;
|
|
11629
|
-
chunk = null;
|
|
11630
|
-
encoding = null;
|
|
11631
|
-
} else if (typeof encoding === "function") {
|
|
11632
|
-
cb = encoding;
|
|
11633
|
-
encoding = null;
|
|
11634
|
-
}
|
|
11635
|
-
if (chunk !== null && chunk !== void 0)
|
|
11636
|
-
this.write(chunk, encoding);
|
|
11637
|
-
if (state.corked) {
|
|
11638
|
-
state.corked = 1;
|
|
11639
|
-
this.uncork();
|
|
11640
|
-
}
|
|
11641
|
-
if (!state.ending)
|
|
11642
|
-
endWritable(this, state, cb);
|
|
11643
|
-
return this;
|
|
11644
|
-
};
|
|
11645
|
-
Object.defineProperty(Writable.prototype, "writableLength", {
|
|
11646
|
-
// making it explicit this property is not enumerable
|
|
11647
|
-
// because otherwise some prototype manipulation in
|
|
11648
|
-
// userland will fail
|
|
11649
|
-
enumerable: false,
|
|
11650
|
-
get: function get2() {
|
|
11651
|
-
return this._writableState.length;
|
|
11652
|
-
}
|
|
11653
|
-
});
|
|
11654
|
-
function needFinish(state) {
|
|
11655
|
-
return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing;
|
|
11656
|
-
}
|
|
11657
|
-
function callFinal(stream, state) {
|
|
11658
|
-
stream._final(function(err) {
|
|
11659
|
-
state.pendingcb--;
|
|
11660
|
-
if (err) {
|
|
11661
|
-
errorOrDestroy(stream, err);
|
|
11662
|
-
}
|
|
11663
|
-
state.prefinished = true;
|
|
11664
|
-
stream.emit("prefinish");
|
|
11665
|
-
finishMaybe(stream, state);
|
|
11666
|
-
});
|
|
11667
|
-
}
|
|
11668
|
-
function prefinish(stream, state) {
|
|
11669
|
-
if (!state.prefinished && !state.finalCalled) {
|
|
11670
|
-
if (typeof stream._final === "function" && !state.destroyed) {
|
|
11671
|
-
state.pendingcb++;
|
|
11672
|
-
state.finalCalled = true;
|
|
11673
|
-
process.nextTick(callFinal, stream, state);
|
|
11674
|
-
} else {
|
|
11675
|
-
state.prefinished = true;
|
|
11676
|
-
stream.emit("prefinish");
|
|
11677
|
-
}
|
|
11678
|
-
}
|
|
11679
|
-
}
|
|
11680
|
-
function finishMaybe(stream, state) {
|
|
11681
|
-
var need = needFinish(state);
|
|
11682
|
-
if (need) {
|
|
11683
|
-
prefinish(stream, state);
|
|
11684
|
-
if (state.pendingcb === 0) {
|
|
11685
|
-
state.finished = true;
|
|
11686
|
-
stream.emit("finish");
|
|
11687
|
-
if (state.autoDestroy) {
|
|
11688
|
-
var rState = stream._readableState;
|
|
11689
|
-
if (!rState || rState.autoDestroy && rState.endEmitted) {
|
|
11690
|
-
stream.destroy();
|
|
11691
|
-
}
|
|
11692
|
-
}
|
|
11693
|
-
}
|
|
11694
|
-
}
|
|
11695
|
-
return need;
|
|
11696
|
-
}
|
|
11697
|
-
function endWritable(stream, state, cb) {
|
|
11698
|
-
state.ending = true;
|
|
11699
|
-
finishMaybe(stream, state);
|
|
11700
|
-
if (cb) {
|
|
11701
|
-
if (state.finished)
|
|
11702
|
-
process.nextTick(cb);
|
|
11703
|
-
else
|
|
11704
|
-
stream.once("finish", cb);
|
|
11705
|
-
}
|
|
11706
|
-
state.ended = true;
|
|
11707
|
-
stream.writable = false;
|
|
11708
|
-
}
|
|
11709
|
-
function onCorkedFinish(corkReq, state, err) {
|
|
11710
|
-
var entry = corkReq.entry;
|
|
11711
|
-
corkReq.entry = null;
|
|
11712
|
-
while (entry) {
|
|
11713
|
-
var cb = entry.callback;
|
|
11714
|
-
state.pendingcb--;
|
|
11715
|
-
cb(err);
|
|
11716
|
-
entry = entry.next;
|
|
11717
|
-
}
|
|
11718
|
-
state.corkedRequestsFree.next = corkReq;
|
|
11719
|
-
}
|
|
11720
|
-
Object.defineProperty(Writable.prototype, "destroyed", {
|
|
11721
|
-
// making it explicit this property is not enumerable
|
|
11722
|
-
// because otherwise some prototype manipulation in
|
|
11723
|
-
// userland will fail
|
|
11724
|
-
enumerable: false,
|
|
11725
|
-
get: function get2() {
|
|
11726
|
-
if (this._writableState === void 0) {
|
|
11727
|
-
return false;
|
|
11728
|
-
}
|
|
11729
|
-
return this._writableState.destroyed;
|
|
11730
|
-
},
|
|
11731
|
-
set: function set(value) {
|
|
11732
|
-
if (!this._writableState) {
|
|
11733
|
-
return;
|
|
11734
|
-
}
|
|
11735
|
-
this._writableState.destroyed = value;
|
|
11736
|
-
}
|
|
11737
|
-
});
|
|
11738
|
-
Writable.prototype.destroy = destroyImpl.destroy;
|
|
11739
|
-
Writable.prototype._undestroy = destroyImpl.undestroy;
|
|
11740
|
-
Writable.prototype._destroy = function(err, cb) {
|
|
11741
|
-
cb(err);
|
|
11742
|
-
};
|
|
11743
|
-
}
|
|
11744
|
-
});
|
|
11745
|
-
|
|
11746
|
-
// ../../node_modules/winston/node_modules/readable-stream/lib/_stream_duplex.js
|
|
11747
|
-
var require_stream_duplex2 = __commonJS({
|
|
11748
|
-
"../../node_modules/winston/node_modules/readable-stream/lib/_stream_duplex.js"(exports2, module2) {
|
|
11749
|
-
"use strict";
|
|
11750
|
-
var objectKeys = Object.keys || function(obj) {
|
|
11751
|
-
var keys2 = [];
|
|
11752
|
-
for (var key in obj) {
|
|
11753
|
-
keys2.push(key);
|
|
11754
|
-
}
|
|
11755
|
-
return keys2;
|
|
11756
|
-
};
|
|
11757
|
-
module2.exports = Duplex;
|
|
11758
|
-
var Readable = require_stream_readable2();
|
|
11759
|
-
var Writable = require_stream_writable2();
|
|
11760
|
-
require_inherits()(Duplex, Readable);
|
|
11761
|
-
{
|
|
11762
|
-
keys = objectKeys(Writable.prototype);
|
|
11763
|
-
for (v = 0; v < keys.length; v++) {
|
|
11764
|
-
method = keys[v];
|
|
11765
|
-
if (!Duplex.prototype[method])
|
|
11766
|
-
Duplex.prototype[method] = Writable.prototype[method];
|
|
11767
|
-
}
|
|
11768
|
-
}
|
|
11769
|
-
var keys;
|
|
11770
|
-
var method;
|
|
11771
|
-
var v;
|
|
11772
|
-
function Duplex(options) {
|
|
11773
|
-
if (!(this instanceof Duplex))
|
|
11774
|
-
return new Duplex(options);
|
|
11775
|
-
Readable.call(this, options);
|
|
11776
|
-
Writable.call(this, options);
|
|
11777
|
-
this.allowHalfOpen = true;
|
|
11778
|
-
if (options) {
|
|
11779
|
-
if (options.readable === false)
|
|
11780
|
-
this.readable = false;
|
|
11781
|
-
if (options.writable === false)
|
|
11782
|
-
this.writable = false;
|
|
11783
|
-
if (options.allowHalfOpen === false) {
|
|
11784
|
-
this.allowHalfOpen = false;
|
|
11785
|
-
this.once("end", onend);
|
|
11786
|
-
}
|
|
11787
|
-
}
|
|
11788
|
-
}
|
|
11789
|
-
Object.defineProperty(Duplex.prototype, "writableHighWaterMark", {
|
|
11790
|
-
// making it explicit this property is not enumerable
|
|
11791
|
-
// because otherwise some prototype manipulation in
|
|
11792
|
-
// userland will fail
|
|
11793
|
-
enumerable: false,
|
|
11794
|
-
get: function get2() {
|
|
11795
|
-
return this._writableState.highWaterMark;
|
|
11796
|
-
}
|
|
11797
|
-
});
|
|
11798
|
-
Object.defineProperty(Duplex.prototype, "writableBuffer", {
|
|
11799
|
-
// making it explicit this property is not enumerable
|
|
11800
|
-
// because otherwise some prototype manipulation in
|
|
11801
|
-
// userland will fail
|
|
11802
|
-
enumerable: false,
|
|
11803
|
-
get: function get2() {
|
|
11804
|
-
return this._writableState && this._writableState.getBuffer();
|
|
11805
|
-
}
|
|
11806
|
-
});
|
|
11807
|
-
Object.defineProperty(Duplex.prototype, "writableLength", {
|
|
11808
|
-
// making it explicit this property is not enumerable
|
|
11809
|
-
// because otherwise some prototype manipulation in
|
|
11810
|
-
// userland will fail
|
|
11811
|
-
enumerable: false,
|
|
11812
|
-
get: function get2() {
|
|
11813
|
-
return this._writableState.length;
|
|
11814
|
-
}
|
|
11815
|
-
});
|
|
11816
|
-
function onend() {
|
|
11817
|
-
if (this._writableState.ended)
|
|
11818
|
-
return;
|
|
11819
|
-
process.nextTick(onEndNT, this);
|
|
11820
|
-
}
|
|
11821
|
-
function onEndNT(self2) {
|
|
11822
|
-
self2.end();
|
|
11823
|
-
}
|
|
11824
|
-
Object.defineProperty(Duplex.prototype, "destroyed", {
|
|
11825
|
-
// making it explicit this property is not enumerable
|
|
11826
|
-
// because otherwise some prototype manipulation in
|
|
11827
|
-
// userland will fail
|
|
11828
|
-
enumerable: false,
|
|
11829
|
-
get: function get2() {
|
|
11830
|
-
if (this._readableState === void 0 || this._writableState === void 0) {
|
|
11831
|
-
return false;
|
|
11832
|
-
}
|
|
11833
|
-
return this._readableState.destroyed && this._writableState.destroyed;
|
|
11834
|
-
},
|
|
11835
|
-
set: function set(value) {
|
|
11836
|
-
if (this._readableState === void 0 || this._writableState === void 0) {
|
|
11837
|
-
return;
|
|
11838
|
-
}
|
|
11839
|
-
this._readableState.destroyed = value;
|
|
11840
|
-
this._writableState.destroyed = value;
|
|
11841
|
-
}
|
|
11842
|
-
});
|
|
11843
|
-
}
|
|
11844
|
-
});
|
|
11845
|
-
|
|
11846
|
-
// ../../node_modules/winston/node_modules/string_decoder/lib/string_decoder.js
|
|
11847
|
-
var require_string_decoder2 = __commonJS({
|
|
11848
|
-
"../../node_modules/winston/node_modules/string_decoder/lib/string_decoder.js"(exports2) {
|
|
11849
|
-
"use strict";
|
|
11850
|
-
var Buffer2 = require_safe_buffer().Buffer;
|
|
11851
|
-
var isEncoding = Buffer2.isEncoding || function(encoding) {
|
|
11852
|
-
encoding = "" + encoding;
|
|
11853
|
-
switch (encoding && encoding.toLowerCase()) {
|
|
11854
|
-
case "hex":
|
|
11855
|
-
case "utf8":
|
|
11856
|
-
case "utf-8":
|
|
11857
|
-
case "ascii":
|
|
11858
|
-
case "binary":
|
|
11859
|
-
case "base64":
|
|
11860
|
-
case "ucs2":
|
|
11861
|
-
case "ucs-2":
|
|
11862
|
-
case "utf16le":
|
|
11863
|
-
case "utf-16le":
|
|
11864
|
-
case "raw":
|
|
11865
|
-
return true;
|
|
11866
|
-
default:
|
|
11867
|
-
return false;
|
|
11868
|
-
}
|
|
11869
|
-
};
|
|
11870
|
-
function _normalizeEncoding(enc) {
|
|
11871
|
-
if (!enc)
|
|
11872
|
-
return "utf8";
|
|
11873
|
-
var retried;
|
|
11874
|
-
while (true) {
|
|
11875
|
-
switch (enc) {
|
|
11876
|
-
case "utf8":
|
|
11877
|
-
case "utf-8":
|
|
11878
|
-
return "utf8";
|
|
11879
|
-
case "ucs2":
|
|
11880
|
-
case "ucs-2":
|
|
11881
|
-
case "utf16le":
|
|
11882
|
-
case "utf-16le":
|
|
11883
|
-
return "utf16le";
|
|
11884
|
-
case "latin1":
|
|
11885
|
-
case "binary":
|
|
11886
|
-
return "latin1";
|
|
11887
|
-
case "base64":
|
|
11888
|
-
case "ascii":
|
|
11889
|
-
case "hex":
|
|
11890
|
-
return enc;
|
|
11891
|
-
default:
|
|
11892
|
-
if (retried)
|
|
11893
|
-
return;
|
|
11894
|
-
enc = ("" + enc).toLowerCase();
|
|
11895
|
-
retried = true;
|
|
11896
|
-
}
|
|
11897
|
-
}
|
|
11898
|
-
}
|
|
11899
|
-
function normalizeEncoding(enc) {
|
|
11900
|
-
var nenc = _normalizeEncoding(enc);
|
|
11901
|
-
if (typeof nenc !== "string" && (Buffer2.isEncoding === isEncoding || !isEncoding(enc)))
|
|
11902
|
-
throw new Error("Unknown encoding: " + enc);
|
|
11903
|
-
return nenc || enc;
|
|
11904
|
-
}
|
|
11905
|
-
exports2.StringDecoder = StringDecoder;
|
|
11906
|
-
function StringDecoder(encoding) {
|
|
11907
|
-
this.encoding = normalizeEncoding(encoding);
|
|
11908
|
-
var nb;
|
|
11909
|
-
switch (this.encoding) {
|
|
11910
|
-
case "utf16le":
|
|
11911
|
-
this.text = utf16Text;
|
|
11912
|
-
this.end = utf16End;
|
|
11913
|
-
nb = 4;
|
|
11914
|
-
break;
|
|
11915
|
-
case "utf8":
|
|
11916
|
-
this.fillLast = utf8FillLast;
|
|
11917
|
-
nb = 4;
|
|
11918
|
-
break;
|
|
11919
|
-
case "base64":
|
|
11920
|
-
this.text = base64Text;
|
|
11921
|
-
this.end = base64End;
|
|
11922
|
-
nb = 3;
|
|
11923
|
-
break;
|
|
11924
|
-
default:
|
|
11925
|
-
this.write = simpleWrite;
|
|
11926
|
-
this.end = simpleEnd;
|
|
11927
|
-
return;
|
|
11928
|
-
}
|
|
11929
|
-
this.lastNeed = 0;
|
|
11930
|
-
this.lastTotal = 0;
|
|
11931
|
-
this.lastChar = Buffer2.allocUnsafe(nb);
|
|
11932
|
-
}
|
|
11933
|
-
StringDecoder.prototype.write = function(buf) {
|
|
11934
|
-
if (buf.length === 0)
|
|
11935
|
-
return "";
|
|
11936
|
-
var r;
|
|
11937
|
-
var i;
|
|
11938
|
-
if (this.lastNeed) {
|
|
11939
|
-
r = this.fillLast(buf);
|
|
11940
|
-
if (r === void 0)
|
|
11941
|
-
return "";
|
|
11942
|
-
i = this.lastNeed;
|
|
11943
|
-
this.lastNeed = 0;
|
|
11944
|
-
} else {
|
|
11945
|
-
i = 0;
|
|
11946
|
-
}
|
|
11947
|
-
if (i < buf.length)
|
|
11948
|
-
return r ? r + this.text(buf, i) : this.text(buf, i);
|
|
11949
|
-
return r || "";
|
|
11950
|
-
};
|
|
11951
|
-
StringDecoder.prototype.end = utf8End;
|
|
11952
|
-
StringDecoder.prototype.text = utf8Text;
|
|
11953
|
-
StringDecoder.prototype.fillLast = function(buf) {
|
|
11954
|
-
if (this.lastNeed <= buf.length) {
|
|
11955
|
-
buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed);
|
|
11956
|
-
return this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
11957
|
-
}
|
|
11958
|
-
buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, buf.length);
|
|
11959
|
-
this.lastNeed -= buf.length;
|
|
11960
|
-
};
|
|
11961
|
-
function utf8CheckByte(byte) {
|
|
11962
|
-
if (byte <= 127)
|
|
11963
|
-
return 0;
|
|
11964
|
-
else if (byte >> 5 === 6)
|
|
11965
|
-
return 2;
|
|
11966
|
-
else if (byte >> 4 === 14)
|
|
11967
|
-
return 3;
|
|
11968
|
-
else if (byte >> 3 === 30)
|
|
11969
|
-
return 4;
|
|
11970
|
-
return byte >> 6 === 2 ? -1 : -2;
|
|
11971
|
-
}
|
|
11972
|
-
function utf8CheckIncomplete(self2, buf, i) {
|
|
11973
|
-
var j = buf.length - 1;
|
|
11974
|
-
if (j < i)
|
|
11975
|
-
return 0;
|
|
11976
|
-
var nb = utf8CheckByte(buf[j]);
|
|
11977
|
-
if (nb >= 0) {
|
|
11978
|
-
if (nb > 0)
|
|
11979
|
-
self2.lastNeed = nb - 1;
|
|
11980
|
-
return nb;
|
|
11981
|
-
}
|
|
11982
|
-
if (--j < i || nb === -2)
|
|
11983
|
-
return 0;
|
|
11984
|
-
nb = utf8CheckByte(buf[j]);
|
|
11985
|
-
if (nb >= 0) {
|
|
11986
|
-
if (nb > 0)
|
|
11987
|
-
self2.lastNeed = nb - 2;
|
|
11988
|
-
return nb;
|
|
11989
|
-
}
|
|
11990
|
-
if (--j < i || nb === -2)
|
|
11991
|
-
return 0;
|
|
11992
|
-
nb = utf8CheckByte(buf[j]);
|
|
11993
|
-
if (nb >= 0) {
|
|
11994
|
-
if (nb > 0) {
|
|
11995
|
-
if (nb === 2)
|
|
11996
|
-
nb = 0;
|
|
11997
|
-
else
|
|
11998
|
-
self2.lastNeed = nb - 3;
|
|
11999
|
-
}
|
|
12000
|
-
return nb;
|
|
12001
|
-
}
|
|
12002
|
-
return 0;
|
|
12003
|
-
}
|
|
12004
|
-
function utf8CheckExtraBytes(self2, buf, p) {
|
|
12005
|
-
if ((buf[0] & 192) !== 128) {
|
|
12006
|
-
self2.lastNeed = 0;
|
|
12007
|
-
return "\uFFFD";
|
|
12008
|
-
}
|
|
12009
|
-
if (self2.lastNeed > 1 && buf.length > 1) {
|
|
12010
|
-
if ((buf[1] & 192) !== 128) {
|
|
12011
|
-
self2.lastNeed = 1;
|
|
12012
|
-
return "\uFFFD";
|
|
12013
|
-
}
|
|
12014
|
-
if (self2.lastNeed > 2 && buf.length > 2) {
|
|
12015
|
-
if ((buf[2] & 192) !== 128) {
|
|
12016
|
-
self2.lastNeed = 2;
|
|
12017
|
-
return "\uFFFD";
|
|
12018
|
-
}
|
|
12019
|
-
}
|
|
12020
|
-
}
|
|
12021
|
-
}
|
|
12022
|
-
function utf8FillLast(buf) {
|
|
12023
|
-
var p = this.lastTotal - this.lastNeed;
|
|
12024
|
-
var r = utf8CheckExtraBytes(this, buf, p);
|
|
12025
|
-
if (r !== void 0)
|
|
12026
|
-
return r;
|
|
12027
|
-
if (this.lastNeed <= buf.length) {
|
|
12028
|
-
buf.copy(this.lastChar, p, 0, this.lastNeed);
|
|
12029
|
-
return this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
12030
|
-
}
|
|
12031
|
-
buf.copy(this.lastChar, p, 0, buf.length);
|
|
12032
|
-
this.lastNeed -= buf.length;
|
|
12033
|
-
}
|
|
12034
|
-
function utf8Text(buf, i) {
|
|
12035
|
-
var total = utf8CheckIncomplete(this, buf, i);
|
|
12036
|
-
if (!this.lastNeed)
|
|
12037
|
-
return buf.toString("utf8", i);
|
|
12038
|
-
this.lastTotal = total;
|
|
12039
|
-
var end = buf.length - (total - this.lastNeed);
|
|
12040
|
-
buf.copy(this.lastChar, 0, end);
|
|
12041
|
-
return buf.toString("utf8", i, end);
|
|
12042
|
-
}
|
|
12043
|
-
function utf8End(buf) {
|
|
12044
|
-
var r = buf && buf.length ? this.write(buf) : "";
|
|
12045
|
-
if (this.lastNeed)
|
|
12046
|
-
return r + "\uFFFD";
|
|
12047
|
-
return r;
|
|
12048
|
-
}
|
|
12049
|
-
function utf16Text(buf, i) {
|
|
12050
|
-
if ((buf.length - i) % 2 === 0) {
|
|
12051
|
-
var r = buf.toString("utf16le", i);
|
|
12052
|
-
if (r) {
|
|
12053
|
-
var c = r.charCodeAt(r.length - 1);
|
|
12054
|
-
if (c >= 55296 && c <= 56319) {
|
|
12055
|
-
this.lastNeed = 2;
|
|
12056
|
-
this.lastTotal = 4;
|
|
12057
|
-
this.lastChar[0] = buf[buf.length - 2];
|
|
12058
|
-
this.lastChar[1] = buf[buf.length - 1];
|
|
12059
|
-
return r.slice(0, -1);
|
|
12060
|
-
}
|
|
12061
|
-
}
|
|
12062
|
-
return r;
|
|
12063
|
-
}
|
|
12064
|
-
this.lastNeed = 1;
|
|
12065
|
-
this.lastTotal = 2;
|
|
12066
|
-
this.lastChar[0] = buf[buf.length - 1];
|
|
12067
|
-
return buf.toString("utf16le", i, buf.length - 1);
|
|
12068
|
-
}
|
|
12069
|
-
function utf16End(buf) {
|
|
12070
|
-
var r = buf && buf.length ? this.write(buf) : "";
|
|
12071
|
-
if (this.lastNeed) {
|
|
12072
|
-
var end = this.lastTotal - this.lastNeed;
|
|
12073
|
-
return r + this.lastChar.toString("utf16le", 0, end);
|
|
12074
|
-
}
|
|
12075
|
-
return r;
|
|
12076
|
-
}
|
|
12077
|
-
function base64Text(buf, i) {
|
|
12078
|
-
var n = (buf.length - i) % 3;
|
|
12079
|
-
if (n === 0)
|
|
12080
|
-
return buf.toString("base64", i);
|
|
12081
|
-
this.lastNeed = 3 - n;
|
|
12082
|
-
this.lastTotal = 3;
|
|
12083
|
-
if (n === 1) {
|
|
12084
|
-
this.lastChar[0] = buf[buf.length - 1];
|
|
12085
|
-
} else {
|
|
12086
|
-
this.lastChar[0] = buf[buf.length - 2];
|
|
12087
|
-
this.lastChar[1] = buf[buf.length - 1];
|
|
12088
|
-
}
|
|
12089
|
-
return buf.toString("base64", i, buf.length - n);
|
|
12090
|
-
}
|
|
12091
|
-
function base64End(buf) {
|
|
12092
|
-
var r = buf && buf.length ? this.write(buf) : "";
|
|
12093
|
-
if (this.lastNeed)
|
|
12094
|
-
return r + this.lastChar.toString("base64", 0, 3 - this.lastNeed);
|
|
12095
|
-
return r;
|
|
12096
|
-
}
|
|
12097
|
-
function simpleWrite(buf) {
|
|
12098
|
-
return buf.toString(this.encoding);
|
|
12099
|
-
}
|
|
12100
|
-
function simpleEnd(buf) {
|
|
12101
|
-
return buf && buf.length ? this.write(buf) : "";
|
|
12102
|
-
}
|
|
12103
|
-
}
|
|
12104
|
-
});
|
|
12105
|
-
|
|
12106
|
-
// ../../node_modules/winston/node_modules/readable-stream/lib/internal/streams/end-of-stream.js
|
|
12107
|
-
var require_end_of_stream2 = __commonJS({
|
|
12108
|
-
"../../node_modules/winston/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"(exports2, module2) {
|
|
12109
|
-
"use strict";
|
|
12110
|
-
var ERR_STREAM_PREMATURE_CLOSE = require_errors3().codes.ERR_STREAM_PREMATURE_CLOSE;
|
|
12111
|
-
function once(callback) {
|
|
12112
|
-
var called = false;
|
|
12113
|
-
return function() {
|
|
12114
|
-
if (called)
|
|
12115
|
-
return;
|
|
12116
|
-
called = true;
|
|
12117
|
-
for (var _len = arguments.length, args2 = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
12118
|
-
args2[_key] = arguments[_key];
|
|
12119
|
-
}
|
|
12120
|
-
callback.apply(this, args2);
|
|
12121
|
-
};
|
|
12122
|
-
}
|
|
12123
|
-
function noop2() {
|
|
12124
|
-
}
|
|
12125
|
-
function isRequest(stream) {
|
|
12126
|
-
return stream.setHeader && typeof stream.abort === "function";
|
|
12127
|
-
}
|
|
12128
|
-
function eos(stream, opts, callback) {
|
|
12129
|
-
if (typeof opts === "function")
|
|
12130
|
-
return eos(stream, null, opts);
|
|
12131
|
-
if (!opts)
|
|
12132
|
-
opts = {};
|
|
12133
|
-
callback = once(callback || noop2);
|
|
12134
|
-
var readable = opts.readable || opts.readable !== false && stream.readable;
|
|
12135
|
-
var writable = opts.writable || opts.writable !== false && stream.writable;
|
|
12136
|
-
var onlegacyfinish = function onlegacyfinish2() {
|
|
12137
|
-
if (!stream.writable)
|
|
12138
|
-
onfinish();
|
|
12139
|
-
};
|
|
12140
|
-
var writableEnded = stream._writableState && stream._writableState.finished;
|
|
12141
|
-
var onfinish = function onfinish2() {
|
|
12142
|
-
writable = false;
|
|
12143
|
-
writableEnded = true;
|
|
12144
|
-
if (!readable)
|
|
12145
|
-
callback.call(stream);
|
|
12146
|
-
};
|
|
12147
|
-
var readableEnded = stream._readableState && stream._readableState.endEmitted;
|
|
12148
|
-
var onend = function onend2() {
|
|
12149
|
-
readable = false;
|
|
12150
|
-
readableEnded = true;
|
|
12151
|
-
if (!writable)
|
|
12152
|
-
callback.call(stream);
|
|
12153
|
-
};
|
|
12154
|
-
var onerror = function onerror2(err) {
|
|
12155
|
-
callback.call(stream, err);
|
|
12156
|
-
};
|
|
12157
|
-
var onclose = function onclose2() {
|
|
12158
|
-
var err;
|
|
12159
|
-
if (readable && !readableEnded) {
|
|
12160
|
-
if (!stream._readableState || !stream._readableState.ended)
|
|
12161
|
-
err = new ERR_STREAM_PREMATURE_CLOSE();
|
|
12162
|
-
return callback.call(stream, err);
|
|
12163
|
-
}
|
|
12164
|
-
if (writable && !writableEnded) {
|
|
12165
|
-
if (!stream._writableState || !stream._writableState.ended)
|
|
12166
|
-
err = new ERR_STREAM_PREMATURE_CLOSE();
|
|
12167
|
-
return callback.call(stream, err);
|
|
12168
|
-
}
|
|
12169
|
-
};
|
|
12170
|
-
var onrequest = function onrequest2() {
|
|
12171
|
-
stream.req.on("finish", onfinish);
|
|
12172
|
-
};
|
|
12173
|
-
if (isRequest(stream)) {
|
|
12174
|
-
stream.on("complete", onfinish);
|
|
12175
|
-
stream.on("abort", onclose);
|
|
12176
|
-
if (stream.req)
|
|
12177
|
-
onrequest();
|
|
12178
|
-
else
|
|
12179
|
-
stream.on("request", onrequest);
|
|
12180
|
-
} else if (writable && !stream._writableState) {
|
|
12181
|
-
stream.on("end", onlegacyfinish);
|
|
12182
|
-
stream.on("close", onlegacyfinish);
|
|
12183
|
-
}
|
|
12184
|
-
stream.on("end", onend);
|
|
12185
|
-
stream.on("finish", onfinish);
|
|
12186
|
-
if (opts.error !== false)
|
|
12187
|
-
stream.on("error", onerror);
|
|
12188
|
-
stream.on("close", onclose);
|
|
12189
|
-
return function() {
|
|
12190
|
-
stream.removeListener("complete", onfinish);
|
|
12191
|
-
stream.removeListener("abort", onclose);
|
|
12192
|
-
stream.removeListener("request", onrequest);
|
|
12193
|
-
if (stream.req)
|
|
12194
|
-
stream.req.removeListener("finish", onfinish);
|
|
12195
|
-
stream.removeListener("end", onlegacyfinish);
|
|
12196
|
-
stream.removeListener("close", onlegacyfinish);
|
|
12197
|
-
stream.removeListener("finish", onfinish);
|
|
12198
|
-
stream.removeListener("end", onend);
|
|
12199
|
-
stream.removeListener("error", onerror);
|
|
12200
|
-
stream.removeListener("close", onclose);
|
|
12201
|
-
};
|
|
12202
|
-
}
|
|
12203
|
-
module2.exports = eos;
|
|
12204
|
-
}
|
|
12205
|
-
});
|
|
12206
|
-
|
|
12207
|
-
// ../../node_modules/winston/node_modules/readable-stream/lib/internal/streams/async_iterator.js
|
|
12208
|
-
var require_async_iterator2 = __commonJS({
|
|
12209
|
-
"../../node_modules/winston/node_modules/readable-stream/lib/internal/streams/async_iterator.js"(exports2, module2) {
|
|
12210
|
-
"use strict";
|
|
12211
|
-
var _Object$setPrototypeO;
|
|
12212
|
-
function _defineProperty2(obj, key, value) {
|
|
12213
|
-
if (key in obj) {
|
|
12214
|
-
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
12215
|
-
} else {
|
|
12216
|
-
obj[key] = value;
|
|
12217
|
-
}
|
|
12218
|
-
return obj;
|
|
12219
|
-
}
|
|
12220
|
-
var finished = require_end_of_stream2();
|
|
12221
|
-
var kLastResolve = Symbol("lastResolve");
|
|
12222
|
-
var kLastReject = Symbol("lastReject");
|
|
12223
|
-
var kError = Symbol("error");
|
|
12224
|
-
var kEnded = Symbol("ended");
|
|
12225
|
-
var kLastPromise = Symbol("lastPromise");
|
|
12226
|
-
var kHandlePromise = Symbol("handlePromise");
|
|
12227
|
-
var kStream = Symbol("stream");
|
|
12228
|
-
function createIterResult(value, done) {
|
|
12229
|
-
return {
|
|
12230
|
-
value,
|
|
12231
|
-
done
|
|
12232
|
-
};
|
|
12233
|
-
}
|
|
12234
|
-
function readAndResolve(iter) {
|
|
12235
|
-
var resolve = iter[kLastResolve];
|
|
12236
|
-
if (resolve !== null) {
|
|
12237
|
-
var data = iter[kStream].read();
|
|
12238
|
-
if (data !== null) {
|
|
12239
|
-
iter[kLastPromise] = null;
|
|
12240
|
-
iter[kLastResolve] = null;
|
|
12241
|
-
iter[kLastReject] = null;
|
|
12242
|
-
resolve(createIterResult(data, false));
|
|
12243
|
-
}
|
|
12244
|
-
}
|
|
12245
|
-
}
|
|
12246
|
-
function onReadable(iter) {
|
|
12247
|
-
process.nextTick(readAndResolve, iter);
|
|
12248
|
-
}
|
|
12249
|
-
function wrapForNext(lastPromise, iter) {
|
|
12250
|
-
return function(resolve, reject) {
|
|
12251
|
-
lastPromise.then(function() {
|
|
12252
|
-
if (iter[kEnded]) {
|
|
12253
|
-
resolve(createIterResult(void 0, true));
|
|
12254
|
-
return;
|
|
12255
|
-
}
|
|
12256
|
-
iter[kHandlePromise](resolve, reject);
|
|
12257
|
-
}, reject);
|
|
12258
|
-
};
|
|
12259
|
-
}
|
|
12260
|
-
var AsyncIteratorPrototype = Object.getPrototypeOf(function() {
|
|
12261
|
-
});
|
|
12262
|
-
var ReadableStreamAsyncIteratorPrototype = Object.setPrototypeOf((_Object$setPrototypeO = {
|
|
12263
|
-
get stream() {
|
|
12264
|
-
return this[kStream];
|
|
12265
|
-
},
|
|
12266
|
-
next: function next() {
|
|
12267
|
-
var _this = this;
|
|
12268
|
-
var error2 = this[kError];
|
|
12269
|
-
if (error2 !== null) {
|
|
12270
|
-
return Promise.reject(error2);
|
|
12271
|
-
}
|
|
12272
|
-
if (this[kEnded]) {
|
|
12273
|
-
return Promise.resolve(createIterResult(void 0, true));
|
|
12274
|
-
}
|
|
12275
|
-
if (this[kStream].destroyed) {
|
|
12276
|
-
return new Promise(function(resolve, reject) {
|
|
12277
|
-
process.nextTick(function() {
|
|
12278
|
-
if (_this[kError]) {
|
|
12279
|
-
reject(_this[kError]);
|
|
12280
|
-
} else {
|
|
12281
|
-
resolve(createIterResult(void 0, true));
|
|
12282
|
-
}
|
|
12283
|
-
});
|
|
12284
|
-
});
|
|
12285
|
-
}
|
|
12286
|
-
var lastPromise = this[kLastPromise];
|
|
12287
|
-
var promise;
|
|
12288
|
-
if (lastPromise) {
|
|
12289
|
-
promise = new Promise(wrapForNext(lastPromise, this));
|
|
12290
|
-
} else {
|
|
12291
|
-
var data = this[kStream].read();
|
|
12292
|
-
if (data !== null) {
|
|
12293
|
-
return Promise.resolve(createIterResult(data, false));
|
|
12294
|
-
}
|
|
12295
|
-
promise = new Promise(this[kHandlePromise]);
|
|
12296
|
-
}
|
|
12297
|
-
this[kLastPromise] = promise;
|
|
12298
|
-
return promise;
|
|
12299
|
-
}
|
|
12300
|
-
}, _defineProperty2(_Object$setPrototypeO, Symbol.asyncIterator, function() {
|
|
12301
|
-
return this;
|
|
12302
|
-
}), _defineProperty2(_Object$setPrototypeO, "return", function _return() {
|
|
12303
|
-
var _this2 = this;
|
|
12304
|
-
return new Promise(function(resolve, reject) {
|
|
12305
|
-
_this2[kStream].destroy(null, function(err) {
|
|
12306
|
-
if (err) {
|
|
12307
|
-
reject(err);
|
|
12308
|
-
return;
|
|
12309
|
-
}
|
|
12310
|
-
resolve(createIterResult(void 0, true));
|
|
12311
|
-
});
|
|
12312
|
-
});
|
|
12313
|
-
}), _Object$setPrototypeO), AsyncIteratorPrototype);
|
|
12314
|
-
var createReadableStreamAsyncIterator = function createReadableStreamAsyncIterator2(stream) {
|
|
12315
|
-
var _Object$create;
|
|
12316
|
-
var iterator = Object.create(ReadableStreamAsyncIteratorPrototype, (_Object$create = {}, _defineProperty2(_Object$create, kStream, {
|
|
12317
|
-
value: stream,
|
|
12318
|
-
writable: true
|
|
12319
|
-
}), _defineProperty2(_Object$create, kLastResolve, {
|
|
12320
|
-
value: null,
|
|
12321
|
-
writable: true
|
|
12322
|
-
}), _defineProperty2(_Object$create, kLastReject, {
|
|
12323
|
-
value: null,
|
|
12324
|
-
writable: true
|
|
12325
|
-
}), _defineProperty2(_Object$create, kError, {
|
|
12326
|
-
value: null,
|
|
12327
|
-
writable: true
|
|
12328
|
-
}), _defineProperty2(_Object$create, kEnded, {
|
|
12329
|
-
value: stream._readableState.endEmitted,
|
|
12330
|
-
writable: true
|
|
12331
|
-
}), _defineProperty2(_Object$create, kHandlePromise, {
|
|
12332
|
-
value: function value(resolve, reject) {
|
|
12333
|
-
var data = iterator[kStream].read();
|
|
12334
|
-
if (data) {
|
|
12335
|
-
iterator[kLastPromise] = null;
|
|
12336
|
-
iterator[kLastResolve] = null;
|
|
12337
|
-
iterator[kLastReject] = null;
|
|
12338
|
-
resolve(createIterResult(data, false));
|
|
12339
|
-
} else {
|
|
12340
|
-
iterator[kLastResolve] = resolve;
|
|
12341
|
-
iterator[kLastReject] = reject;
|
|
12342
|
-
}
|
|
12343
|
-
},
|
|
12344
|
-
writable: true
|
|
12345
|
-
}), _Object$create));
|
|
12346
|
-
iterator[kLastPromise] = null;
|
|
12347
|
-
finished(stream, function(err) {
|
|
12348
|
-
if (err && err.code !== "ERR_STREAM_PREMATURE_CLOSE") {
|
|
12349
|
-
var reject = iterator[kLastReject];
|
|
12350
|
-
if (reject !== null) {
|
|
12351
|
-
iterator[kLastPromise] = null;
|
|
12352
|
-
iterator[kLastResolve] = null;
|
|
12353
|
-
iterator[kLastReject] = null;
|
|
12354
|
-
reject(err);
|
|
12355
|
-
}
|
|
12356
|
-
iterator[kError] = err;
|
|
12357
|
-
return;
|
|
12358
|
-
}
|
|
12359
|
-
var resolve = iterator[kLastResolve];
|
|
12360
|
-
if (resolve !== null) {
|
|
12361
|
-
iterator[kLastPromise] = null;
|
|
12362
|
-
iterator[kLastResolve] = null;
|
|
12363
|
-
iterator[kLastReject] = null;
|
|
12364
|
-
resolve(createIterResult(void 0, true));
|
|
12365
|
-
}
|
|
12366
|
-
iterator[kEnded] = true;
|
|
12367
|
-
});
|
|
12368
|
-
stream.on("readable", onReadable.bind(null, iterator));
|
|
12369
|
-
return iterator;
|
|
12370
|
-
};
|
|
12371
|
-
module2.exports = createReadableStreamAsyncIterator;
|
|
12372
|
-
}
|
|
12373
|
-
});
|
|
12374
|
-
|
|
12375
|
-
// ../../node_modules/winston/node_modules/readable-stream/lib/internal/streams/from.js
|
|
12376
|
-
var require_from2 = __commonJS({
|
|
12377
|
-
"../../node_modules/winston/node_modules/readable-stream/lib/internal/streams/from.js"(exports2, module2) {
|
|
12378
|
-
"use strict";
|
|
12379
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
12380
|
-
try {
|
|
12381
|
-
var info = gen[key](arg);
|
|
12382
|
-
var value = info.value;
|
|
12383
|
-
} catch (error2) {
|
|
12384
|
-
reject(error2);
|
|
12385
|
-
return;
|
|
12386
|
-
}
|
|
12387
|
-
if (info.done) {
|
|
12388
|
-
resolve(value);
|
|
12389
|
-
} else {
|
|
12390
|
-
Promise.resolve(value).then(_next, _throw);
|
|
12391
|
-
}
|
|
12392
|
-
}
|
|
12393
|
-
function _asyncToGenerator(fn2) {
|
|
12394
|
-
return function() {
|
|
12395
|
-
var self2 = this, args2 = arguments;
|
|
12396
|
-
return new Promise(function(resolve, reject) {
|
|
12397
|
-
var gen = fn2.apply(self2, args2);
|
|
12398
|
-
function _next(value) {
|
|
12399
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
12400
|
-
}
|
|
12401
|
-
function _throw(err) {
|
|
12402
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
12403
|
-
}
|
|
12404
|
-
_next(void 0);
|
|
12405
|
-
});
|
|
12406
|
-
};
|
|
12407
|
-
}
|
|
12408
|
-
function ownKeys(object, enumerableOnly) {
|
|
12409
|
-
var keys = Object.keys(object);
|
|
12410
|
-
if (Object.getOwnPropertySymbols) {
|
|
12411
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
12412
|
-
if (enumerableOnly)
|
|
12413
|
-
symbols = symbols.filter(function(sym) {
|
|
12414
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
12415
|
-
});
|
|
12416
|
-
keys.push.apply(keys, symbols);
|
|
12417
|
-
}
|
|
12418
|
-
return keys;
|
|
12419
|
-
}
|
|
12420
|
-
function _objectSpread2(target) {
|
|
12421
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
12422
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
12423
|
-
if (i % 2) {
|
|
12424
|
-
ownKeys(Object(source), true).forEach(function(key) {
|
|
12425
|
-
_defineProperty2(target, key, source[key]);
|
|
12426
|
-
});
|
|
12427
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
|
12428
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
12429
|
-
} else {
|
|
12430
|
-
ownKeys(Object(source)).forEach(function(key) {
|
|
12431
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
12432
|
-
});
|
|
12433
|
-
}
|
|
12434
|
-
}
|
|
12435
|
-
return target;
|
|
12436
|
-
}
|
|
12437
|
-
function _defineProperty2(obj, key, value) {
|
|
12438
|
-
if (key in obj) {
|
|
12439
|
-
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
12440
|
-
} else {
|
|
12441
|
-
obj[key] = value;
|
|
12442
|
-
}
|
|
12443
|
-
return obj;
|
|
12444
|
-
}
|
|
12445
|
-
var ERR_INVALID_ARG_TYPE = require_errors3().codes.ERR_INVALID_ARG_TYPE;
|
|
12446
|
-
function from(Readable, iterable, opts) {
|
|
12447
|
-
var iterator;
|
|
12448
|
-
if (iterable && typeof iterable.next === "function") {
|
|
12449
|
-
iterator = iterable;
|
|
12450
|
-
} else if (iterable && iterable[Symbol.asyncIterator])
|
|
12451
|
-
iterator = iterable[Symbol.asyncIterator]();
|
|
12452
|
-
else if (iterable && iterable[Symbol.iterator])
|
|
12453
|
-
iterator = iterable[Symbol.iterator]();
|
|
12454
|
-
else
|
|
12455
|
-
throw new ERR_INVALID_ARG_TYPE("iterable", ["Iterable"], iterable);
|
|
12456
|
-
var readable = new Readable(_objectSpread2({
|
|
12457
|
-
objectMode: true
|
|
12458
|
-
}, opts));
|
|
12459
|
-
var reading = false;
|
|
12460
|
-
readable._read = function() {
|
|
12461
|
-
if (!reading) {
|
|
12462
|
-
reading = true;
|
|
12463
|
-
next();
|
|
12464
|
-
}
|
|
12465
|
-
};
|
|
12466
|
-
function next() {
|
|
12467
|
-
return _next2.apply(this, arguments);
|
|
12468
|
-
}
|
|
12469
|
-
function _next2() {
|
|
12470
|
-
_next2 = _asyncToGenerator(function* () {
|
|
12471
|
-
try {
|
|
12472
|
-
var _ref = yield iterator.next(), value = _ref.value, done = _ref.done;
|
|
12473
|
-
if (done) {
|
|
12474
|
-
readable.push(null);
|
|
12475
|
-
} else if (readable.push(yield value)) {
|
|
12476
|
-
next();
|
|
12477
|
-
} else {
|
|
12478
|
-
reading = false;
|
|
12479
|
-
}
|
|
12480
|
-
} catch (err) {
|
|
12481
|
-
readable.destroy(err);
|
|
12482
|
-
}
|
|
12483
|
-
});
|
|
12484
|
-
return _next2.apply(this, arguments);
|
|
12485
|
-
}
|
|
12486
|
-
return readable;
|
|
12487
|
-
}
|
|
12488
|
-
module2.exports = from;
|
|
12489
|
-
}
|
|
12490
|
-
});
|
|
12491
|
-
|
|
12492
|
-
// ../../node_modules/winston/node_modules/readable-stream/lib/_stream_readable.js
|
|
12493
|
-
var require_stream_readable2 = __commonJS({
|
|
12494
|
-
"../../node_modules/winston/node_modules/readable-stream/lib/_stream_readable.js"(exports2, module2) {
|
|
12495
|
-
"use strict";
|
|
12496
|
-
module2.exports = Readable;
|
|
12497
|
-
var Duplex;
|
|
12498
|
-
Readable.ReadableState = ReadableState;
|
|
12499
|
-
var EE = require("events").EventEmitter;
|
|
12500
|
-
var EElistenerCount = function EElistenerCount2(emitter, type) {
|
|
12501
|
-
return emitter.listeners(type).length;
|
|
12502
|
-
};
|
|
12503
|
-
var Stream = require_stream2();
|
|
12504
|
-
var Buffer2 = require("buffer").Buffer;
|
|
12505
|
-
var OurUint8Array = global.Uint8Array || function() {
|
|
12506
|
-
};
|
|
12507
|
-
function _uint8ArrayToBuffer(chunk) {
|
|
12508
|
-
return Buffer2.from(chunk);
|
|
12509
|
-
}
|
|
12510
|
-
function _isUint8Array(obj) {
|
|
12511
|
-
return Buffer2.isBuffer(obj) || obj instanceof OurUint8Array;
|
|
12512
|
-
}
|
|
12513
|
-
var debugUtil = require("util");
|
|
12514
|
-
var debug;
|
|
12515
|
-
if (debugUtil && debugUtil.debuglog) {
|
|
12516
|
-
debug = debugUtil.debuglog("stream");
|
|
12517
|
-
} else {
|
|
12518
|
-
debug = function debug2() {
|
|
12519
|
-
};
|
|
12520
|
-
}
|
|
12521
|
-
var BufferList = require_buffer_list2();
|
|
12522
|
-
var destroyImpl = require_destroy3();
|
|
12523
|
-
var _require = require_state2();
|
|
12524
|
-
var getHighWaterMark = _require.getHighWaterMark;
|
|
12525
|
-
var _require$codes = require_errors3().codes;
|
|
12526
|
-
var ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE;
|
|
12527
|
-
var ERR_STREAM_PUSH_AFTER_EOF = _require$codes.ERR_STREAM_PUSH_AFTER_EOF;
|
|
12528
|
-
var ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED;
|
|
12529
|
-
var ERR_STREAM_UNSHIFT_AFTER_END_EVENT = _require$codes.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;
|
|
12530
|
-
var StringDecoder;
|
|
12531
|
-
var createReadableStreamAsyncIterator;
|
|
12532
|
-
var from;
|
|
12533
|
-
require_inherits()(Readable, Stream);
|
|
12534
|
-
var errorOrDestroy = destroyImpl.errorOrDestroy;
|
|
12535
|
-
var kProxyEvents = ["error", "close", "destroy", "pause", "resume"];
|
|
12536
|
-
function prependListener(emitter, event, fn2) {
|
|
12537
|
-
if (typeof emitter.prependListener === "function")
|
|
12538
|
-
return emitter.prependListener(event, fn2);
|
|
12539
|
-
if (!emitter._events || !emitter._events[event])
|
|
12540
|
-
emitter.on(event, fn2);
|
|
12541
|
-
else if (Array.isArray(emitter._events[event]))
|
|
12542
|
-
emitter._events[event].unshift(fn2);
|
|
12543
|
-
else
|
|
12544
|
-
emitter._events[event] = [fn2, emitter._events[event]];
|
|
12545
|
-
}
|
|
12546
|
-
function ReadableState(options, stream, isDuplex) {
|
|
12547
|
-
Duplex = Duplex || require_stream_duplex2();
|
|
12548
|
-
options = options || {};
|
|
12549
|
-
if (typeof isDuplex !== "boolean")
|
|
12550
|
-
isDuplex = stream instanceof Duplex;
|
|
12551
|
-
this.objectMode = !!options.objectMode;
|
|
12552
|
-
if (isDuplex)
|
|
12553
|
-
this.objectMode = this.objectMode || !!options.readableObjectMode;
|
|
12554
|
-
this.highWaterMark = getHighWaterMark(this, options, "readableHighWaterMark", isDuplex);
|
|
12555
|
-
this.buffer = new BufferList();
|
|
12556
|
-
this.length = 0;
|
|
12557
|
-
this.pipes = null;
|
|
12558
|
-
this.pipesCount = 0;
|
|
12559
|
-
this.flowing = null;
|
|
12560
|
-
this.ended = false;
|
|
12561
|
-
this.endEmitted = false;
|
|
12562
|
-
this.reading = false;
|
|
12563
|
-
this.sync = true;
|
|
12564
|
-
this.needReadable = false;
|
|
12565
|
-
this.emittedReadable = false;
|
|
12566
|
-
this.readableListening = false;
|
|
12567
|
-
this.resumeScheduled = false;
|
|
12568
|
-
this.paused = true;
|
|
12569
|
-
this.emitClose = options.emitClose !== false;
|
|
12570
|
-
this.autoDestroy = !!options.autoDestroy;
|
|
12571
|
-
this.destroyed = false;
|
|
12572
|
-
this.defaultEncoding = options.defaultEncoding || "utf8";
|
|
12573
|
-
this.awaitDrain = 0;
|
|
12574
|
-
this.readingMore = false;
|
|
12575
|
-
this.decoder = null;
|
|
12576
|
-
this.encoding = null;
|
|
12577
|
-
if (options.encoding) {
|
|
12578
|
-
if (!StringDecoder)
|
|
12579
|
-
StringDecoder = require_string_decoder2().StringDecoder;
|
|
12580
|
-
this.decoder = new StringDecoder(options.encoding);
|
|
12581
|
-
this.encoding = options.encoding;
|
|
12582
|
-
}
|
|
12583
|
-
}
|
|
12584
|
-
function Readable(options) {
|
|
12585
|
-
Duplex = Duplex || require_stream_duplex2();
|
|
12586
|
-
if (!(this instanceof Readable))
|
|
12587
|
-
return new Readable(options);
|
|
12588
|
-
var isDuplex = this instanceof Duplex;
|
|
12589
|
-
this._readableState = new ReadableState(options, this, isDuplex);
|
|
12590
|
-
this.readable = true;
|
|
12591
|
-
if (options) {
|
|
12592
|
-
if (typeof options.read === "function")
|
|
12593
|
-
this._read = options.read;
|
|
12594
|
-
if (typeof options.destroy === "function")
|
|
12595
|
-
this._destroy = options.destroy;
|
|
12596
|
-
}
|
|
12597
|
-
Stream.call(this);
|
|
12598
|
-
}
|
|
12599
|
-
Object.defineProperty(Readable.prototype, "destroyed", {
|
|
12600
|
-
// making it explicit this property is not enumerable
|
|
12601
|
-
// because otherwise some prototype manipulation in
|
|
12602
|
-
// userland will fail
|
|
12603
|
-
enumerable: false,
|
|
12604
|
-
get: function get2() {
|
|
12605
|
-
if (this._readableState === void 0) {
|
|
12606
|
-
return false;
|
|
12607
|
-
}
|
|
12608
|
-
return this._readableState.destroyed;
|
|
12609
|
-
},
|
|
12610
|
-
set: function set(value) {
|
|
12611
|
-
if (!this._readableState) {
|
|
12612
|
-
return;
|
|
12613
|
-
}
|
|
12614
|
-
this._readableState.destroyed = value;
|
|
12615
|
-
}
|
|
12616
|
-
});
|
|
12617
|
-
Readable.prototype.destroy = destroyImpl.destroy;
|
|
12618
|
-
Readable.prototype._undestroy = destroyImpl.undestroy;
|
|
12619
|
-
Readable.prototype._destroy = function(err, cb) {
|
|
12620
|
-
cb(err);
|
|
12621
|
-
};
|
|
12622
|
-
Readable.prototype.push = function(chunk, encoding) {
|
|
12623
|
-
var state = this._readableState;
|
|
12624
|
-
var skipChunkCheck;
|
|
12625
|
-
if (!state.objectMode) {
|
|
12626
|
-
if (typeof chunk === "string") {
|
|
12627
|
-
encoding = encoding || state.defaultEncoding;
|
|
12628
|
-
if (encoding !== state.encoding) {
|
|
12629
|
-
chunk = Buffer2.from(chunk, encoding);
|
|
12630
|
-
encoding = "";
|
|
12631
|
-
}
|
|
12632
|
-
skipChunkCheck = true;
|
|
12633
|
-
}
|
|
12634
|
-
} else {
|
|
12635
|
-
skipChunkCheck = true;
|
|
12636
|
-
}
|
|
12637
|
-
return readableAddChunk(this, chunk, encoding, false, skipChunkCheck);
|
|
12638
|
-
};
|
|
12639
|
-
Readable.prototype.unshift = function(chunk) {
|
|
12640
|
-
return readableAddChunk(this, chunk, null, true, false);
|
|
12641
|
-
};
|
|
12642
|
-
function readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) {
|
|
12643
|
-
debug("readableAddChunk", chunk);
|
|
12644
|
-
var state = stream._readableState;
|
|
12645
|
-
if (chunk === null) {
|
|
12646
|
-
state.reading = false;
|
|
12647
|
-
onEofChunk(stream, state);
|
|
12648
|
-
} else {
|
|
12649
|
-
var er;
|
|
12650
|
-
if (!skipChunkCheck)
|
|
12651
|
-
er = chunkInvalid(state, chunk);
|
|
12652
|
-
if (er) {
|
|
12653
|
-
errorOrDestroy(stream, er);
|
|
12654
|
-
} else if (state.objectMode || chunk && chunk.length > 0) {
|
|
12655
|
-
if (typeof chunk !== "string" && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer2.prototype) {
|
|
12656
|
-
chunk = _uint8ArrayToBuffer(chunk);
|
|
12657
|
-
}
|
|
12658
|
-
if (addToFront) {
|
|
12659
|
-
if (state.endEmitted)
|
|
12660
|
-
errorOrDestroy(stream, new ERR_STREAM_UNSHIFT_AFTER_END_EVENT());
|
|
12661
|
-
else
|
|
12662
|
-
addChunk(stream, state, chunk, true);
|
|
12663
|
-
} else if (state.ended) {
|
|
12664
|
-
errorOrDestroy(stream, new ERR_STREAM_PUSH_AFTER_EOF());
|
|
12665
|
-
} else if (state.destroyed) {
|
|
12666
|
-
return false;
|
|
12667
|
-
} else {
|
|
12668
|
-
state.reading = false;
|
|
12669
|
-
if (state.decoder && !encoding) {
|
|
12670
|
-
chunk = state.decoder.write(chunk);
|
|
12671
|
-
if (state.objectMode || chunk.length !== 0)
|
|
12672
|
-
addChunk(stream, state, chunk, false);
|
|
12673
|
-
else
|
|
12674
|
-
maybeReadMore(stream, state);
|
|
12675
|
-
} else {
|
|
12676
|
-
addChunk(stream, state, chunk, false);
|
|
12677
|
-
}
|
|
12678
|
-
}
|
|
12679
|
-
} else if (!addToFront) {
|
|
12680
|
-
state.reading = false;
|
|
12681
|
-
maybeReadMore(stream, state);
|
|
12682
|
-
}
|
|
12683
|
-
}
|
|
12684
|
-
return !state.ended && (state.length < state.highWaterMark || state.length === 0);
|
|
12685
|
-
}
|
|
12686
|
-
function addChunk(stream, state, chunk, addToFront) {
|
|
12687
|
-
if (state.flowing && state.length === 0 && !state.sync) {
|
|
12688
|
-
state.awaitDrain = 0;
|
|
12689
|
-
stream.emit("data", chunk);
|
|
12690
|
-
} else {
|
|
12691
|
-
state.length += state.objectMode ? 1 : chunk.length;
|
|
12692
|
-
if (addToFront)
|
|
12693
|
-
state.buffer.unshift(chunk);
|
|
12694
|
-
else
|
|
12695
|
-
state.buffer.push(chunk);
|
|
12696
|
-
if (state.needReadable)
|
|
12697
|
-
emitReadable(stream);
|
|
12698
|
-
}
|
|
12699
|
-
maybeReadMore(stream, state);
|
|
12700
|
-
}
|
|
12701
|
-
function chunkInvalid(state, chunk) {
|
|
12702
|
-
var er;
|
|
12703
|
-
if (!_isUint8Array(chunk) && typeof chunk !== "string" && chunk !== void 0 && !state.objectMode) {
|
|
12704
|
-
er = new ERR_INVALID_ARG_TYPE("chunk", ["string", "Buffer", "Uint8Array"], chunk);
|
|
12705
|
-
}
|
|
12706
|
-
return er;
|
|
12707
|
-
}
|
|
12708
|
-
Readable.prototype.isPaused = function() {
|
|
12709
|
-
return this._readableState.flowing === false;
|
|
12710
|
-
};
|
|
12711
|
-
Readable.prototype.setEncoding = function(enc) {
|
|
12712
|
-
if (!StringDecoder)
|
|
12713
|
-
StringDecoder = require_string_decoder2().StringDecoder;
|
|
12714
|
-
var decoder = new StringDecoder(enc);
|
|
12715
|
-
this._readableState.decoder = decoder;
|
|
12716
|
-
this._readableState.encoding = this._readableState.decoder.encoding;
|
|
12717
|
-
var p = this._readableState.buffer.head;
|
|
12718
|
-
var content = "";
|
|
12719
|
-
while (p !== null) {
|
|
12720
|
-
content += decoder.write(p.data);
|
|
12721
|
-
p = p.next;
|
|
12722
|
-
}
|
|
12723
|
-
this._readableState.buffer.clear();
|
|
12724
|
-
if (content !== "")
|
|
12725
|
-
this._readableState.buffer.push(content);
|
|
12726
|
-
this._readableState.length = content.length;
|
|
12727
|
-
return this;
|
|
12728
|
-
};
|
|
12729
|
-
var MAX_HWM = 1073741824;
|
|
12730
|
-
function computeNewHighWaterMark(n) {
|
|
12731
|
-
if (n >= MAX_HWM) {
|
|
12732
|
-
n = MAX_HWM;
|
|
12733
|
-
} else {
|
|
12734
|
-
n--;
|
|
12735
|
-
n |= n >>> 1;
|
|
12736
|
-
n |= n >>> 2;
|
|
12737
|
-
n |= n >>> 4;
|
|
12738
|
-
n |= n >>> 8;
|
|
12739
|
-
n |= n >>> 16;
|
|
12740
|
-
n++;
|
|
12741
|
-
}
|
|
12742
|
-
return n;
|
|
12743
|
-
}
|
|
12744
|
-
function howMuchToRead(n, state) {
|
|
12745
|
-
if (n <= 0 || state.length === 0 && state.ended)
|
|
12746
|
-
return 0;
|
|
12747
|
-
if (state.objectMode)
|
|
12748
|
-
return 1;
|
|
12749
|
-
if (n !== n) {
|
|
12750
|
-
if (state.flowing && state.length)
|
|
12751
|
-
return state.buffer.head.data.length;
|
|
12752
|
-
else
|
|
12753
|
-
return state.length;
|
|
12754
|
-
}
|
|
12755
|
-
if (n > state.highWaterMark)
|
|
12756
|
-
state.highWaterMark = computeNewHighWaterMark(n);
|
|
12757
|
-
if (n <= state.length)
|
|
12758
|
-
return n;
|
|
12759
|
-
if (!state.ended) {
|
|
12760
|
-
state.needReadable = true;
|
|
12761
|
-
return 0;
|
|
12762
|
-
}
|
|
12763
|
-
return state.length;
|
|
12764
|
-
}
|
|
12765
|
-
Readable.prototype.read = function(n) {
|
|
12766
|
-
debug("read", n);
|
|
12767
|
-
n = parseInt(n, 10);
|
|
12768
|
-
var state = this._readableState;
|
|
12769
|
-
var nOrig = n;
|
|
12770
|
-
if (n !== 0)
|
|
12771
|
-
state.emittedReadable = false;
|
|
12772
|
-
if (n === 0 && state.needReadable && ((state.highWaterMark !== 0 ? state.length >= state.highWaterMark : state.length > 0) || state.ended)) {
|
|
12773
|
-
debug("read: emitReadable", state.length, state.ended);
|
|
12774
|
-
if (state.length === 0 && state.ended)
|
|
12775
|
-
endReadable(this);
|
|
12776
|
-
else
|
|
12777
|
-
emitReadable(this);
|
|
12778
|
-
return null;
|
|
12779
|
-
}
|
|
12780
|
-
n = howMuchToRead(n, state);
|
|
12781
|
-
if (n === 0 && state.ended) {
|
|
12782
|
-
if (state.length === 0)
|
|
12783
|
-
endReadable(this);
|
|
12784
|
-
return null;
|
|
12785
|
-
}
|
|
12786
|
-
var doRead = state.needReadable;
|
|
12787
|
-
debug("need readable", doRead);
|
|
12788
|
-
if (state.length === 0 || state.length - n < state.highWaterMark) {
|
|
12789
|
-
doRead = true;
|
|
12790
|
-
debug("length less than watermark", doRead);
|
|
12791
|
-
}
|
|
12792
|
-
if (state.ended || state.reading) {
|
|
12793
|
-
doRead = false;
|
|
12794
|
-
debug("reading or ended", doRead);
|
|
12795
|
-
} else if (doRead) {
|
|
12796
|
-
debug("do read");
|
|
12797
|
-
state.reading = true;
|
|
12798
|
-
state.sync = true;
|
|
12799
|
-
if (state.length === 0)
|
|
12800
|
-
state.needReadable = true;
|
|
12801
|
-
this._read(state.highWaterMark);
|
|
12802
|
-
state.sync = false;
|
|
12803
|
-
if (!state.reading)
|
|
12804
|
-
n = howMuchToRead(nOrig, state);
|
|
12805
|
-
}
|
|
12806
|
-
var ret;
|
|
12807
|
-
if (n > 0)
|
|
12808
|
-
ret = fromList(n, state);
|
|
12809
|
-
else
|
|
12810
|
-
ret = null;
|
|
12811
|
-
if (ret === null) {
|
|
12812
|
-
state.needReadable = state.length <= state.highWaterMark;
|
|
12813
|
-
n = 0;
|
|
12814
|
-
} else {
|
|
12815
|
-
state.length -= n;
|
|
12816
|
-
state.awaitDrain = 0;
|
|
12817
|
-
}
|
|
12818
|
-
if (state.length === 0) {
|
|
12819
|
-
if (!state.ended)
|
|
12820
|
-
state.needReadable = true;
|
|
12821
|
-
if (nOrig !== n && state.ended)
|
|
12822
|
-
endReadable(this);
|
|
12823
|
-
}
|
|
12824
|
-
if (ret !== null)
|
|
12825
|
-
this.emit("data", ret);
|
|
12826
|
-
return ret;
|
|
12827
|
-
};
|
|
12828
|
-
function onEofChunk(stream, state) {
|
|
12829
|
-
debug("onEofChunk");
|
|
12830
|
-
if (state.ended)
|
|
12831
|
-
return;
|
|
12832
|
-
if (state.decoder) {
|
|
12833
|
-
var chunk = state.decoder.end();
|
|
12834
|
-
if (chunk && chunk.length) {
|
|
12835
|
-
state.buffer.push(chunk);
|
|
12836
|
-
state.length += state.objectMode ? 1 : chunk.length;
|
|
12837
|
-
}
|
|
12838
|
-
}
|
|
12839
|
-
state.ended = true;
|
|
12840
|
-
if (state.sync) {
|
|
12841
|
-
emitReadable(stream);
|
|
12842
|
-
} else {
|
|
12843
|
-
state.needReadable = false;
|
|
12844
|
-
if (!state.emittedReadable) {
|
|
12845
|
-
state.emittedReadable = true;
|
|
12846
|
-
emitReadable_(stream);
|
|
12847
|
-
}
|
|
12848
|
-
}
|
|
12849
|
-
}
|
|
12850
|
-
function emitReadable(stream) {
|
|
12851
|
-
var state = stream._readableState;
|
|
12852
|
-
debug("emitReadable", state.needReadable, state.emittedReadable);
|
|
12853
|
-
state.needReadable = false;
|
|
12854
|
-
if (!state.emittedReadable) {
|
|
12855
|
-
debug("emitReadable", state.flowing);
|
|
12856
|
-
state.emittedReadable = true;
|
|
12857
|
-
process.nextTick(emitReadable_, stream);
|
|
12858
|
-
}
|
|
12859
|
-
}
|
|
12860
|
-
function emitReadable_(stream) {
|
|
12861
|
-
var state = stream._readableState;
|
|
12862
|
-
debug("emitReadable_", state.destroyed, state.length, state.ended);
|
|
12863
|
-
if (!state.destroyed && (state.length || state.ended)) {
|
|
12864
|
-
stream.emit("readable");
|
|
12865
|
-
state.emittedReadable = false;
|
|
12866
|
-
}
|
|
12867
|
-
state.needReadable = !state.flowing && !state.ended && state.length <= state.highWaterMark;
|
|
12868
|
-
flow(stream);
|
|
12869
|
-
}
|
|
12870
|
-
function maybeReadMore(stream, state) {
|
|
12871
|
-
if (!state.readingMore) {
|
|
12872
|
-
state.readingMore = true;
|
|
12873
|
-
process.nextTick(maybeReadMore_, stream, state);
|
|
12874
|
-
}
|
|
12875
|
-
}
|
|
12876
|
-
function maybeReadMore_(stream, state) {
|
|
12877
|
-
while (!state.reading && !state.ended && (state.length < state.highWaterMark || state.flowing && state.length === 0)) {
|
|
12878
|
-
var len = state.length;
|
|
12879
|
-
debug("maybeReadMore read 0");
|
|
12880
|
-
stream.read(0);
|
|
12881
|
-
if (len === state.length)
|
|
12882
|
-
break;
|
|
12883
|
-
}
|
|
12884
|
-
state.readingMore = false;
|
|
12885
|
-
}
|
|
12886
|
-
Readable.prototype._read = function(n) {
|
|
12887
|
-
errorOrDestroy(this, new ERR_METHOD_NOT_IMPLEMENTED("_read()"));
|
|
12888
|
-
};
|
|
12889
|
-
Readable.prototype.pipe = function(dest, pipeOpts) {
|
|
12890
|
-
var src = this;
|
|
12891
|
-
var state = this._readableState;
|
|
12892
|
-
switch (state.pipesCount) {
|
|
12893
|
-
case 0:
|
|
12894
|
-
state.pipes = dest;
|
|
12895
|
-
break;
|
|
12896
|
-
case 1:
|
|
12897
|
-
state.pipes = [state.pipes, dest];
|
|
12898
|
-
break;
|
|
12899
|
-
default:
|
|
12900
|
-
state.pipes.push(dest);
|
|
12901
|
-
break;
|
|
12902
|
-
}
|
|
12903
|
-
state.pipesCount += 1;
|
|
12904
|
-
debug("pipe count=%d opts=%j", state.pipesCount, pipeOpts);
|
|
12905
|
-
var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr;
|
|
12906
|
-
var endFn = doEnd ? onend : unpipe;
|
|
12907
|
-
if (state.endEmitted)
|
|
12908
|
-
process.nextTick(endFn);
|
|
12909
|
-
else
|
|
12910
|
-
src.once("end", endFn);
|
|
12911
|
-
dest.on("unpipe", onunpipe);
|
|
12912
|
-
function onunpipe(readable, unpipeInfo) {
|
|
12913
|
-
debug("onunpipe");
|
|
12914
|
-
if (readable === src) {
|
|
12915
|
-
if (unpipeInfo && unpipeInfo.hasUnpiped === false) {
|
|
12916
|
-
unpipeInfo.hasUnpiped = true;
|
|
12917
|
-
cleanup();
|
|
12918
|
-
}
|
|
12919
|
-
}
|
|
12920
|
-
}
|
|
12921
|
-
function onend() {
|
|
12922
|
-
debug("onend");
|
|
12923
|
-
dest.end();
|
|
12924
|
-
}
|
|
12925
|
-
var ondrain = pipeOnDrain(src);
|
|
12926
|
-
dest.on("drain", ondrain);
|
|
12927
|
-
var cleanedUp = false;
|
|
12928
|
-
function cleanup() {
|
|
12929
|
-
debug("cleanup");
|
|
12930
|
-
dest.removeListener("close", onclose);
|
|
12931
|
-
dest.removeListener("finish", onfinish);
|
|
12932
|
-
dest.removeListener("drain", ondrain);
|
|
12933
|
-
dest.removeListener("error", onerror);
|
|
12934
|
-
dest.removeListener("unpipe", onunpipe);
|
|
12935
|
-
src.removeListener("end", onend);
|
|
12936
|
-
src.removeListener("end", unpipe);
|
|
12937
|
-
src.removeListener("data", ondata);
|
|
12938
|
-
cleanedUp = true;
|
|
12939
|
-
if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain))
|
|
12940
|
-
ondrain();
|
|
12941
|
-
}
|
|
12942
|
-
src.on("data", ondata);
|
|
12943
|
-
function ondata(chunk) {
|
|
12944
|
-
debug("ondata");
|
|
12945
|
-
var ret = dest.write(chunk);
|
|
12946
|
-
debug("dest.write", ret);
|
|
12947
|
-
if (ret === false) {
|
|
12948
|
-
if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) {
|
|
12949
|
-
debug("false write response, pause", state.awaitDrain);
|
|
12950
|
-
state.awaitDrain++;
|
|
12951
|
-
}
|
|
12952
|
-
src.pause();
|
|
12953
|
-
}
|
|
12954
|
-
}
|
|
12955
|
-
function onerror(er) {
|
|
12956
|
-
debug("onerror", er);
|
|
12957
|
-
unpipe();
|
|
12958
|
-
dest.removeListener("error", onerror);
|
|
12959
|
-
if (EElistenerCount(dest, "error") === 0)
|
|
12960
|
-
errorOrDestroy(dest, er);
|
|
12961
|
-
}
|
|
12962
|
-
prependListener(dest, "error", onerror);
|
|
12963
|
-
function onclose() {
|
|
12964
|
-
dest.removeListener("finish", onfinish);
|
|
12965
|
-
unpipe();
|
|
12966
|
-
}
|
|
12967
|
-
dest.once("close", onclose);
|
|
12968
|
-
function onfinish() {
|
|
12969
|
-
debug("onfinish");
|
|
12970
|
-
dest.removeListener("close", onclose);
|
|
12971
|
-
unpipe();
|
|
12972
|
-
}
|
|
12973
|
-
dest.once("finish", onfinish);
|
|
12974
|
-
function unpipe() {
|
|
12975
|
-
debug("unpipe");
|
|
12976
|
-
src.unpipe(dest);
|
|
12977
|
-
}
|
|
12978
|
-
dest.emit("pipe", src);
|
|
12979
|
-
if (!state.flowing) {
|
|
12980
|
-
debug("pipe resume");
|
|
12981
|
-
src.resume();
|
|
12982
|
-
}
|
|
12983
|
-
return dest;
|
|
12984
|
-
};
|
|
12985
|
-
function pipeOnDrain(src) {
|
|
12986
|
-
return function pipeOnDrainFunctionResult() {
|
|
12987
|
-
var state = src._readableState;
|
|
12988
|
-
debug("pipeOnDrain", state.awaitDrain);
|
|
12989
|
-
if (state.awaitDrain)
|
|
12990
|
-
state.awaitDrain--;
|
|
12991
|
-
if (state.awaitDrain === 0 && EElistenerCount(src, "data")) {
|
|
12992
|
-
state.flowing = true;
|
|
12993
|
-
flow(src);
|
|
12994
|
-
}
|
|
12995
|
-
};
|
|
12996
|
-
}
|
|
12997
|
-
Readable.prototype.unpipe = function(dest) {
|
|
12998
|
-
var state = this._readableState;
|
|
12999
|
-
var unpipeInfo = {
|
|
13000
|
-
hasUnpiped: false
|
|
13001
|
-
};
|
|
13002
|
-
if (state.pipesCount === 0)
|
|
13003
|
-
return this;
|
|
13004
|
-
if (state.pipesCount === 1) {
|
|
13005
|
-
if (dest && dest !== state.pipes)
|
|
13006
|
-
return this;
|
|
13007
|
-
if (!dest)
|
|
13008
|
-
dest = state.pipes;
|
|
13009
|
-
state.pipes = null;
|
|
13010
|
-
state.pipesCount = 0;
|
|
13011
|
-
state.flowing = false;
|
|
13012
|
-
if (dest)
|
|
13013
|
-
dest.emit("unpipe", this, unpipeInfo);
|
|
13014
|
-
return this;
|
|
13015
|
-
}
|
|
13016
|
-
if (!dest) {
|
|
13017
|
-
var dests = state.pipes;
|
|
13018
|
-
var len = state.pipesCount;
|
|
13019
|
-
state.pipes = null;
|
|
13020
|
-
state.pipesCount = 0;
|
|
13021
|
-
state.flowing = false;
|
|
13022
|
-
for (var i = 0; i < len; i++) {
|
|
13023
|
-
dests[i].emit("unpipe", this, {
|
|
13024
|
-
hasUnpiped: false
|
|
13025
|
-
});
|
|
13026
|
-
}
|
|
13027
|
-
return this;
|
|
13028
|
-
}
|
|
13029
|
-
var index = indexOf(state.pipes, dest);
|
|
13030
|
-
if (index === -1)
|
|
13031
|
-
return this;
|
|
13032
|
-
state.pipes.splice(index, 1);
|
|
13033
|
-
state.pipesCount -= 1;
|
|
13034
|
-
if (state.pipesCount === 1)
|
|
13035
|
-
state.pipes = state.pipes[0];
|
|
13036
|
-
dest.emit("unpipe", this, unpipeInfo);
|
|
13037
|
-
return this;
|
|
13038
|
-
};
|
|
13039
|
-
Readable.prototype.on = function(ev, fn2) {
|
|
13040
|
-
var res = Stream.prototype.on.call(this, ev, fn2);
|
|
13041
|
-
var state = this._readableState;
|
|
13042
|
-
if (ev === "data") {
|
|
13043
|
-
state.readableListening = this.listenerCount("readable") > 0;
|
|
13044
|
-
if (state.flowing !== false)
|
|
13045
|
-
this.resume();
|
|
13046
|
-
} else if (ev === "readable") {
|
|
13047
|
-
if (!state.endEmitted && !state.readableListening) {
|
|
13048
|
-
state.readableListening = state.needReadable = true;
|
|
13049
|
-
state.flowing = false;
|
|
13050
|
-
state.emittedReadable = false;
|
|
13051
|
-
debug("on readable", state.length, state.reading);
|
|
13052
|
-
if (state.length) {
|
|
13053
|
-
emitReadable(this);
|
|
13054
|
-
} else if (!state.reading) {
|
|
13055
|
-
process.nextTick(nReadingNextTick, this);
|
|
13056
|
-
}
|
|
13057
|
-
}
|
|
13058
|
-
}
|
|
13059
|
-
return res;
|
|
13060
|
-
};
|
|
13061
|
-
Readable.prototype.addListener = Readable.prototype.on;
|
|
13062
|
-
Readable.prototype.removeListener = function(ev, fn2) {
|
|
13063
|
-
var res = Stream.prototype.removeListener.call(this, ev, fn2);
|
|
13064
|
-
if (ev === "readable") {
|
|
13065
|
-
process.nextTick(updateReadableListening, this);
|
|
13066
|
-
}
|
|
13067
|
-
return res;
|
|
13068
|
-
};
|
|
13069
|
-
Readable.prototype.removeAllListeners = function(ev) {
|
|
13070
|
-
var res = Stream.prototype.removeAllListeners.apply(this, arguments);
|
|
13071
|
-
if (ev === "readable" || ev === void 0) {
|
|
13072
|
-
process.nextTick(updateReadableListening, this);
|
|
13073
|
-
}
|
|
13074
|
-
return res;
|
|
13075
|
-
};
|
|
13076
|
-
function updateReadableListening(self2) {
|
|
13077
|
-
var state = self2._readableState;
|
|
13078
|
-
state.readableListening = self2.listenerCount("readable") > 0;
|
|
13079
|
-
if (state.resumeScheduled && !state.paused) {
|
|
13080
|
-
state.flowing = true;
|
|
13081
|
-
} else if (self2.listenerCount("data") > 0) {
|
|
13082
|
-
self2.resume();
|
|
13083
|
-
}
|
|
13084
|
-
}
|
|
13085
|
-
function nReadingNextTick(self2) {
|
|
13086
|
-
debug("readable nexttick read 0");
|
|
13087
|
-
self2.read(0);
|
|
13088
|
-
}
|
|
13089
|
-
Readable.prototype.resume = function() {
|
|
13090
|
-
var state = this._readableState;
|
|
13091
|
-
if (!state.flowing) {
|
|
13092
|
-
debug("resume");
|
|
13093
|
-
state.flowing = !state.readableListening;
|
|
13094
|
-
resume(this, state);
|
|
13095
|
-
}
|
|
13096
|
-
state.paused = false;
|
|
13097
|
-
return this;
|
|
13098
|
-
};
|
|
13099
|
-
function resume(stream, state) {
|
|
13100
|
-
if (!state.resumeScheduled) {
|
|
13101
|
-
state.resumeScheduled = true;
|
|
13102
|
-
process.nextTick(resume_, stream, state);
|
|
13103
|
-
}
|
|
13104
|
-
}
|
|
13105
|
-
function resume_(stream, state) {
|
|
13106
|
-
debug("resume", state.reading);
|
|
13107
|
-
if (!state.reading) {
|
|
13108
|
-
stream.read(0);
|
|
13109
|
-
}
|
|
13110
|
-
state.resumeScheduled = false;
|
|
13111
|
-
stream.emit("resume");
|
|
13112
|
-
flow(stream);
|
|
13113
|
-
if (state.flowing && !state.reading)
|
|
13114
|
-
stream.read(0);
|
|
13115
|
-
}
|
|
13116
|
-
Readable.prototype.pause = function() {
|
|
13117
|
-
debug("call pause flowing=%j", this._readableState.flowing);
|
|
13118
|
-
if (this._readableState.flowing !== false) {
|
|
13119
|
-
debug("pause");
|
|
13120
|
-
this._readableState.flowing = false;
|
|
13121
|
-
this.emit("pause");
|
|
13122
|
-
}
|
|
13123
|
-
this._readableState.paused = true;
|
|
13124
|
-
return this;
|
|
13125
|
-
};
|
|
13126
|
-
function flow(stream) {
|
|
13127
|
-
var state = stream._readableState;
|
|
13128
|
-
debug("flow", state.flowing);
|
|
13129
|
-
while (state.flowing && stream.read() !== null) {
|
|
13130
|
-
;
|
|
13131
|
-
}
|
|
13132
|
-
}
|
|
13133
|
-
Readable.prototype.wrap = function(stream) {
|
|
13134
|
-
var _this = this;
|
|
13135
|
-
var state = this._readableState;
|
|
13136
|
-
var paused = false;
|
|
13137
|
-
stream.on("end", function() {
|
|
13138
|
-
debug("wrapped end");
|
|
13139
|
-
if (state.decoder && !state.ended) {
|
|
13140
|
-
var chunk = state.decoder.end();
|
|
13141
|
-
if (chunk && chunk.length)
|
|
13142
|
-
_this.push(chunk);
|
|
13143
|
-
}
|
|
13144
|
-
_this.push(null);
|
|
13145
|
-
});
|
|
13146
|
-
stream.on("data", function(chunk) {
|
|
13147
|
-
debug("wrapped data");
|
|
13148
|
-
if (state.decoder)
|
|
13149
|
-
chunk = state.decoder.write(chunk);
|
|
13150
|
-
if (state.objectMode && (chunk === null || chunk === void 0))
|
|
13151
|
-
return;
|
|
13152
|
-
else if (!state.objectMode && (!chunk || !chunk.length))
|
|
13153
|
-
return;
|
|
13154
|
-
var ret = _this.push(chunk);
|
|
13155
|
-
if (!ret) {
|
|
13156
|
-
paused = true;
|
|
13157
|
-
stream.pause();
|
|
13158
|
-
}
|
|
13159
|
-
});
|
|
13160
|
-
for (var i in stream) {
|
|
13161
|
-
if (this[i] === void 0 && typeof stream[i] === "function") {
|
|
13162
|
-
this[i] = function methodWrap(method) {
|
|
13163
|
-
return function methodWrapReturnFunction() {
|
|
13164
|
-
return stream[method].apply(stream, arguments);
|
|
13165
|
-
};
|
|
13166
|
-
}(i);
|
|
13167
|
-
}
|
|
13168
|
-
}
|
|
13169
|
-
for (var n = 0; n < kProxyEvents.length; n++) {
|
|
13170
|
-
stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n]));
|
|
13171
|
-
}
|
|
13172
|
-
this._read = function(n2) {
|
|
13173
|
-
debug("wrapped _read", n2);
|
|
13174
|
-
if (paused) {
|
|
13175
|
-
paused = false;
|
|
13176
|
-
stream.resume();
|
|
13177
|
-
}
|
|
13178
|
-
};
|
|
13179
|
-
return this;
|
|
13180
|
-
};
|
|
13181
|
-
if (typeof Symbol === "function") {
|
|
13182
|
-
Readable.prototype[Symbol.asyncIterator] = function() {
|
|
13183
|
-
if (createReadableStreamAsyncIterator === void 0) {
|
|
13184
|
-
createReadableStreamAsyncIterator = require_async_iterator2();
|
|
13185
|
-
}
|
|
13186
|
-
return createReadableStreamAsyncIterator(this);
|
|
13187
|
-
};
|
|
13188
|
-
}
|
|
13189
|
-
Object.defineProperty(Readable.prototype, "readableHighWaterMark", {
|
|
13190
|
-
// making it explicit this property is not enumerable
|
|
13191
|
-
// because otherwise some prototype manipulation in
|
|
13192
|
-
// userland will fail
|
|
13193
|
-
enumerable: false,
|
|
13194
|
-
get: function get2() {
|
|
13195
|
-
return this._readableState.highWaterMark;
|
|
13196
|
-
}
|
|
13197
|
-
});
|
|
13198
|
-
Object.defineProperty(Readable.prototype, "readableBuffer", {
|
|
13199
|
-
// making it explicit this property is not enumerable
|
|
13200
|
-
// because otherwise some prototype manipulation in
|
|
13201
|
-
// userland will fail
|
|
13202
|
-
enumerable: false,
|
|
13203
|
-
get: function get2() {
|
|
13204
|
-
return this._readableState && this._readableState.buffer;
|
|
13205
|
-
}
|
|
13206
|
-
});
|
|
13207
|
-
Object.defineProperty(Readable.prototype, "readableFlowing", {
|
|
13208
|
-
// making it explicit this property is not enumerable
|
|
13209
|
-
// because otherwise some prototype manipulation in
|
|
13210
|
-
// userland will fail
|
|
13211
|
-
enumerable: false,
|
|
13212
|
-
get: function get2() {
|
|
13213
|
-
return this._readableState.flowing;
|
|
13214
|
-
},
|
|
13215
|
-
set: function set(state) {
|
|
13216
|
-
if (this._readableState) {
|
|
13217
|
-
this._readableState.flowing = state;
|
|
13218
|
-
}
|
|
13219
|
-
}
|
|
13220
|
-
});
|
|
13221
|
-
Readable._fromList = fromList;
|
|
13222
|
-
Object.defineProperty(Readable.prototype, "readableLength", {
|
|
13223
|
-
// making it explicit this property is not enumerable
|
|
13224
|
-
// because otherwise some prototype manipulation in
|
|
13225
|
-
// userland will fail
|
|
13226
|
-
enumerable: false,
|
|
13227
|
-
get: function get2() {
|
|
13228
|
-
return this._readableState.length;
|
|
13229
|
-
}
|
|
13230
|
-
});
|
|
13231
|
-
function fromList(n, state) {
|
|
13232
|
-
if (state.length === 0)
|
|
13233
|
-
return null;
|
|
13234
|
-
var ret;
|
|
13235
|
-
if (state.objectMode)
|
|
13236
|
-
ret = state.buffer.shift();
|
|
13237
|
-
else if (!n || n >= state.length) {
|
|
13238
|
-
if (state.decoder)
|
|
13239
|
-
ret = state.buffer.join("");
|
|
13240
|
-
else if (state.buffer.length === 1)
|
|
13241
|
-
ret = state.buffer.first();
|
|
13242
|
-
else
|
|
13243
|
-
ret = state.buffer.concat(state.length);
|
|
13244
|
-
state.buffer.clear();
|
|
13245
|
-
} else {
|
|
13246
|
-
ret = state.buffer.consume(n, state.decoder);
|
|
13247
|
-
}
|
|
13248
|
-
return ret;
|
|
13249
|
-
}
|
|
13250
|
-
function endReadable(stream) {
|
|
13251
|
-
var state = stream._readableState;
|
|
13252
|
-
debug("endReadable", state.endEmitted);
|
|
13253
|
-
if (!state.endEmitted) {
|
|
13254
|
-
state.ended = true;
|
|
13255
|
-
process.nextTick(endReadableNT, state, stream);
|
|
13256
|
-
}
|
|
13257
|
-
}
|
|
13258
|
-
function endReadableNT(state, stream) {
|
|
13259
|
-
debug("endReadableNT", state.endEmitted, state.length);
|
|
13260
|
-
if (!state.endEmitted && state.length === 0) {
|
|
13261
|
-
state.endEmitted = true;
|
|
13262
|
-
stream.readable = false;
|
|
13263
|
-
stream.emit("end");
|
|
13264
|
-
if (state.autoDestroy) {
|
|
13265
|
-
var wState = stream._writableState;
|
|
13266
|
-
if (!wState || wState.autoDestroy && wState.finished) {
|
|
13267
|
-
stream.destroy();
|
|
13268
|
-
}
|
|
13269
|
-
}
|
|
13270
|
-
}
|
|
13271
|
-
}
|
|
13272
|
-
if (typeof Symbol === "function") {
|
|
13273
|
-
Readable.from = function(iterable, opts) {
|
|
13274
|
-
if (from === void 0) {
|
|
13275
|
-
from = require_from2();
|
|
13276
|
-
}
|
|
13277
|
-
return from(Readable, iterable, opts);
|
|
13278
|
-
};
|
|
13279
|
-
}
|
|
13280
|
-
function indexOf(xs, x) {
|
|
13281
|
-
for (var i = 0, l = xs.length; i < l; i++) {
|
|
13282
|
-
if (xs[i] === x)
|
|
13283
|
-
return i;
|
|
13284
|
-
}
|
|
13285
|
-
return -1;
|
|
13286
|
-
}
|
|
13287
|
-
}
|
|
13288
|
-
});
|
|
13289
|
-
|
|
13290
|
-
// ../../node_modules/winston/node_modules/readable-stream/lib/_stream_transform.js
|
|
10768
|
+
// ../../node_modules/readable-stream/lib/_stream_transform.js
|
|
13291
10769
|
var require_stream_transform = __commonJS({
|
|
13292
|
-
"../../node_modules/
|
|
10770
|
+
"../../node_modules/readable-stream/lib/_stream_transform.js"(exports2, module2) {
|
|
13293
10771
|
"use strict";
|
|
13294
10772
|
module2.exports = Transform;
|
|
13295
|
-
var _require$codes =
|
|
10773
|
+
var _require$codes = require_errors().codes;
|
|
13296
10774
|
var ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED;
|
|
13297
10775
|
var ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK;
|
|
13298
10776
|
var ERR_TRANSFORM_ALREADY_TRANSFORMING = _require$codes.ERR_TRANSFORM_ALREADY_TRANSFORMING;
|
|
13299
10777
|
var ERR_TRANSFORM_WITH_LENGTH_0 = _require$codes.ERR_TRANSFORM_WITH_LENGTH_0;
|
|
13300
|
-
var Duplex =
|
|
10778
|
+
var Duplex = require_stream_duplex();
|
|
13301
10779
|
require_inherits()(Transform, Duplex);
|
|
13302
10780
|
function afterTransform(er, data) {
|
|
13303
10781
|
var ts = this._transformState;
|
|
@@ -13395,9 +10873,9 @@ var require_stream_transform = __commonJS({
|
|
|
13395
10873
|
}
|
|
13396
10874
|
});
|
|
13397
10875
|
|
|
13398
|
-
// ../../node_modules/
|
|
10876
|
+
// ../../node_modules/readable-stream/lib/_stream_passthrough.js
|
|
13399
10877
|
var require_stream_passthrough = __commonJS({
|
|
13400
|
-
"../../node_modules/
|
|
10878
|
+
"../../node_modules/readable-stream/lib/_stream_passthrough.js"(exports2, module2) {
|
|
13401
10879
|
"use strict";
|
|
13402
10880
|
module2.exports = PassThrough;
|
|
13403
10881
|
var Transform = require_stream_transform();
|
|
@@ -13413,9 +10891,9 @@ var require_stream_passthrough = __commonJS({
|
|
|
13413
10891
|
}
|
|
13414
10892
|
});
|
|
13415
10893
|
|
|
13416
|
-
// ../../node_modules/
|
|
10894
|
+
// ../../node_modules/readable-stream/lib/internal/streams/pipeline.js
|
|
13417
10895
|
var require_pipeline = __commonJS({
|
|
13418
|
-
"../../node_modules/
|
|
10896
|
+
"../../node_modules/readable-stream/lib/internal/streams/pipeline.js"(exports2, module2) {
|
|
13419
10897
|
"use strict";
|
|
13420
10898
|
var eos;
|
|
13421
10899
|
function once(callback) {
|
|
@@ -13427,7 +10905,7 @@ var require_pipeline = __commonJS({
|
|
|
13427
10905
|
callback.apply(void 0, arguments);
|
|
13428
10906
|
};
|
|
13429
10907
|
}
|
|
13430
|
-
var _require$codes =
|
|
10908
|
+
var _require$codes = require_errors().codes;
|
|
13431
10909
|
var ERR_MISSING_ARGS = _require$codes.ERR_MISSING_ARGS;
|
|
13432
10910
|
var ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED;
|
|
13433
10911
|
function noop2(err) {
|
|
@@ -13444,7 +10922,7 @@ var require_pipeline = __commonJS({
|
|
|
13444
10922
|
closed = true;
|
|
13445
10923
|
});
|
|
13446
10924
|
if (eos === void 0)
|
|
13447
|
-
eos =
|
|
10925
|
+
eos = require_end_of_stream();
|
|
13448
10926
|
eos(stream, {
|
|
13449
10927
|
readable: reading,
|
|
13450
10928
|
writable: writing
|
|
@@ -13512,23 +10990,23 @@ var require_pipeline = __commonJS({
|
|
|
13512
10990
|
}
|
|
13513
10991
|
});
|
|
13514
10992
|
|
|
13515
|
-
// ../../node_modules/
|
|
10993
|
+
// ../../node_modules/readable-stream/readable.js
|
|
13516
10994
|
var require_readable = __commonJS({
|
|
13517
|
-
"../../node_modules/
|
|
10995
|
+
"../../node_modules/readable-stream/readable.js"(exports2, module2) {
|
|
13518
10996
|
var Stream = require("stream");
|
|
13519
10997
|
if (process.env.READABLE_STREAM === "disable" && Stream) {
|
|
13520
10998
|
module2.exports = Stream.Readable;
|
|
13521
10999
|
Object.assign(module2.exports, Stream);
|
|
13522
11000
|
module2.exports.Stream = Stream;
|
|
13523
11001
|
} else {
|
|
13524
|
-
exports2 = module2.exports =
|
|
11002
|
+
exports2 = module2.exports = require_stream_readable();
|
|
13525
11003
|
exports2.Stream = Stream || exports2;
|
|
13526
11004
|
exports2.Readable = exports2;
|
|
13527
|
-
exports2.Writable =
|
|
13528
|
-
exports2.Duplex =
|
|
11005
|
+
exports2.Writable = require_stream_writable();
|
|
11006
|
+
exports2.Duplex = require_stream_duplex();
|
|
13529
11007
|
exports2.Transform = require_stream_transform();
|
|
13530
11008
|
exports2.PassThrough = require_stream_passthrough();
|
|
13531
|
-
exports2.finished =
|
|
11009
|
+
exports2.finished = require_end_of_stream();
|
|
13532
11010
|
exports2.pipeline = require_pipeline();
|
|
13533
11011
|
}
|
|
13534
11012
|
}
|
|
@@ -16450,7 +13928,7 @@ var require_is_stream = __commonJS({
|
|
|
16450
13928
|
});
|
|
16451
13929
|
|
|
16452
13930
|
// ../../node_modules/winston/lib/winston/transports/stream.js
|
|
16453
|
-
var
|
|
13931
|
+
var require_stream2 = __commonJS({
|
|
16454
13932
|
"../../node_modules/winston/lib/winston/transports/stream.js"(exports2, module2) {
|
|
16455
13933
|
"use strict";
|
|
16456
13934
|
var isStream = require_is_stream();
|
|
@@ -16527,7 +14005,7 @@ var require_transports2 = __commonJS({
|
|
|
16527
14005
|
configurable: true,
|
|
16528
14006
|
enumerable: true,
|
|
16529
14007
|
get() {
|
|
16530
|
-
return
|
|
14008
|
+
return require_stream2();
|
|
16531
14009
|
}
|
|
16532
14010
|
});
|
|
16533
14011
|
}
|
|
@@ -22072,7 +19550,7 @@ var i18n_default = {
|
|
|
22072
19550
|
INDEX_EXISTS_NOT_OVERWRITING: "'index.html' already exists, not generating one",
|
|
22073
19551
|
INDEX_HTML_ADDED: "index.html added",
|
|
22074
19552
|
INFO_CREATE_ARCHIVE: "Create Archive",
|
|
22075
|
-
INFO_COMMAND_FAILED: "Command {{cmd}} failed with error {{-message}}",
|
|
19553
|
+
INFO_COMMAND_FAILED: "Command {{cmd}} failed with error : {{-message}}",
|
|
22076
19554
|
INFO_DEPLOYMENT_SUCCESSFUL: "Deployment Successful.",
|
|
22077
19555
|
INFO_TEST_MODE: "Deployment in TestMode completed. A successful TestMode execution does not necessarily mean that your upload will be successful",
|
|
22078
19556
|
ERROR_NO_SYSTEM_IN_STORE: "Error in deployment. The BTP system used in the deployment configuration could not be found as one of your local saved SAP systems. Please ensure you have saved this system locally so that it can be used for deployment.",
|
|
@@ -22157,6 +19635,7 @@ var i18n_default = {
|
|
|
22157
19635
|
ARCHIVE_PATH_CREATED: "Archive path created {{-archivePath}}",
|
|
22158
19636
|
ARCHIVE_PATH_AVAILABLE: "Archive read from {{-archivePath}}",
|
|
22159
19637
|
ERROR_UPDATE_DEPLOY_CONFIG: "Error while updating config file, error was: {{-error}}",
|
|
19638
|
+
ERROR_NO_DEPLOY_CONFIG: "Error loading deployment configuration. Please ensure the YAML syntax and indentation is correct.",
|
|
22160
19639
|
TELEMETRY_CALL_FAILED: "Error while sending telemetry data",
|
|
22161
19640
|
ERROR_TRANSPORT_REQUEST_CREATION: "Transport request could not be created for application {{appName}}. Please create it manually and re-run deployment configuration for this project.",
|
|
22162
19641
|
UPDATE_UI5_CLI: "The UI5 CLI version of the project is outdated. Please upgrade your project to UI5 CLI v3:\nhttps://sap.github.io/ui5-tooling/v3/updates/migrate-v3/."
|