@kubb/core 0.51.0 → 0.52.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.global.js +427 -462
- package/dist/index.global.js.map +1 -1
- package/package.json +1 -1
package/dist/index.global.js
CHANGED
|
@@ -5235,9 +5235,9 @@ var kubb = (function (exports) {
|
|
|
5235
5235
|
}
|
|
5236
5236
|
});
|
|
5237
5237
|
|
|
5238
|
-
// ../../node_modules/.pnpm/define-properties@1.
|
|
5238
|
+
// ../../node_modules/.pnpm/define-properties@1.2.0/node_modules/define-properties/index.js
|
|
5239
5239
|
var require_define_properties = __commonJS({
|
|
5240
|
-
"../../node_modules/.pnpm/define-properties@1.
|
|
5240
|
+
"../../node_modules/.pnpm/define-properties@1.2.0/node_modules/define-properties/index.js"(exports, module) {
|
|
5241
5241
|
init_define_process();
|
|
5242
5242
|
var keys2 = require_object_keys();
|
|
5243
5243
|
var hasSymbols = typeof Symbol === "function" && typeof Symbol("foo") === "symbol";
|
|
@@ -5250,8 +5250,14 @@ var kubb = (function (exports) {
|
|
|
5250
5250
|
var hasPropertyDescriptors = require_has_property_descriptors()();
|
|
5251
5251
|
var supportsDescriptors = origDefineProperty && hasPropertyDescriptors;
|
|
5252
5252
|
var defineProperty = function(object, name2, value, predicate) {
|
|
5253
|
-
if (name2 in object
|
|
5254
|
-
|
|
5253
|
+
if (name2 in object) {
|
|
5254
|
+
if (predicate === true) {
|
|
5255
|
+
if (object[name2] === value) {
|
|
5256
|
+
return;
|
|
5257
|
+
}
|
|
5258
|
+
} else if (!isFunction(predicate) || !predicate()) {
|
|
5259
|
+
return;
|
|
5260
|
+
}
|
|
5255
5261
|
}
|
|
5256
5262
|
if (supportsDescriptors) {
|
|
5257
5263
|
origDefineProperty(object, name2, {
|
|
@@ -7622,9 +7628,9 @@ var kubb = (function (exports) {
|
|
|
7622
7628
|
}
|
|
7623
7629
|
});
|
|
7624
7630
|
|
|
7625
|
-
// ../../node_modules/.pnpm/readable-stream@3.6.
|
|
7631
|
+
// ../../node_modules/.pnpm/readable-stream@3.6.1/node_modules/readable-stream/lib/internal/streams/stream-browser.js
|
|
7626
7632
|
var require_stream_browser = __commonJS({
|
|
7627
|
-
"../../node_modules/.pnpm/readable-stream@3.6.
|
|
7633
|
+
"../../node_modules/.pnpm/readable-stream@3.6.1/node_modules/readable-stream/lib/internal/streams/stream-browser.js"(exports, module) {
|
|
7628
7634
|
init_define_process();
|
|
7629
7635
|
module.exports = require_eventemitter3().EventEmitter;
|
|
7630
7636
|
}
|
|
@@ -7637,40 +7643,33 @@ var kubb = (function (exports) {
|
|
|
7637
7643
|
}
|
|
7638
7644
|
});
|
|
7639
7645
|
|
|
7640
|
-
// ../../node_modules/.pnpm/readable-stream@3.6.
|
|
7646
|
+
// ../../node_modules/.pnpm/readable-stream@3.6.1/node_modules/readable-stream/lib/internal/streams/buffer_list.js
|
|
7641
7647
|
var require_buffer_list = __commonJS({
|
|
7642
|
-
"../../node_modules/.pnpm/readable-stream@3.6.
|
|
7648
|
+
"../../node_modules/.pnpm/readable-stream@3.6.1/node_modules/readable-stream/lib/internal/streams/buffer_list.js"(exports, module) {
|
|
7643
7649
|
init_define_process();
|
|
7644
7650
|
function ownKeys(object, enumerableOnly) {
|
|
7645
7651
|
var keys2 = Object.keys(object);
|
|
7646
7652
|
if (Object.getOwnPropertySymbols) {
|
|
7647
7653
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
7648
|
-
|
|
7649
|
-
|
|
7650
|
-
|
|
7651
|
-
});
|
|
7652
|
-
keys2.push.apply(keys2, symbols);
|
|
7654
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
7655
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
7656
|
+
})), keys2.push.apply(keys2, symbols);
|
|
7653
7657
|
}
|
|
7654
7658
|
return keys2;
|
|
7655
7659
|
}
|
|
7656
7660
|
function _objectSpread(target) {
|
|
7657
7661
|
for (var i = 1; i < arguments.length; i++) {
|
|
7658
|
-
var source = arguments[i]
|
|
7659
|
-
|
|
7660
|
-
|
|
7661
|
-
|
|
7662
|
-
|
|
7663
|
-
}
|
|
7664
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7665
|
-
} else {
|
|
7666
|
-
ownKeys(Object(source)).forEach(function(key) {
|
|
7667
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7668
|
-
});
|
|
7669
|
-
}
|
|
7662
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
7663
|
+
i % 2 ? ownKeys(Object(source), true).forEach(function(key) {
|
|
7664
|
+
_defineProperty(target, key, source[key]);
|
|
7665
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
7666
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7667
|
+
});
|
|
7670
7668
|
}
|
|
7671
7669
|
return target;
|
|
7672
7670
|
}
|
|
7673
7671
|
function _defineProperty(obj, key, value) {
|
|
7672
|
+
key = _toPropertyKey(key);
|
|
7674
7673
|
if (key in obj) {
|
|
7675
7674
|
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
7676
7675
|
} else {
|
|
@@ -7678,27 +7677,21 @@ var kubb = (function (exports) {
|
|
|
7678
7677
|
}
|
|
7679
7678
|
return obj;
|
|
7680
7679
|
}
|
|
7681
|
-
function
|
|
7682
|
-
|
|
7683
|
-
|
|
7684
|
-
}
|
|
7680
|
+
function _toPropertyKey(arg) {
|
|
7681
|
+
var key = _toPrimitive(arg, "string");
|
|
7682
|
+
return typeof key === "symbol" ? key : String(key);
|
|
7685
7683
|
}
|
|
7686
|
-
function
|
|
7687
|
-
|
|
7688
|
-
|
|
7689
|
-
|
|
7690
|
-
|
|
7691
|
-
|
|
7692
|
-
|
|
7693
|
-
|
|
7684
|
+
function _toPrimitive(input, hint) {
|
|
7685
|
+
if (typeof input !== "object" || input === null)
|
|
7686
|
+
return input;
|
|
7687
|
+
var prim = input[Symbol.toPrimitive];
|
|
7688
|
+
if (prim !== void 0) {
|
|
7689
|
+
var res = prim.call(input, hint || "default");
|
|
7690
|
+
if (typeof res !== "object")
|
|
7691
|
+
return res;
|
|
7692
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
7694
7693
|
}
|
|
7695
|
-
|
|
7696
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
7697
|
-
if (protoProps)
|
|
7698
|
-
_defineProperties(Constructor.prototype, protoProps);
|
|
7699
|
-
if (staticProps)
|
|
7700
|
-
_defineProperties(Constructor, staticProps);
|
|
7701
|
-
return Constructor;
|
|
7694
|
+
return (hint === "string" ? String : Number)(input);
|
|
7702
7695
|
}
|
|
7703
7696
|
var _require = require_buffer();
|
|
7704
7697
|
var Buffer2 = _require.Buffer;
|
|
@@ -7708,196 +7701,169 @@ var kubb = (function (exports) {
|
|
|
7708
7701
|
function copyBuffer(src, target, offset) {
|
|
7709
7702
|
Buffer2.prototype.copy.call(src, target, offset);
|
|
7710
7703
|
}
|
|
7711
|
-
module.exports =
|
|
7712
|
-
|
|
7713
|
-
_classCallCheck(this, BufferList);
|
|
7704
|
+
module.exports = class BufferList {
|
|
7705
|
+
constructor() {
|
|
7714
7706
|
this.head = null;
|
|
7715
7707
|
this.tail = null;
|
|
7716
7708
|
this.length = 0;
|
|
7717
7709
|
}
|
|
7718
|
-
|
|
7719
|
-
|
|
7720
|
-
|
|
7721
|
-
|
|
7722
|
-
|
|
7723
|
-
|
|
7724
|
-
|
|
7725
|
-
|
|
7726
|
-
this.tail.next = entry;
|
|
7727
|
-
else
|
|
7728
|
-
this.head = entry;
|
|
7729
|
-
this.tail = entry;
|
|
7730
|
-
++this.length;
|
|
7731
|
-
}
|
|
7732
|
-
}, {
|
|
7733
|
-
key: "unshift",
|
|
7734
|
-
value: function unshift(v) {
|
|
7735
|
-
var entry = {
|
|
7736
|
-
data: v,
|
|
7737
|
-
next: this.head
|
|
7738
|
-
};
|
|
7739
|
-
if (this.length === 0)
|
|
7740
|
-
this.tail = entry;
|
|
7710
|
+
push(v) {
|
|
7711
|
+
const entry = {
|
|
7712
|
+
data: v,
|
|
7713
|
+
next: null
|
|
7714
|
+
};
|
|
7715
|
+
if (this.length > 0)
|
|
7716
|
+
this.tail.next = entry;
|
|
7717
|
+
else
|
|
7741
7718
|
this.head = entry;
|
|
7742
|
-
|
|
7743
|
-
|
|
7744
|
-
}
|
|
7745
|
-
|
|
7746
|
-
|
|
7747
|
-
|
|
7748
|
-
|
|
7749
|
-
|
|
7750
|
-
|
|
7751
|
-
|
|
7752
|
-
|
|
7753
|
-
|
|
7754
|
-
|
|
7755
|
-
|
|
7756
|
-
|
|
7757
|
-
|
|
7758
|
-
|
|
7759
|
-
|
|
7719
|
+
this.tail = entry;
|
|
7720
|
+
++this.length;
|
|
7721
|
+
}
|
|
7722
|
+
unshift(v) {
|
|
7723
|
+
const entry = {
|
|
7724
|
+
data: v,
|
|
7725
|
+
next: this.head
|
|
7726
|
+
};
|
|
7727
|
+
if (this.length === 0)
|
|
7728
|
+
this.tail = entry;
|
|
7729
|
+
this.head = entry;
|
|
7730
|
+
++this.length;
|
|
7731
|
+
}
|
|
7732
|
+
shift() {
|
|
7733
|
+
if (this.length === 0)
|
|
7734
|
+
return;
|
|
7735
|
+
const ret = this.head.data;
|
|
7736
|
+
if (this.length === 1)
|
|
7760
7737
|
this.head = this.tail = null;
|
|
7761
|
-
|
|
7762
|
-
|
|
7763
|
-
|
|
7764
|
-
|
|
7765
|
-
|
|
7766
|
-
|
|
7767
|
-
|
|
7768
|
-
|
|
7769
|
-
|
|
7770
|
-
|
|
7771
|
-
|
|
7772
|
-
|
|
7773
|
-
|
|
7774
|
-
|
|
7775
|
-
|
|
7776
|
-
|
|
7777
|
-
|
|
7778
|
-
|
|
7779
|
-
|
|
7780
|
-
|
|
7781
|
-
|
|
7782
|
-
|
|
7783
|
-
|
|
7784
|
-
|
|
7785
|
-
|
|
7786
|
-
|
|
7787
|
-
|
|
7788
|
-
|
|
7789
|
-
}
|
|
7790
|
-
// Consumes a specified amount of bytes or characters from the buffered data.
|
|
7791
|
-
}, {
|
|
7792
|
-
key: "consume",
|
|
7793
|
-
value: function consume(n, hasStrings) {
|
|
7794
|
-
var ret;
|
|
7795
|
-
if (n < this.head.data.length) {
|
|
7796
|
-
ret = this.head.data.slice(0, n);
|
|
7797
|
-
this.head.data = this.head.data.slice(n);
|
|
7798
|
-
} else if (n === this.head.data.length) {
|
|
7799
|
-
ret = this.shift();
|
|
7800
|
-
} else {
|
|
7801
|
-
ret = hasStrings ? this._getString(n) : this._getBuffer(n);
|
|
7802
|
-
}
|
|
7803
|
-
return ret;
|
|
7738
|
+
else
|
|
7739
|
+
this.head = this.head.next;
|
|
7740
|
+
--this.length;
|
|
7741
|
+
return ret;
|
|
7742
|
+
}
|
|
7743
|
+
clear() {
|
|
7744
|
+
this.head = this.tail = null;
|
|
7745
|
+
this.length = 0;
|
|
7746
|
+
}
|
|
7747
|
+
join(s) {
|
|
7748
|
+
if (this.length === 0)
|
|
7749
|
+
return "";
|
|
7750
|
+
var p = this.head;
|
|
7751
|
+
var ret = "" + p.data;
|
|
7752
|
+
while (p = p.next)
|
|
7753
|
+
ret += s + p.data;
|
|
7754
|
+
return ret;
|
|
7755
|
+
}
|
|
7756
|
+
concat(n) {
|
|
7757
|
+
if (this.length === 0)
|
|
7758
|
+
return Buffer2.alloc(0);
|
|
7759
|
+
const ret = Buffer2.allocUnsafe(n >>> 0);
|
|
7760
|
+
var p = this.head;
|
|
7761
|
+
var i = 0;
|
|
7762
|
+
while (p) {
|
|
7763
|
+
copyBuffer(p.data, ret, i);
|
|
7764
|
+
i += p.data.length;
|
|
7765
|
+
p = p.next;
|
|
7804
7766
|
}
|
|
7805
|
-
|
|
7806
|
-
|
|
7807
|
-
|
|
7808
|
-
|
|
7767
|
+
return ret;
|
|
7768
|
+
}
|
|
7769
|
+
// Consumes a specified amount of bytes or characters from the buffered data.
|
|
7770
|
+
consume(n, hasStrings) {
|
|
7771
|
+
var ret;
|
|
7772
|
+
if (n < this.head.data.length) {
|
|
7773
|
+
ret = this.head.data.slice(0, n);
|
|
7774
|
+
this.head.data = this.head.data.slice(n);
|
|
7775
|
+
} else if (n === this.head.data.length) {
|
|
7776
|
+
ret = this.shift();
|
|
7777
|
+
} else {
|
|
7778
|
+
ret = hasStrings ? this._getString(n) : this._getBuffer(n);
|
|
7809
7779
|
}
|
|
7810
|
-
|
|
7811
|
-
}
|
|
7812
|
-
|
|
7813
|
-
|
|
7814
|
-
|
|
7815
|
-
|
|
7816
|
-
|
|
7817
|
-
|
|
7818
|
-
|
|
7819
|
-
|
|
7820
|
-
|
|
7821
|
-
|
|
7822
|
-
|
|
7823
|
-
|
|
7824
|
-
|
|
7825
|
-
|
|
7826
|
-
|
|
7827
|
-
|
|
7828
|
-
|
|
7829
|
-
|
|
7830
|
-
|
|
7831
|
-
|
|
7832
|
-
|
|
7833
|
-
|
|
7834
|
-
|
|
7835
|
-
|
|
7836
|
-
|
|
7837
|
-
|
|
7780
|
+
return ret;
|
|
7781
|
+
}
|
|
7782
|
+
first() {
|
|
7783
|
+
return this.head.data;
|
|
7784
|
+
}
|
|
7785
|
+
// Consumes a specified amount of characters from the buffered data.
|
|
7786
|
+
_getString(n) {
|
|
7787
|
+
var p = this.head;
|
|
7788
|
+
var c = 1;
|
|
7789
|
+
var ret = p.data;
|
|
7790
|
+
n -= ret.length;
|
|
7791
|
+
while (p = p.next) {
|
|
7792
|
+
const str = p.data;
|
|
7793
|
+
const nb = n > str.length ? str.length : n;
|
|
7794
|
+
if (nb === str.length)
|
|
7795
|
+
ret += str;
|
|
7796
|
+
else
|
|
7797
|
+
ret += str.slice(0, n);
|
|
7798
|
+
n -= nb;
|
|
7799
|
+
if (n === 0) {
|
|
7800
|
+
if (nb === str.length) {
|
|
7801
|
+
++c;
|
|
7802
|
+
if (p.next)
|
|
7803
|
+
this.head = p.next;
|
|
7804
|
+
else
|
|
7805
|
+
this.head = this.tail = null;
|
|
7806
|
+
} else {
|
|
7807
|
+
this.head = p;
|
|
7808
|
+
p.data = str.slice(nb);
|
|
7838
7809
|
}
|
|
7839
|
-
|
|
7810
|
+
break;
|
|
7840
7811
|
}
|
|
7841
|
-
|
|
7842
|
-
return ret;
|
|
7812
|
+
++c;
|
|
7843
7813
|
}
|
|
7844
|
-
|
|
7845
|
-
|
|
7846
|
-
|
|
7847
|
-
|
|
7848
|
-
|
|
7849
|
-
|
|
7850
|
-
|
|
7851
|
-
|
|
7852
|
-
|
|
7853
|
-
|
|
7854
|
-
|
|
7855
|
-
|
|
7856
|
-
|
|
7857
|
-
|
|
7858
|
-
|
|
7859
|
-
|
|
7860
|
-
|
|
7861
|
-
|
|
7862
|
-
|
|
7863
|
-
|
|
7864
|
-
|
|
7865
|
-
|
|
7866
|
-
|
|
7867
|
-
|
|
7868
|
-
|
|
7869
|
-
break;
|
|
7814
|
+
this.length -= c;
|
|
7815
|
+
return ret;
|
|
7816
|
+
}
|
|
7817
|
+
// Consumes a specified amount of bytes from the buffered data.
|
|
7818
|
+
_getBuffer(n) {
|
|
7819
|
+
const ret = Buffer2.allocUnsafe(n);
|
|
7820
|
+
var p = this.head;
|
|
7821
|
+
var c = 1;
|
|
7822
|
+
p.data.copy(ret);
|
|
7823
|
+
n -= p.data.length;
|
|
7824
|
+
while (p = p.next) {
|
|
7825
|
+
const buf = p.data;
|
|
7826
|
+
const nb = n > buf.length ? buf.length : n;
|
|
7827
|
+
buf.copy(ret, ret.length - n, 0, nb);
|
|
7828
|
+
n -= nb;
|
|
7829
|
+
if (n === 0) {
|
|
7830
|
+
if (nb === buf.length) {
|
|
7831
|
+
++c;
|
|
7832
|
+
if (p.next)
|
|
7833
|
+
this.head = p.next;
|
|
7834
|
+
else
|
|
7835
|
+
this.head = this.tail = null;
|
|
7836
|
+
} else {
|
|
7837
|
+
this.head = p;
|
|
7838
|
+
p.data = buf.slice(nb);
|
|
7870
7839
|
}
|
|
7871
|
-
|
|
7840
|
+
break;
|
|
7872
7841
|
}
|
|
7873
|
-
|
|
7874
|
-
return ret;
|
|
7842
|
+
++c;
|
|
7875
7843
|
}
|
|
7876
|
-
|
|
7877
|
-
|
|
7878
|
-
|
|
7879
|
-
|
|
7880
|
-
|
|
7881
|
-
|
|
7882
|
-
|
|
7883
|
-
|
|
7884
|
-
|
|
7885
|
-
|
|
7886
|
-
}
|
|
7887
|
-
}
|
|
7888
|
-
|
|
7889
|
-
}();
|
|
7844
|
+
this.length -= c;
|
|
7845
|
+
return ret;
|
|
7846
|
+
}
|
|
7847
|
+
// Make sure the linked list only shows the minimal necessary information.
|
|
7848
|
+
[custom](_, options) {
|
|
7849
|
+
return inspect(this, _objectSpread(_objectSpread({}, options), {}, {
|
|
7850
|
+
// Only inspect one level.
|
|
7851
|
+
depth: 0,
|
|
7852
|
+
// It should not recurse.
|
|
7853
|
+
customInspect: false
|
|
7854
|
+
}));
|
|
7855
|
+
}
|
|
7856
|
+
};
|
|
7890
7857
|
}
|
|
7891
7858
|
});
|
|
7892
7859
|
|
|
7893
|
-
// ../../node_modules/.pnpm/readable-stream@3.6.
|
|
7860
|
+
// ../../node_modules/.pnpm/readable-stream@3.6.1/node_modules/readable-stream/lib/internal/streams/destroy.js
|
|
7894
7861
|
var require_destroy = __commonJS({
|
|
7895
|
-
"../../node_modules/.pnpm/readable-stream@3.6.
|
|
7862
|
+
"../../node_modules/.pnpm/readable-stream@3.6.1/node_modules/readable-stream/lib/internal/streams/destroy.js"(exports, module) {
|
|
7896
7863
|
init_define_process();
|
|
7897
7864
|
function destroy(err, cb) {
|
|
7898
|
-
|
|
7899
|
-
|
|
7900
|
-
var writableDestroyed = this._writableState && this._writableState.destroyed;
|
|
7865
|
+
const readableDestroyed = this._readableState && this._readableState.destroyed;
|
|
7866
|
+
const writableDestroyed = this._writableState && this._writableState.destroyed;
|
|
7901
7867
|
if (readableDestroyed || writableDestroyed) {
|
|
7902
7868
|
if (cb) {
|
|
7903
7869
|
cb(err);
|
|
@@ -7917,21 +7883,21 @@ var kubb = (function (exports) {
|
|
|
7917
7883
|
if (this._writableState) {
|
|
7918
7884
|
this._writableState.destroyed = true;
|
|
7919
7885
|
}
|
|
7920
|
-
this._destroy(err || null,
|
|
7886
|
+
this._destroy(err || null, (err2) => {
|
|
7921
7887
|
if (!cb && err2) {
|
|
7922
|
-
if (!
|
|
7923
|
-
define_process_default.nextTick(emitErrorAndCloseNT,
|
|
7924
|
-
} else if (!
|
|
7925
|
-
|
|
7926
|
-
define_process_default.nextTick(emitErrorAndCloseNT,
|
|
7888
|
+
if (!this._writableState) {
|
|
7889
|
+
define_process_default.nextTick(emitErrorAndCloseNT, this, err2);
|
|
7890
|
+
} else if (!this._writableState.errorEmitted) {
|
|
7891
|
+
this._writableState.errorEmitted = true;
|
|
7892
|
+
define_process_default.nextTick(emitErrorAndCloseNT, this, err2);
|
|
7927
7893
|
} else {
|
|
7928
|
-
define_process_default.nextTick(emitCloseNT,
|
|
7894
|
+
define_process_default.nextTick(emitCloseNT, this);
|
|
7929
7895
|
}
|
|
7930
7896
|
} else if (cb) {
|
|
7931
|
-
define_process_default.nextTick(emitCloseNT,
|
|
7897
|
+
define_process_default.nextTick(emitCloseNT, this);
|
|
7932
7898
|
cb(err2);
|
|
7933
7899
|
} else {
|
|
7934
|
-
define_process_default.nextTick(emitCloseNT,
|
|
7900
|
+
define_process_default.nextTick(emitCloseNT, this);
|
|
7935
7901
|
}
|
|
7936
7902
|
});
|
|
7937
7903
|
return this;
|
|
@@ -7968,8 +7934,8 @@ var kubb = (function (exports) {
|
|
|
7968
7934
|
self2.emit("error", err);
|
|
7969
7935
|
}
|
|
7970
7936
|
function errorOrDestroy(stream, err) {
|
|
7971
|
-
|
|
7972
|
-
|
|
7937
|
+
const rState = stream._readableState;
|
|
7938
|
+
const wState = stream._writableState;
|
|
7973
7939
|
if (rState && rState.autoDestroy || wState && wState.autoDestroy)
|
|
7974
7940
|
stream.destroy(err);
|
|
7975
7941
|
else
|
|
@@ -7983,9 +7949,9 @@ var kubb = (function (exports) {
|
|
|
7983
7949
|
}
|
|
7984
7950
|
});
|
|
7985
7951
|
|
|
7986
|
-
// ../../node_modules/.pnpm/readable-stream@3.6.
|
|
7952
|
+
// ../../node_modules/.pnpm/readable-stream@3.6.1/node_modules/readable-stream/errors-browser.js
|
|
7987
7953
|
var require_errors_browser = __commonJS({
|
|
7988
|
-
"../../node_modules/.pnpm/readable-stream@3.6.
|
|
7954
|
+
"../../node_modules/.pnpm/readable-stream@3.6.1/node_modules/readable-stream/errors-browser.js"(exports, module) {
|
|
7989
7955
|
init_define_process();
|
|
7990
7956
|
function _inheritsLoose(subClass, superClass) {
|
|
7991
7957
|
subClass.prototype = Object.create(superClass.prototype);
|
|
@@ -8092,19 +8058,19 @@ var kubb = (function (exports) {
|
|
|
8092
8058
|
}
|
|
8093
8059
|
});
|
|
8094
8060
|
|
|
8095
|
-
// ../../node_modules/.pnpm/readable-stream@3.6.
|
|
8061
|
+
// ../../node_modules/.pnpm/readable-stream@3.6.1/node_modules/readable-stream/lib/internal/streams/state.js
|
|
8096
8062
|
var require_state = __commonJS({
|
|
8097
|
-
"../../node_modules/.pnpm/readable-stream@3.6.
|
|
8063
|
+
"../../node_modules/.pnpm/readable-stream@3.6.1/node_modules/readable-stream/lib/internal/streams/state.js"(exports, module) {
|
|
8098
8064
|
init_define_process();
|
|
8099
8065
|
var ERR_INVALID_OPT_VALUE = require_errors_browser().codes.ERR_INVALID_OPT_VALUE;
|
|
8100
8066
|
function highWaterMarkFrom(options, isDuplex, duplexKey) {
|
|
8101
8067
|
return options.highWaterMark != null ? options.highWaterMark : isDuplex ? options[duplexKey] : null;
|
|
8102
8068
|
}
|
|
8103
8069
|
function getHighWaterMark(state, options, duplexKey, isDuplex) {
|
|
8104
|
-
|
|
8070
|
+
const hwm = highWaterMarkFrom(options, isDuplex, duplexKey);
|
|
8105
8071
|
if (hwm != null) {
|
|
8106
8072
|
if (!(isFinite(hwm) && Math.floor(hwm) === hwm) || hwm < 0) {
|
|
8107
|
-
|
|
8073
|
+
const name2 = isDuplex ? duplexKey : "highWaterMark";
|
|
8108
8074
|
throw new ERR_INVALID_OPT_VALUE(name2, hwm);
|
|
8109
8075
|
}
|
|
8110
8076
|
return Math.floor(hwm);
|
|
@@ -8157,17 +8123,16 @@ var kubb = (function (exports) {
|
|
|
8157
8123
|
}
|
|
8158
8124
|
});
|
|
8159
8125
|
|
|
8160
|
-
// ../../node_modules/.pnpm/readable-stream@3.6.
|
|
8126
|
+
// ../../node_modules/.pnpm/readable-stream@3.6.1/node_modules/readable-stream/lib/_stream_writable.js
|
|
8161
8127
|
var require_stream_writable = __commonJS({
|
|
8162
|
-
"../../node_modules/.pnpm/readable-stream@3.6.
|
|
8128
|
+
"../../node_modules/.pnpm/readable-stream@3.6.1/node_modules/readable-stream/lib/_stream_writable.js"(exports, module) {
|
|
8163
8129
|
init_define_process();
|
|
8164
8130
|
module.exports = Writable;
|
|
8165
8131
|
function CorkedRequest(state) {
|
|
8166
|
-
var _this = this;
|
|
8167
8132
|
this.next = null;
|
|
8168
8133
|
this.entry = null;
|
|
8169
|
-
this.finish =
|
|
8170
|
-
onCorkedFinish(
|
|
8134
|
+
this.finish = () => {
|
|
8135
|
+
onCorkedFinish(this, state);
|
|
8171
8136
|
};
|
|
8172
8137
|
}
|
|
8173
8138
|
var Duplex;
|
|
@@ -8177,7 +8142,7 @@ var kubb = (function (exports) {
|
|
|
8177
8142
|
};
|
|
8178
8143
|
var Stream = require_stream_browser();
|
|
8179
8144
|
var Buffer2 = require_buffer().Buffer;
|
|
8180
|
-
var OurUint8Array = globalThis.Uint8Array || function() {
|
|
8145
|
+
var OurUint8Array = (typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : {}).Uint8Array || function() {
|
|
8181
8146
|
};
|
|
8182
8147
|
function _uint8ArrayToBuffer(chunk) {
|
|
8183
8148
|
return Buffer2.from(chunk);
|
|
@@ -8277,7 +8242,7 @@ var kubb = (function (exports) {
|
|
|
8277
8242
|
}
|
|
8278
8243
|
function Writable(options) {
|
|
8279
8244
|
Duplex = Duplex || require_stream_duplex();
|
|
8280
|
-
|
|
8245
|
+
const isDuplex = this instanceof Duplex;
|
|
8281
8246
|
if (!isDuplex && !realHasInstance.call(Writable, this))
|
|
8282
8247
|
return new Writable(options);
|
|
8283
8248
|
this._writableState = new WritableState(options, this, isDuplex);
|
|
@@ -8561,7 +8526,7 @@ var kubb = (function (exports) {
|
|
|
8561
8526
|
// because otherwise some prototype manipulation in
|
|
8562
8527
|
// userland will fail
|
|
8563
8528
|
enumerable: false,
|
|
8564
|
-
get
|
|
8529
|
+
get() {
|
|
8565
8530
|
return this._writableState.length;
|
|
8566
8531
|
}
|
|
8567
8532
|
});
|
|
@@ -8569,7 +8534,7 @@ var kubb = (function (exports) {
|
|
|
8569
8534
|
return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing;
|
|
8570
8535
|
}
|
|
8571
8536
|
function callFinal(stream, state) {
|
|
8572
|
-
stream._final(
|
|
8537
|
+
stream._final((err) => {
|
|
8573
8538
|
state.pendingcb--;
|
|
8574
8539
|
if (err) {
|
|
8575
8540
|
errorOrDestroy(stream, err);
|
|
@@ -8599,7 +8564,7 @@ var kubb = (function (exports) {
|
|
|
8599
8564
|
state.finished = true;
|
|
8600
8565
|
stream.emit("finish");
|
|
8601
8566
|
if (state.autoDestroy) {
|
|
8602
|
-
|
|
8567
|
+
const rState = stream._readableState;
|
|
8603
8568
|
if (!rState || rState.autoDestroy && rState.endEmitted) {
|
|
8604
8569
|
stream.destroy();
|
|
8605
8570
|
}
|
|
@@ -8636,13 +8601,13 @@ var kubb = (function (exports) {
|
|
|
8636
8601
|
// because otherwise some prototype manipulation in
|
|
8637
8602
|
// userland will fail
|
|
8638
8603
|
enumerable: false,
|
|
8639
|
-
get
|
|
8604
|
+
get() {
|
|
8640
8605
|
if (this._writableState === void 0) {
|
|
8641
8606
|
return false;
|
|
8642
8607
|
}
|
|
8643
8608
|
return this._writableState.destroyed;
|
|
8644
8609
|
},
|
|
8645
|
-
set
|
|
8610
|
+
set(value) {
|
|
8646
8611
|
if (!this._writableState) {
|
|
8647
8612
|
return;
|
|
8648
8613
|
}
|
|
@@ -8657,31 +8622,28 @@ var kubb = (function (exports) {
|
|
|
8657
8622
|
}
|
|
8658
8623
|
});
|
|
8659
8624
|
|
|
8660
|
-
// ../../node_modules/.pnpm/readable-stream@3.6.
|
|
8625
|
+
// ../../node_modules/.pnpm/readable-stream@3.6.1/node_modules/readable-stream/lib/_stream_duplex.js
|
|
8661
8626
|
var require_stream_duplex = __commonJS({
|
|
8662
|
-
"../../node_modules/.pnpm/readable-stream@3.6.
|
|
8627
|
+
"../../node_modules/.pnpm/readable-stream@3.6.1/node_modules/readable-stream/lib/_stream_duplex.js"(exports, module) {
|
|
8663
8628
|
init_define_process();
|
|
8664
8629
|
var objectKeys = Object.keys || function(obj) {
|
|
8665
|
-
var
|
|
8666
|
-
for (var key in obj)
|
|
8667
|
-
|
|
8668
|
-
|
|
8669
|
-
return keys3;
|
|
8630
|
+
var keys2 = [];
|
|
8631
|
+
for (var key in obj)
|
|
8632
|
+
keys2.push(key);
|
|
8633
|
+
return keys2;
|
|
8670
8634
|
};
|
|
8671
8635
|
module.exports = Duplex;
|
|
8672
8636
|
var Readable = require_stream_readable();
|
|
8673
8637
|
var Writable = require_stream_writable();
|
|
8674
8638
|
require_inherits_browser()(Duplex, Readable);
|
|
8675
8639
|
{
|
|
8676
|
-
keys2 = objectKeys(Writable.prototype);
|
|
8640
|
+
const keys2 = objectKeys(Writable.prototype);
|
|
8677
8641
|
for (v = 0; v < keys2.length; v++) {
|
|
8678
|
-
method = keys2[v];
|
|
8642
|
+
const method = keys2[v];
|
|
8679
8643
|
if (!Duplex.prototype[method])
|
|
8680
8644
|
Duplex.prototype[method] = Writable.prototype[method];
|
|
8681
8645
|
}
|
|
8682
8646
|
}
|
|
8683
|
-
var keys2;
|
|
8684
|
-
var method;
|
|
8685
8647
|
var v;
|
|
8686
8648
|
function Duplex(options) {
|
|
8687
8649
|
if (!(this instanceof Duplex))
|
|
@@ -8705,7 +8667,7 @@ var kubb = (function (exports) {
|
|
|
8705
8667
|
// because otherwise some prototype manipulation in
|
|
8706
8668
|
// userland will fail
|
|
8707
8669
|
enumerable: false,
|
|
8708
|
-
get
|
|
8670
|
+
get() {
|
|
8709
8671
|
return this._writableState.highWaterMark;
|
|
8710
8672
|
}
|
|
8711
8673
|
});
|
|
@@ -8723,7 +8685,7 @@ var kubb = (function (exports) {
|
|
|
8723
8685
|
// because otherwise some prototype manipulation in
|
|
8724
8686
|
// userland will fail
|
|
8725
8687
|
enumerable: false,
|
|
8726
|
-
get
|
|
8688
|
+
get() {
|
|
8727
8689
|
return this._writableState.length;
|
|
8728
8690
|
}
|
|
8729
8691
|
});
|
|
@@ -8740,13 +8702,13 @@ var kubb = (function (exports) {
|
|
|
8740
8702
|
// because otherwise some prototype manipulation in
|
|
8741
8703
|
// userland will fail
|
|
8742
8704
|
enumerable: false,
|
|
8743
|
-
get
|
|
8705
|
+
get() {
|
|
8744
8706
|
if (this._readableState === void 0 || this._writableState === void 0) {
|
|
8745
8707
|
return false;
|
|
8746
8708
|
}
|
|
8747
8709
|
return this._readableState.destroyed && this._writableState.destroyed;
|
|
8748
8710
|
},
|
|
8749
|
-
set
|
|
8711
|
+
set(value) {
|
|
8750
8712
|
if (this._readableState === void 0 || this._writableState === void 0) {
|
|
8751
8713
|
return;
|
|
8752
8714
|
}
|
|
@@ -9076,13 +9038,13 @@ var kubb = (function (exports) {
|
|
|
9076
9038
|
}
|
|
9077
9039
|
});
|
|
9078
9040
|
|
|
9079
|
-
// ../../node_modules/.pnpm/readable-stream@3.6.
|
|
9041
|
+
// ../../node_modules/.pnpm/readable-stream@3.6.1/node_modules/readable-stream/lib/internal/streams/end-of-stream.js
|
|
9080
9042
|
var require_end_of_stream = __commonJS({
|
|
9081
|
-
"../../node_modules/.pnpm/readable-stream@3.6.
|
|
9043
|
+
"../../node_modules/.pnpm/readable-stream@3.6.1/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"(exports, module) {
|
|
9082
9044
|
init_define_process();
|
|
9083
9045
|
var ERR_STREAM_PREMATURE_CLOSE = require_errors_browser().codes.ERR_STREAM_PREMATURE_CLOSE;
|
|
9084
9046
|
function once(callback) {
|
|
9085
|
-
|
|
9047
|
+
let called = false;
|
|
9086
9048
|
return function() {
|
|
9087
9049
|
if (called)
|
|
9088
9050
|
return;
|
|
@@ -9104,31 +9066,31 @@ var kubb = (function (exports) {
|
|
|
9104
9066
|
if (!opts)
|
|
9105
9067
|
opts = {};
|
|
9106
9068
|
callback = once(callback || noop);
|
|
9107
|
-
|
|
9108
|
-
|
|
9109
|
-
|
|
9069
|
+
let readable = opts.readable || opts.readable !== false && stream.readable;
|
|
9070
|
+
let writable = opts.writable || opts.writable !== false && stream.writable;
|
|
9071
|
+
const onlegacyfinish = () => {
|
|
9110
9072
|
if (!stream.writable)
|
|
9111
9073
|
onfinish();
|
|
9112
9074
|
};
|
|
9113
9075
|
var writableEnded = stream._writableState && stream._writableState.finished;
|
|
9114
|
-
|
|
9076
|
+
const onfinish = () => {
|
|
9115
9077
|
writable = false;
|
|
9116
9078
|
writableEnded = true;
|
|
9117
9079
|
if (!readable)
|
|
9118
9080
|
callback.call(stream);
|
|
9119
9081
|
};
|
|
9120
9082
|
var readableEnded = stream._readableState && stream._readableState.endEmitted;
|
|
9121
|
-
|
|
9083
|
+
const onend = () => {
|
|
9122
9084
|
readable = false;
|
|
9123
9085
|
readableEnded = true;
|
|
9124
9086
|
if (!writable)
|
|
9125
9087
|
callback.call(stream);
|
|
9126
9088
|
};
|
|
9127
|
-
|
|
9089
|
+
const onerror = (err) => {
|
|
9128
9090
|
callback.call(stream, err);
|
|
9129
9091
|
};
|
|
9130
|
-
|
|
9131
|
-
|
|
9092
|
+
const onclose = () => {
|
|
9093
|
+
let err;
|
|
9132
9094
|
if (readable && !readableEnded) {
|
|
9133
9095
|
if (!stream._readableState || !stream._readableState.ended)
|
|
9134
9096
|
err = new ERR_STREAM_PREMATURE_CLOSE();
|
|
@@ -9140,7 +9102,7 @@ var kubb = (function (exports) {
|
|
|
9140
9102
|
return callback.call(stream, err);
|
|
9141
9103
|
}
|
|
9142
9104
|
};
|
|
9143
|
-
|
|
9105
|
+
const onrequest = () => {
|
|
9144
9106
|
stream.req.on("finish", onfinish);
|
|
9145
9107
|
};
|
|
9146
9108
|
if (isRequest(stream)) {
|
|
@@ -9177,19 +9139,10 @@ var kubb = (function (exports) {
|
|
|
9177
9139
|
}
|
|
9178
9140
|
});
|
|
9179
9141
|
|
|
9180
|
-
// ../../node_modules/.pnpm/readable-stream@3.6.
|
|
9142
|
+
// ../../node_modules/.pnpm/readable-stream@3.6.1/node_modules/readable-stream/lib/internal/streams/async_iterator.js
|
|
9181
9143
|
var require_async_iterator = __commonJS({
|
|
9182
|
-
"../../node_modules/.pnpm/readable-stream@3.6.
|
|
9144
|
+
"../../node_modules/.pnpm/readable-stream@3.6.1/node_modules/readable-stream/lib/internal/streams/async_iterator.js"(exports, module) {
|
|
9183
9145
|
init_define_process();
|
|
9184
|
-
var _Object$setPrototypeO;
|
|
9185
|
-
function _defineProperty(obj, key, value) {
|
|
9186
|
-
if (key in obj) {
|
|
9187
|
-
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
9188
|
-
} else {
|
|
9189
|
-
obj[key] = value;
|
|
9190
|
-
}
|
|
9191
|
-
return obj;
|
|
9192
|
-
}
|
|
9193
9146
|
var finished = require_end_of_stream();
|
|
9194
9147
|
var kLastResolve = Symbol("lastResolve");
|
|
9195
9148
|
var kLastReject = Symbol("lastReject");
|
|
@@ -9205,9 +9158,9 @@ var kubb = (function (exports) {
|
|
|
9205
9158
|
};
|
|
9206
9159
|
}
|
|
9207
9160
|
function readAndResolve(iter) {
|
|
9208
|
-
|
|
9161
|
+
const resolve = iter[kLastResolve];
|
|
9209
9162
|
if (resolve !== null) {
|
|
9210
|
-
|
|
9163
|
+
const data = iter[kStream].read();
|
|
9211
9164
|
if (data !== null) {
|
|
9212
9165
|
iter[kLastPromise] = null;
|
|
9213
9166
|
iter[kLastResolve] = null;
|
|
@@ -9220,8 +9173,8 @@ var kubb = (function (exports) {
|
|
|
9220
9173
|
define_process_default.nextTick(readAndResolve, iter);
|
|
9221
9174
|
}
|
|
9222
9175
|
function wrapForNext(lastPromise, iter) {
|
|
9223
|
-
return
|
|
9224
|
-
lastPromise.then(
|
|
9176
|
+
return (resolve, reject) => {
|
|
9177
|
+
lastPromise.then(() => {
|
|
9225
9178
|
if (iter[kEnded]) {
|
|
9226
9179
|
resolve(createIterResult(void 0, true));
|
|
9227
9180
|
return;
|
|
@@ -9232,13 +9185,12 @@ var kubb = (function (exports) {
|
|
|
9232
9185
|
}
|
|
9233
9186
|
var AsyncIteratorPrototype = Object.getPrototypeOf(function() {
|
|
9234
9187
|
});
|
|
9235
|
-
var ReadableStreamAsyncIteratorPrototype = Object.setPrototypeOf(
|
|
9188
|
+
var ReadableStreamAsyncIteratorPrototype = Object.setPrototypeOf({
|
|
9236
9189
|
get stream() {
|
|
9237
9190
|
return this[kStream];
|
|
9238
9191
|
},
|
|
9239
|
-
next
|
|
9240
|
-
|
|
9241
|
-
var error = this[kError];
|
|
9192
|
+
next() {
|
|
9193
|
+
const error = this[kError];
|
|
9242
9194
|
if (error !== null) {
|
|
9243
9195
|
return Promise.reject(error);
|
|
9244
9196
|
}
|
|
@@ -9246,22 +9198,22 @@ var kubb = (function (exports) {
|
|
|
9246
9198
|
return Promise.resolve(createIterResult(void 0, true));
|
|
9247
9199
|
}
|
|
9248
9200
|
if (this[kStream].destroyed) {
|
|
9249
|
-
return new Promise(
|
|
9250
|
-
define_process_default.nextTick(
|
|
9251
|
-
if (
|
|
9252
|
-
reject(
|
|
9201
|
+
return new Promise((resolve, reject) => {
|
|
9202
|
+
define_process_default.nextTick(() => {
|
|
9203
|
+
if (this[kError]) {
|
|
9204
|
+
reject(this[kError]);
|
|
9253
9205
|
} else {
|
|
9254
9206
|
resolve(createIterResult(void 0, true));
|
|
9255
9207
|
}
|
|
9256
9208
|
});
|
|
9257
9209
|
});
|
|
9258
9210
|
}
|
|
9259
|
-
|
|
9260
|
-
|
|
9211
|
+
const lastPromise = this[kLastPromise];
|
|
9212
|
+
let promise;
|
|
9261
9213
|
if (lastPromise) {
|
|
9262
9214
|
promise = new Promise(wrapForNext(lastPromise, this));
|
|
9263
9215
|
} else {
|
|
9264
|
-
|
|
9216
|
+
const data = this[kStream].read();
|
|
9265
9217
|
if (data !== null) {
|
|
9266
9218
|
return Promise.resolve(createIterResult(data, false));
|
|
9267
9219
|
}
|
|
@@ -9269,57 +9221,67 @@ var kubb = (function (exports) {
|
|
|
9269
9221
|
}
|
|
9270
9222
|
this[kLastPromise] = promise;
|
|
9271
9223
|
return promise;
|
|
9272
|
-
}
|
|
9273
|
-
|
|
9274
|
-
|
|
9275
|
-
|
|
9276
|
-
|
|
9277
|
-
|
|
9278
|
-
|
|
9279
|
-
|
|
9280
|
-
|
|
9281
|
-
|
|
9282
|
-
|
|
9283
|
-
|
|
9224
|
+
},
|
|
9225
|
+
[Symbol.asyncIterator]() {
|
|
9226
|
+
return this;
|
|
9227
|
+
},
|
|
9228
|
+
return() {
|
|
9229
|
+
return new Promise((resolve, reject) => {
|
|
9230
|
+
this[kStream].destroy(null, (err) => {
|
|
9231
|
+
if (err) {
|
|
9232
|
+
reject(err);
|
|
9233
|
+
return;
|
|
9234
|
+
}
|
|
9235
|
+
resolve(createIterResult(void 0, true));
|
|
9236
|
+
});
|
|
9284
9237
|
});
|
|
9285
|
-
}
|
|
9286
|
-
}
|
|
9287
|
-
var createReadableStreamAsyncIterator =
|
|
9288
|
-
|
|
9289
|
-
|
|
9290
|
-
|
|
9291
|
-
|
|
9292
|
-
|
|
9293
|
-
|
|
9294
|
-
|
|
9295
|
-
|
|
9296
|
-
|
|
9297
|
-
|
|
9298
|
-
|
|
9299
|
-
|
|
9300
|
-
|
|
9301
|
-
|
|
9302
|
-
|
|
9303
|
-
|
|
9304
|
-
|
|
9305
|
-
|
|
9306
|
-
|
|
9307
|
-
|
|
9308
|
-
iterator[kLastPromise] = null;
|
|
9309
|
-
iterator[kLastResolve] = null;
|
|
9310
|
-
iterator[kLastReject] = null;
|
|
9311
|
-
resolve(createIterResult(data, false));
|
|
9312
|
-
} else {
|
|
9313
|
-
iterator[kLastResolve] = resolve;
|
|
9314
|
-
iterator[kLastReject] = reject;
|
|
9315
|
-
}
|
|
9238
|
+
}
|
|
9239
|
+
}, AsyncIteratorPrototype);
|
|
9240
|
+
var createReadableStreamAsyncIterator = (stream) => {
|
|
9241
|
+
const iterator = Object.create(ReadableStreamAsyncIteratorPrototype, {
|
|
9242
|
+
[kStream]: {
|
|
9243
|
+
value: stream,
|
|
9244
|
+
writable: true
|
|
9245
|
+
},
|
|
9246
|
+
[kLastResolve]: {
|
|
9247
|
+
value: null,
|
|
9248
|
+
writable: true
|
|
9249
|
+
},
|
|
9250
|
+
[kLastReject]: {
|
|
9251
|
+
value: null,
|
|
9252
|
+
writable: true
|
|
9253
|
+
},
|
|
9254
|
+
[kError]: {
|
|
9255
|
+
value: null,
|
|
9256
|
+
writable: true
|
|
9257
|
+
},
|
|
9258
|
+
[kEnded]: {
|
|
9259
|
+
value: stream._readableState.endEmitted,
|
|
9260
|
+
writable: true
|
|
9316
9261
|
},
|
|
9317
|
-
|
|
9318
|
-
|
|
9262
|
+
// the function passed to new Promise
|
|
9263
|
+
// is cached so we avoid allocating a new
|
|
9264
|
+
// closure at every run
|
|
9265
|
+
[kHandlePromise]: {
|
|
9266
|
+
value: (resolve, reject) => {
|
|
9267
|
+
const data = iterator[kStream].read();
|
|
9268
|
+
if (data) {
|
|
9269
|
+
iterator[kLastPromise] = null;
|
|
9270
|
+
iterator[kLastResolve] = null;
|
|
9271
|
+
iterator[kLastReject] = null;
|
|
9272
|
+
resolve(createIterResult(data, false));
|
|
9273
|
+
} else {
|
|
9274
|
+
iterator[kLastResolve] = resolve;
|
|
9275
|
+
iterator[kLastReject] = reject;
|
|
9276
|
+
}
|
|
9277
|
+
},
|
|
9278
|
+
writable: true
|
|
9279
|
+
}
|
|
9280
|
+
});
|
|
9319
9281
|
iterator[kLastPromise] = null;
|
|
9320
|
-
finished(stream,
|
|
9282
|
+
finished(stream, (err) => {
|
|
9321
9283
|
if (err && err.code !== "ERR_STREAM_PREMATURE_CLOSE") {
|
|
9322
|
-
|
|
9284
|
+
const reject = iterator[kLastReject];
|
|
9323
9285
|
if (reject !== null) {
|
|
9324
9286
|
iterator[kLastPromise] = null;
|
|
9325
9287
|
iterator[kLastResolve] = null;
|
|
@@ -9329,7 +9291,7 @@ var kubb = (function (exports) {
|
|
|
9329
9291
|
iterator[kError] = err;
|
|
9330
9292
|
return;
|
|
9331
9293
|
}
|
|
9332
|
-
|
|
9294
|
+
const resolve = iterator[kLastResolve];
|
|
9333
9295
|
if (resolve !== null) {
|
|
9334
9296
|
iterator[kLastPromise] = null;
|
|
9335
9297
|
iterator[kLastResolve] = null;
|
|
@@ -9345,9 +9307,9 @@ var kubb = (function (exports) {
|
|
|
9345
9307
|
}
|
|
9346
9308
|
});
|
|
9347
9309
|
|
|
9348
|
-
// ../../node_modules/.pnpm/readable-stream@3.6.
|
|
9310
|
+
// ../../node_modules/.pnpm/readable-stream@3.6.1/node_modules/readable-stream/lib/internal/streams/from-browser.js
|
|
9349
9311
|
var require_from_browser = __commonJS({
|
|
9350
|
-
"../../node_modules/.pnpm/readable-stream@3.6.
|
|
9312
|
+
"../../node_modules/.pnpm/readable-stream@3.6.1/node_modules/readable-stream/lib/internal/streams/from-browser.js"(exports, module) {
|
|
9351
9313
|
init_define_process();
|
|
9352
9314
|
module.exports = function() {
|
|
9353
9315
|
throw new Error("Readable.from is not available in the browser");
|
|
@@ -9355,9 +9317,9 @@ var kubb = (function (exports) {
|
|
|
9355
9317
|
}
|
|
9356
9318
|
});
|
|
9357
9319
|
|
|
9358
|
-
// ../../node_modules/.pnpm/readable-stream@3.6.
|
|
9320
|
+
// ../../node_modules/.pnpm/readable-stream@3.6.1/node_modules/readable-stream/lib/_stream_readable.js
|
|
9359
9321
|
var require_stream_readable = __commonJS({
|
|
9360
|
-
"../../node_modules/.pnpm/readable-stream@3.6.
|
|
9322
|
+
"../../node_modules/.pnpm/readable-stream@3.6.1/node_modules/readable-stream/lib/_stream_readable.js"(exports, module) {
|
|
9361
9323
|
init_define_process();
|
|
9362
9324
|
module.exports = Readable;
|
|
9363
9325
|
var Duplex;
|
|
@@ -9368,7 +9330,7 @@ var kubb = (function (exports) {
|
|
|
9368
9330
|
};
|
|
9369
9331
|
var Stream = require_stream_browser();
|
|
9370
9332
|
var Buffer2 = require_buffer().Buffer;
|
|
9371
|
-
var OurUint8Array = globalThis.Uint8Array || function() {
|
|
9333
|
+
var OurUint8Array = (typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : {}).Uint8Array || function() {
|
|
9372
9334
|
};
|
|
9373
9335
|
function _uint8ArrayToBuffer(chunk) {
|
|
9374
9336
|
return Buffer2.from(chunk);
|
|
@@ -9451,7 +9413,7 @@ var kubb = (function (exports) {
|
|
|
9451
9413
|
Duplex = Duplex || require_stream_duplex();
|
|
9452
9414
|
if (!(this instanceof Readable))
|
|
9453
9415
|
return new Readable(options);
|
|
9454
|
-
|
|
9416
|
+
const isDuplex = this instanceof Duplex;
|
|
9455
9417
|
this._readableState = new ReadableState(options, this, isDuplex);
|
|
9456
9418
|
this.readable = true;
|
|
9457
9419
|
if (options) {
|
|
@@ -9467,13 +9429,13 @@ var kubb = (function (exports) {
|
|
|
9467
9429
|
// because otherwise some prototype manipulation in
|
|
9468
9430
|
// userland will fail
|
|
9469
9431
|
enumerable: false,
|
|
9470
|
-
get
|
|
9432
|
+
get() {
|
|
9471
9433
|
if (this._readableState === void 0) {
|
|
9472
9434
|
return false;
|
|
9473
9435
|
}
|
|
9474
9436
|
return this._readableState.destroyed;
|
|
9475
9437
|
},
|
|
9476
|
-
set
|
|
9438
|
+
set(value) {
|
|
9477
9439
|
if (!this._readableState) {
|
|
9478
9440
|
return;
|
|
9479
9441
|
}
|
|
@@ -9577,11 +9539,11 @@ var kubb = (function (exports) {
|
|
|
9577
9539
|
Readable.prototype.setEncoding = function(enc) {
|
|
9578
9540
|
if (!StringDecoder)
|
|
9579
9541
|
StringDecoder = require_string_decoder().StringDecoder;
|
|
9580
|
-
|
|
9542
|
+
const decoder = new StringDecoder(enc);
|
|
9581
9543
|
this._readableState.decoder = decoder;
|
|
9582
9544
|
this._readableState.encoding = this._readableState.decoder.encoding;
|
|
9583
|
-
|
|
9584
|
-
|
|
9545
|
+
let p = this._readableState.buffer.head;
|
|
9546
|
+
let content = "";
|
|
9585
9547
|
while (p !== null) {
|
|
9586
9548
|
content += decoder.write(p.data);
|
|
9587
9549
|
p = p.next;
|
|
@@ -9741,7 +9703,7 @@ var kubb = (function (exports) {
|
|
|
9741
9703
|
}
|
|
9742
9704
|
function maybeReadMore_(stream, state) {
|
|
9743
9705
|
while (!state.reading && !state.ended && (state.length < state.highWaterMark || state.flowing && state.length === 0)) {
|
|
9744
|
-
|
|
9706
|
+
const len = state.length;
|
|
9745
9707
|
debug("maybeReadMore read 0");
|
|
9746
9708
|
stream.read(0);
|
|
9747
9709
|
if (len === state.length)
|
|
@@ -9885,11 +9847,10 @@ var kubb = (function (exports) {
|
|
|
9885
9847
|
state.pipes = null;
|
|
9886
9848
|
state.pipesCount = 0;
|
|
9887
9849
|
state.flowing = false;
|
|
9888
|
-
for (var i = 0; i < len; i++)
|
|
9850
|
+
for (var i = 0; i < len; i++)
|
|
9889
9851
|
dests[i].emit("unpipe", this, {
|
|
9890
9852
|
hasUnpiped: false
|
|
9891
9853
|
});
|
|
9892
|
-
}
|
|
9893
9854
|
return this;
|
|
9894
9855
|
}
|
|
9895
9856
|
var index = indexOf(state.pipes, dest);
|
|
@@ -9903,8 +9864,8 @@ var kubb = (function (exports) {
|
|
|
9903
9864
|
return this;
|
|
9904
9865
|
};
|
|
9905
9866
|
Readable.prototype.on = function(ev, fn) {
|
|
9906
|
-
|
|
9907
|
-
|
|
9867
|
+
const res = Stream.prototype.on.call(this, ev, fn);
|
|
9868
|
+
const state = this._readableState;
|
|
9908
9869
|
if (ev === "data") {
|
|
9909
9870
|
state.readableListening = this.listenerCount("readable") > 0;
|
|
9910
9871
|
if (state.flowing !== false)
|
|
@@ -9926,21 +9887,21 @@ var kubb = (function (exports) {
|
|
|
9926
9887
|
};
|
|
9927
9888
|
Readable.prototype.addListener = Readable.prototype.on;
|
|
9928
9889
|
Readable.prototype.removeListener = function(ev, fn) {
|
|
9929
|
-
|
|
9890
|
+
const res = Stream.prototype.removeListener.call(this, ev, fn);
|
|
9930
9891
|
if (ev === "readable") {
|
|
9931
9892
|
define_process_default.nextTick(updateReadableListening, this);
|
|
9932
9893
|
}
|
|
9933
9894
|
return res;
|
|
9934
9895
|
};
|
|
9935
9896
|
Readable.prototype.removeAllListeners = function(ev) {
|
|
9936
|
-
|
|
9897
|
+
const res = Stream.prototype.removeAllListeners.apply(this, arguments);
|
|
9937
9898
|
if (ev === "readable" || ev === void 0) {
|
|
9938
9899
|
define_process_default.nextTick(updateReadableListening, this);
|
|
9939
9900
|
}
|
|
9940
9901
|
return res;
|
|
9941
9902
|
};
|
|
9942
9903
|
function updateReadableListening(self2) {
|
|
9943
|
-
|
|
9904
|
+
const state = self2._readableState;
|
|
9944
9905
|
state.readableListening = self2.listenerCount("readable") > 0;
|
|
9945
9906
|
if (state.resumeScheduled && !state.paused) {
|
|
9946
9907
|
state.flowing = true;
|
|
@@ -9990,25 +9951,24 @@ var kubb = (function (exports) {
|
|
|
9990
9951
|
return this;
|
|
9991
9952
|
};
|
|
9992
9953
|
function flow(stream) {
|
|
9993
|
-
|
|
9954
|
+
const state = stream._readableState;
|
|
9994
9955
|
debug("flow", state.flowing);
|
|
9995
|
-
while (state.flowing && stream.read() !== null)
|
|
9996
|
-
|
|
9956
|
+
while (state.flowing && stream.read() !== null)
|
|
9957
|
+
;
|
|
9997
9958
|
}
|
|
9998
9959
|
Readable.prototype.wrap = function(stream) {
|
|
9999
|
-
var _this = this;
|
|
10000
9960
|
var state = this._readableState;
|
|
10001
9961
|
var paused = false;
|
|
10002
|
-
stream.on("end",
|
|
9962
|
+
stream.on("end", () => {
|
|
10003
9963
|
debug("wrapped end");
|
|
10004
9964
|
if (state.decoder && !state.ended) {
|
|
10005
9965
|
var chunk = state.decoder.end();
|
|
10006
9966
|
if (chunk && chunk.length)
|
|
10007
|
-
|
|
9967
|
+
this.push(chunk);
|
|
10008
9968
|
}
|
|
10009
|
-
|
|
9969
|
+
this.push(null);
|
|
10010
9970
|
});
|
|
10011
|
-
stream.on("data",
|
|
9971
|
+
stream.on("data", (chunk) => {
|
|
10012
9972
|
debug("wrapped data");
|
|
10013
9973
|
if (state.decoder)
|
|
10014
9974
|
chunk = state.decoder.write(chunk);
|
|
@@ -10016,7 +9976,7 @@ var kubb = (function (exports) {
|
|
|
10016
9976
|
return;
|
|
10017
9977
|
else if (!state.objectMode && (!chunk || !chunk.length))
|
|
10018
9978
|
return;
|
|
10019
|
-
var ret =
|
|
9979
|
+
var ret = this.push(chunk);
|
|
10020
9980
|
if (!ret) {
|
|
10021
9981
|
paused = true;
|
|
10022
9982
|
stream.pause();
|
|
@@ -10034,7 +9994,7 @@ var kubb = (function (exports) {
|
|
|
10034
9994
|
for (var n = 0; n < kProxyEvents.length; n++) {
|
|
10035
9995
|
stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n]));
|
|
10036
9996
|
}
|
|
10037
|
-
this._read =
|
|
9997
|
+
this._read = (n2) => {
|
|
10038
9998
|
debug("wrapped _read", n2);
|
|
10039
9999
|
if (paused) {
|
|
10040
10000
|
paused = false;
|
|
@@ -10089,7 +10049,7 @@ var kubb = (function (exports) {
|
|
|
10089
10049
|
// because otherwise some prototype manipulation in
|
|
10090
10050
|
// userland will fail
|
|
10091
10051
|
enumerable: false,
|
|
10092
|
-
get
|
|
10052
|
+
get() {
|
|
10093
10053
|
return this._readableState.length;
|
|
10094
10054
|
}
|
|
10095
10055
|
});
|
|
@@ -10127,7 +10087,7 @@ var kubb = (function (exports) {
|
|
|
10127
10087
|
stream.readable = false;
|
|
10128
10088
|
stream.emit("end");
|
|
10129
10089
|
if (state.autoDestroy) {
|
|
10130
|
-
|
|
10090
|
+
const wState = stream._writableState;
|
|
10131
10091
|
if (!wState || wState.autoDestroy && wState.finished) {
|
|
10132
10092
|
stream.destroy();
|
|
10133
10093
|
}
|
|
@@ -10152,9 +10112,9 @@ var kubb = (function (exports) {
|
|
|
10152
10112
|
}
|
|
10153
10113
|
});
|
|
10154
10114
|
|
|
10155
|
-
// ../../node_modules/.pnpm/readable-stream@3.6.
|
|
10115
|
+
// ../../node_modules/.pnpm/readable-stream@3.6.1/node_modules/readable-stream/lib/_stream_transform.js
|
|
10156
10116
|
var require_stream_transform = __commonJS({
|
|
10157
|
-
"../../node_modules/.pnpm/readable-stream@3.6.
|
|
10117
|
+
"../../node_modules/.pnpm/readable-stream@3.6.1/node_modules/readable-stream/lib/_stream_transform.js"(exports, module) {
|
|
10158
10118
|
init_define_process();
|
|
10159
10119
|
module.exports = Transform;
|
|
10160
10120
|
var _require$codes = require_errors_browser().codes;
|
|
@@ -10205,10 +10165,9 @@ var kubb = (function (exports) {
|
|
|
10205
10165
|
this.on("prefinish", prefinish);
|
|
10206
10166
|
}
|
|
10207
10167
|
function prefinish() {
|
|
10208
|
-
var _this = this;
|
|
10209
10168
|
if (typeof this._flush === "function" && !this._readableState.destroyed) {
|
|
10210
|
-
this._flush(
|
|
10211
|
-
done(
|
|
10169
|
+
this._flush((er, data) => {
|
|
10170
|
+
done(this, er, data);
|
|
10212
10171
|
});
|
|
10213
10172
|
} else {
|
|
10214
10173
|
done(this, null, null);
|
|
@@ -10242,7 +10201,7 @@ var kubb = (function (exports) {
|
|
|
10242
10201
|
}
|
|
10243
10202
|
};
|
|
10244
10203
|
Transform.prototype._destroy = function(err, cb) {
|
|
10245
|
-
Duplex.prototype._destroy.call(this, err,
|
|
10204
|
+
Duplex.prototype._destroy.call(this, err, (err2) => {
|
|
10246
10205
|
cb(err2);
|
|
10247
10206
|
});
|
|
10248
10207
|
};
|
|
@@ -10260,9 +10219,9 @@ var kubb = (function (exports) {
|
|
|
10260
10219
|
}
|
|
10261
10220
|
});
|
|
10262
10221
|
|
|
10263
|
-
// ../../node_modules/.pnpm/readable-stream@3.6.
|
|
10222
|
+
// ../../node_modules/.pnpm/readable-stream@3.6.1/node_modules/readable-stream/lib/_stream_passthrough.js
|
|
10264
10223
|
var require_stream_passthrough = __commonJS({
|
|
10265
|
-
"../../node_modules/.pnpm/readable-stream@3.6.
|
|
10224
|
+
"../../node_modules/.pnpm/readable-stream@3.6.1/node_modules/readable-stream/lib/_stream_passthrough.js"(exports, module) {
|
|
10266
10225
|
init_define_process();
|
|
10267
10226
|
module.exports = PassThrough;
|
|
10268
10227
|
var Transform = require_stream_transform();
|
|
@@ -10278,18 +10237,18 @@ var kubb = (function (exports) {
|
|
|
10278
10237
|
}
|
|
10279
10238
|
});
|
|
10280
10239
|
|
|
10281
|
-
// ../../node_modules/.pnpm/readable-stream@3.6.
|
|
10240
|
+
// ../../node_modules/.pnpm/readable-stream@3.6.1/node_modules/readable-stream/lib/internal/streams/pipeline.js
|
|
10282
10241
|
var require_pipeline = __commonJS({
|
|
10283
|
-
"../../node_modules/.pnpm/readable-stream@3.6.
|
|
10242
|
+
"../../node_modules/.pnpm/readable-stream@3.6.1/node_modules/readable-stream/lib/internal/streams/pipeline.js"(exports, module) {
|
|
10284
10243
|
init_define_process();
|
|
10285
10244
|
var eos;
|
|
10286
10245
|
function once(callback) {
|
|
10287
|
-
|
|
10246
|
+
let called = false;
|
|
10288
10247
|
return function() {
|
|
10289
10248
|
if (called)
|
|
10290
10249
|
return;
|
|
10291
10250
|
called = true;
|
|
10292
|
-
callback
|
|
10251
|
+
callback(...arguments);
|
|
10293
10252
|
};
|
|
10294
10253
|
}
|
|
10295
10254
|
var _require$codes = require_errors_browser().codes;
|
|
@@ -10304,8 +10263,8 @@ var kubb = (function (exports) {
|
|
|
10304
10263
|
}
|
|
10305
10264
|
function destroyer(stream, reading, writing, callback) {
|
|
10306
10265
|
callback = once(callback);
|
|
10307
|
-
|
|
10308
|
-
stream.on("close",
|
|
10266
|
+
let closed = false;
|
|
10267
|
+
stream.on("close", () => {
|
|
10309
10268
|
closed = true;
|
|
10310
10269
|
});
|
|
10311
10270
|
if (eos === void 0)
|
|
@@ -10313,14 +10272,14 @@ var kubb = (function (exports) {
|
|
|
10313
10272
|
eos(stream, {
|
|
10314
10273
|
readable: reading,
|
|
10315
10274
|
writable: writing
|
|
10316
|
-
},
|
|
10275
|
+
}, (err) => {
|
|
10317
10276
|
if (err)
|
|
10318
10277
|
return callback(err);
|
|
10319
10278
|
closed = true;
|
|
10320
10279
|
callback();
|
|
10321
10280
|
});
|
|
10322
|
-
|
|
10323
|
-
return
|
|
10281
|
+
let destroyed = false;
|
|
10282
|
+
return (err) => {
|
|
10324
10283
|
if (closed)
|
|
10325
10284
|
return;
|
|
10326
10285
|
if (destroyed)
|
|
@@ -10350,16 +10309,16 @@ var kubb = (function (exports) {
|
|
|
10350
10309
|
for (var _len = arguments.length, streams = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
10351
10310
|
streams[_key] = arguments[_key];
|
|
10352
10311
|
}
|
|
10353
|
-
|
|
10312
|
+
const callback = popCallback(streams);
|
|
10354
10313
|
if (Array.isArray(streams[0]))
|
|
10355
10314
|
streams = streams[0];
|
|
10356
10315
|
if (streams.length < 2) {
|
|
10357
10316
|
throw new ERR_MISSING_ARGS("streams");
|
|
10358
10317
|
}
|
|
10359
|
-
|
|
10360
|
-
|
|
10361
|
-
|
|
10362
|
-
|
|
10318
|
+
let error;
|
|
10319
|
+
const destroys = streams.map(function(stream, i) {
|
|
10320
|
+
const reading = i < streams.length - 1;
|
|
10321
|
+
const writing = i > 0;
|
|
10363
10322
|
return destroyer(stream, reading, writing, function(err) {
|
|
10364
10323
|
if (!error)
|
|
10365
10324
|
error = err;
|
|
@@ -14330,18 +14289,18 @@ var kubb = (function (exports) {
|
|
|
14330
14289
|
}
|
|
14331
14290
|
});
|
|
14332
14291
|
|
|
14333
|
-
// ../../node_modules/.pnpm/minimatch@3.
|
|
14292
|
+
// ../../node_modules/.pnpm/minimatch@3.0.5/node_modules/minimatch/minimatch.js
|
|
14334
14293
|
var require_minimatch = __commonJS({
|
|
14335
|
-
"../../node_modules/.pnpm/minimatch@3.
|
|
14294
|
+
"../../node_modules/.pnpm/minimatch@3.0.5/node_modules/minimatch/minimatch.js"(exports, module) {
|
|
14336
14295
|
init_define_process();
|
|
14337
14296
|
module.exports = minimatch;
|
|
14338
14297
|
minimatch.Minimatch = Minimatch;
|
|
14339
|
-
var path =
|
|
14298
|
+
var path = (() => {
|
|
14340
14299
|
try {
|
|
14341
14300
|
return require_path_browserify();
|
|
14342
14301
|
} catch (e) {
|
|
14343
14302
|
}
|
|
14344
|
-
}() || {
|
|
14303
|
+
})() || {
|
|
14345
14304
|
sep: "/"
|
|
14346
14305
|
};
|
|
14347
14306
|
minimatch.sep = path.sep;
|
|
@@ -14374,8 +14333,9 @@ var kubb = (function (exports) {
|
|
|
14374
14333
|
};
|
|
14375
14334
|
}
|
|
14376
14335
|
function ext(a, b) {
|
|
14336
|
+
a = a || {};
|
|
14377
14337
|
b = b || {};
|
|
14378
|
-
|
|
14338
|
+
const t = {};
|
|
14379
14339
|
Object.keys(a).forEach(function(k) {
|
|
14380
14340
|
t[k] = a[k];
|
|
14381
14341
|
});
|
|
@@ -14388,14 +14348,14 @@ var kubb = (function (exports) {
|
|
|
14388
14348
|
if (!def || typeof def !== "object" || !Object.keys(def).length) {
|
|
14389
14349
|
return minimatch;
|
|
14390
14350
|
}
|
|
14391
|
-
|
|
14392
|
-
|
|
14351
|
+
const orig = minimatch;
|
|
14352
|
+
const m = function minimatch2(p, pattern, options) {
|
|
14393
14353
|
return orig(p, pattern, ext(def, options));
|
|
14394
14354
|
};
|
|
14395
14355
|
m.Minimatch = function Minimatch2(pattern, options) {
|
|
14396
14356
|
return new orig.Minimatch(pattern, ext(def, options));
|
|
14397
14357
|
};
|
|
14398
|
-
m.Minimatch.defaults =
|
|
14358
|
+
m.Minimatch.defaults = (options) => {
|
|
14399
14359
|
return orig.defaults(ext(def, options)).Minimatch;
|
|
14400
14360
|
};
|
|
14401
14361
|
m.filter = function filter2(pattern, options) {
|
|
@@ -14425,6 +14385,8 @@ var kubb = (function (exports) {
|
|
|
14425
14385
|
if (!options.nocomment && pattern.charAt(0) === "#") {
|
|
14426
14386
|
return false;
|
|
14427
14387
|
}
|
|
14388
|
+
if (pattern.trim() === "")
|
|
14389
|
+
return p === "";
|
|
14428
14390
|
return new Minimatch(pattern, options).match(p);
|
|
14429
14391
|
}
|
|
14430
14392
|
function Minimatch(pattern, options) {
|
|
@@ -14435,7 +14397,7 @@ var kubb = (function (exports) {
|
|
|
14435
14397
|
if (!options)
|
|
14436
14398
|
options = {};
|
|
14437
14399
|
pattern = pattern.trim();
|
|
14438
|
-
if (
|
|
14400
|
+
if (path.sep !== "/") {
|
|
14439
14401
|
pattern = pattern.split(path.sep).join("/");
|
|
14440
14402
|
}
|
|
14441
14403
|
this.options = options;
|
|
@@ -14445,13 +14407,14 @@ var kubb = (function (exports) {
|
|
|
14445
14407
|
this.negate = false;
|
|
14446
14408
|
this.comment = false;
|
|
14447
14409
|
this.empty = false;
|
|
14448
|
-
this.partial = !!options.partial;
|
|
14449
14410
|
this.make();
|
|
14450
14411
|
}
|
|
14451
14412
|
Minimatch.prototype.debug = function() {
|
|
14452
14413
|
};
|
|
14453
14414
|
Minimatch.prototype.make = make;
|
|
14454
14415
|
function make() {
|
|
14416
|
+
if (this._made)
|
|
14417
|
+
return;
|
|
14455
14418
|
var pattern = this.pattern;
|
|
14456
14419
|
var options = this.options;
|
|
14457
14420
|
if (!options.nocomment && pattern.charAt(0) === "#") {
|
|
@@ -14465,9 +14428,7 @@ var kubb = (function (exports) {
|
|
|
14465
14428
|
this.parseNegate();
|
|
14466
14429
|
var set = this.globSet = this.braceExpand();
|
|
14467
14430
|
if (options.debug)
|
|
14468
|
-
this.debug =
|
|
14469
|
-
console.error.apply(console, arguments);
|
|
14470
|
-
};
|
|
14431
|
+
this.debug = console.error;
|
|
14471
14432
|
this.debug(this.pattern, set);
|
|
14472
14433
|
set = this.globParts = set.map(function(s) {
|
|
14473
14434
|
return s.split(slashSplit);
|
|
@@ -14519,7 +14480,7 @@ var kubb = (function (exports) {
|
|
|
14519
14480
|
return expand(pattern);
|
|
14520
14481
|
}
|
|
14521
14482
|
var MAX_PATTERN_LENGTH = 1024 * 64;
|
|
14522
|
-
var assertValidPattern =
|
|
14483
|
+
var assertValidPattern = (pattern) => {
|
|
14523
14484
|
if (typeof pattern !== "string") {
|
|
14524
14485
|
throw new TypeError("invalid pattern");
|
|
14525
14486
|
}
|
|
@@ -14532,16 +14493,12 @@ var kubb = (function (exports) {
|
|
|
14532
14493
|
function parse(pattern, isSub) {
|
|
14533
14494
|
assertValidPattern(pattern);
|
|
14534
14495
|
var options = this.options;
|
|
14535
|
-
if (pattern === "**")
|
|
14536
|
-
|
|
14537
|
-
return GLOBSTAR;
|
|
14538
|
-
else
|
|
14539
|
-
pattern = "*";
|
|
14540
|
-
}
|
|
14496
|
+
if (!options.noglobstar && pattern === "**")
|
|
14497
|
+
return GLOBSTAR;
|
|
14541
14498
|
if (pattern === "")
|
|
14542
14499
|
return "";
|
|
14543
14500
|
var re = "";
|
|
14544
|
-
var hasMagic =
|
|
14501
|
+
var hasMagic = false;
|
|
14545
14502
|
var escaping = false;
|
|
14546
14503
|
var patternListStack = [];
|
|
14547
14504
|
var negativeLists = [];
|
|
@@ -14664,15 +14621,17 @@ var kubb = (function (exports) {
|
|
|
14664
14621
|
escaping = false;
|
|
14665
14622
|
continue;
|
|
14666
14623
|
}
|
|
14667
|
-
|
|
14668
|
-
|
|
14669
|
-
|
|
14670
|
-
|
|
14671
|
-
|
|
14672
|
-
|
|
14673
|
-
|
|
14674
|
-
|
|
14675
|
-
|
|
14624
|
+
if (inClass) {
|
|
14625
|
+
var cs = pattern.substring(classStart + 1, i);
|
|
14626
|
+
try {
|
|
14627
|
+
RegExp("[" + cs + "]");
|
|
14628
|
+
} catch (er) {
|
|
14629
|
+
var sp = this.parse(cs, SUBPARSE);
|
|
14630
|
+
re = re.substr(0, reClassStart) + "\\[" + sp[0] + "\\]";
|
|
14631
|
+
hasMagic = hasMagic || sp[1];
|
|
14632
|
+
inClass = false;
|
|
14633
|
+
continue;
|
|
14634
|
+
}
|
|
14676
14635
|
}
|
|
14677
14636
|
hasMagic = true;
|
|
14678
14637
|
inClass = false;
|
|
@@ -14714,8 +14673,8 @@ var kubb = (function (exports) {
|
|
|
14714
14673
|
}
|
|
14715
14674
|
var addPatternStart = false;
|
|
14716
14675
|
switch (re.charAt(0)) {
|
|
14717
|
-
case "[":
|
|
14718
14676
|
case ".":
|
|
14677
|
+
case "[":
|
|
14719
14678
|
case "(":
|
|
14720
14679
|
addPatternStart = true;
|
|
14721
14680
|
}
|
|
@@ -14793,7 +14752,7 @@ var kubb = (function (exports) {
|
|
|
14793
14752
|
}
|
|
14794
14753
|
minimatch.match = function(list, pattern, options) {
|
|
14795
14754
|
options = options || {};
|
|
14796
|
-
|
|
14755
|
+
const mm = new Minimatch(pattern, options);
|
|
14797
14756
|
list = list.filter(function(f) {
|
|
14798
14757
|
return mm.match(f);
|
|
14799
14758
|
});
|
|
@@ -14802,9 +14761,8 @@ var kubb = (function (exports) {
|
|
|
14802
14761
|
}
|
|
14803
14762
|
return list;
|
|
14804
14763
|
};
|
|
14805
|
-
Minimatch.prototype.match =
|
|
14806
|
-
|
|
14807
|
-
partial = this.partial;
|
|
14764
|
+
Minimatch.prototype.match = match;
|
|
14765
|
+
function match(f, partial) {
|
|
14808
14766
|
this.debug("match", f, this.pattern);
|
|
14809
14767
|
if (this.comment)
|
|
14810
14768
|
return false;
|
|
@@ -14843,7 +14801,7 @@ var kubb = (function (exports) {
|
|
|
14843
14801
|
if (options.flipNegate)
|
|
14844
14802
|
return false;
|
|
14845
14803
|
return this.negate;
|
|
14846
|
-
}
|
|
14804
|
+
}
|
|
14847
14805
|
Minimatch.prototype.matchOne = function(file, pattern, partial) {
|
|
14848
14806
|
var options = this.options;
|
|
14849
14807
|
this.debug(
|
|
@@ -14894,7 +14852,11 @@ var kubb = (function (exports) {
|
|
|
14894
14852
|
}
|
|
14895
14853
|
var hit;
|
|
14896
14854
|
if (typeof p === "string") {
|
|
14897
|
-
|
|
14855
|
+
if (options.nocase) {
|
|
14856
|
+
hit = f.toLowerCase() === p.toLowerCase();
|
|
14857
|
+
} else {
|
|
14858
|
+
hit = f === p;
|
|
14859
|
+
}
|
|
14898
14860
|
this.debug("string match", p, f, hit);
|
|
14899
14861
|
} else {
|
|
14900
14862
|
hit = f.match(p);
|
|
@@ -14941,10 +14903,12 @@ var kubb = (function (exports) {
|
|
|
14941
14903
|
}
|
|
14942
14904
|
});
|
|
14943
14905
|
|
|
14944
|
-
// ../../node_modules/.pnpm/glob@7.
|
|
14906
|
+
// ../../node_modules/.pnpm/glob@7.1.4/node_modules/glob/common.js
|
|
14945
14907
|
var require_common = __commonJS({
|
|
14946
|
-
"../../node_modules/.pnpm/glob@7.
|
|
14908
|
+
"../../node_modules/.pnpm/glob@7.1.4/node_modules/glob/common.js"(exports) {
|
|
14947
14909
|
init_define_process();
|
|
14910
|
+
exports.alphasort = alphasort;
|
|
14911
|
+
exports.alphasorti = alphasorti;
|
|
14948
14912
|
exports.setopts = setopts;
|
|
14949
14913
|
exports.ownProp = ownProp;
|
|
14950
14914
|
exports.makeAbs = makeAbs;
|
|
@@ -14955,13 +14919,15 @@ var kubb = (function (exports) {
|
|
|
14955
14919
|
function ownProp(obj, field) {
|
|
14956
14920
|
return Object.prototype.hasOwnProperty.call(obj, field);
|
|
14957
14921
|
}
|
|
14958
|
-
var fs3 = require_lib();
|
|
14959
14922
|
var path = require_path_browserify();
|
|
14960
14923
|
var minimatch = require_minimatch();
|
|
14961
14924
|
var isAbsolute = require_path_is_absolute();
|
|
14962
14925
|
var Minimatch = minimatch.Minimatch;
|
|
14926
|
+
function alphasorti(a, b) {
|
|
14927
|
+
return a.toLowerCase().localeCompare(b.toLowerCase());
|
|
14928
|
+
}
|
|
14963
14929
|
function alphasort(a, b) {
|
|
14964
|
-
return a.localeCompare(b
|
|
14930
|
+
return a.localeCompare(b);
|
|
14965
14931
|
}
|
|
14966
14932
|
function setupIgnores(self2, options) {
|
|
14967
14933
|
self2.ignore = options.ignore || [];
|
|
@@ -15010,7 +14976,6 @@ var kubb = (function (exports) {
|
|
|
15010
14976
|
self2.stat = !!options.stat;
|
|
15011
14977
|
self2.noprocess = !!options.noprocess;
|
|
15012
14978
|
self2.absolute = !!options.absolute;
|
|
15013
|
-
self2.fs = options.fs || fs3;
|
|
15014
14979
|
self2.maxLength = options.maxLength || Infinity;
|
|
15015
14980
|
self2.cache = options.cache || /* @__PURE__ */ Object.create(null);
|
|
15016
14981
|
self2.statCache = options.statCache || /* @__PURE__ */ Object.create(null);
|
|
@@ -15034,7 +14999,6 @@ var kubb = (function (exports) {
|
|
|
15034
14999
|
self2.nomount = !!options.nomount;
|
|
15035
15000
|
options.nonegate = true;
|
|
15036
15001
|
options.nocomment = true;
|
|
15037
|
-
options.allowWindowsEscape = false;
|
|
15038
15002
|
self2.minimatch = new Minimatch(pattern, options);
|
|
15039
15003
|
self2.options = self2.minimatch.options;
|
|
15040
15004
|
}
|
|
@@ -15064,7 +15028,7 @@ var kubb = (function (exports) {
|
|
|
15064
15028
|
if (!nou)
|
|
15065
15029
|
all = Object.keys(all);
|
|
15066
15030
|
if (!self2.nosort)
|
|
15067
|
-
all = all.sort(alphasort);
|
|
15031
|
+
all = all.sort(self2.nocase ? alphasorti : alphasort);
|
|
15068
15032
|
if (self2.mark) {
|
|
15069
15033
|
for (var i = 0; i < all.length; i++) {
|
|
15070
15034
|
all[i] = self2._mark(all[i]);
|
|
@@ -15136,12 +15100,13 @@ var kubb = (function (exports) {
|
|
|
15136
15100
|
}
|
|
15137
15101
|
});
|
|
15138
15102
|
|
|
15139
|
-
// ../../node_modules/.pnpm/glob@7.
|
|
15103
|
+
// ../../node_modules/.pnpm/glob@7.1.4/node_modules/glob/sync.js
|
|
15140
15104
|
var require_sync = __commonJS({
|
|
15141
|
-
"../../node_modules/.pnpm/glob@7.
|
|
15105
|
+
"../../node_modules/.pnpm/glob@7.1.4/node_modules/glob/sync.js"(exports, module) {
|
|
15142
15106
|
init_define_process();
|
|
15143
15107
|
module.exports = globSync;
|
|
15144
15108
|
globSync.GlobSync = GlobSync;
|
|
15109
|
+
var fs3 = require_lib();
|
|
15145
15110
|
var rp = require_fs();
|
|
15146
15111
|
var minimatch = require_minimatch();
|
|
15147
15112
|
minimatch.Minimatch;
|
|
@@ -15151,6 +15116,8 @@ var kubb = (function (exports) {
|
|
|
15151
15116
|
var assert = require_assert();
|
|
15152
15117
|
var isAbsolute = require_path_is_absolute();
|
|
15153
15118
|
var common = require_common();
|
|
15119
|
+
common.alphasort;
|
|
15120
|
+
common.alphasorti;
|
|
15154
15121
|
var setopts = common.setopts;
|
|
15155
15122
|
var ownProp = common.ownProp;
|
|
15156
15123
|
var childrenIgnored = common.childrenIgnored;
|
|
@@ -15178,7 +15145,7 @@ var kubb = (function (exports) {
|
|
|
15178
15145
|
this._finish();
|
|
15179
15146
|
}
|
|
15180
15147
|
GlobSync.prototype._finish = function() {
|
|
15181
|
-
assert
|
|
15148
|
+
assert(this instanceof GlobSync);
|
|
15182
15149
|
if (this.realpath) {
|
|
15183
15150
|
var self2 = this;
|
|
15184
15151
|
this.matches.forEach(function(matchset, index) {
|
|
@@ -15200,7 +15167,7 @@ var kubb = (function (exports) {
|
|
|
15200
15167
|
common.finish(this);
|
|
15201
15168
|
};
|
|
15202
15169
|
GlobSync.prototype._process = function(pattern, index, inGlobStar) {
|
|
15203
|
-
assert
|
|
15170
|
+
assert(this instanceof GlobSync);
|
|
15204
15171
|
var n = 0;
|
|
15205
15172
|
while (typeof pattern[n] === "string") {
|
|
15206
15173
|
n++;
|
|
@@ -15221,9 +15188,7 @@ var kubb = (function (exports) {
|
|
|
15221
15188
|
var read2;
|
|
15222
15189
|
if (prefix === null)
|
|
15223
15190
|
read2 = ".";
|
|
15224
|
-
else if (isAbsolute(prefix) || isAbsolute(pattern.
|
|
15225
|
-
return typeof p === "string" ? p : "[*]";
|
|
15226
|
-
}).join("/"))) {
|
|
15191
|
+
else if (isAbsolute(prefix) || isAbsolute(pattern.join("/"))) {
|
|
15227
15192
|
if (!prefix || !isAbsolute(prefix))
|
|
15228
15193
|
prefix = "/" + prefix;
|
|
15229
15194
|
read2 = prefix;
|
|
@@ -15318,7 +15283,7 @@ var kubb = (function (exports) {
|
|
|
15318
15283
|
var entries;
|
|
15319
15284
|
var lstat;
|
|
15320
15285
|
try {
|
|
15321
|
-
lstat =
|
|
15286
|
+
lstat = fs3.lstatSync(abs);
|
|
15322
15287
|
} catch (er) {
|
|
15323
15288
|
if (er.code === "ENOENT") {
|
|
15324
15289
|
return null;
|
|
@@ -15343,7 +15308,7 @@ var kubb = (function (exports) {
|
|
|
15343
15308
|
return c;
|
|
15344
15309
|
}
|
|
15345
15310
|
try {
|
|
15346
|
-
return this._readdirEntries(abs,
|
|
15311
|
+
return this._readdirEntries(abs, fs3.readdirSync(abs));
|
|
15347
15312
|
} catch (er) {
|
|
15348
15313
|
this._readdirError(abs, er);
|
|
15349
15314
|
return null;
|
|
@@ -15451,7 +15416,7 @@ var kubb = (function (exports) {
|
|
|
15451
15416
|
if (!stat) {
|
|
15452
15417
|
var lstat;
|
|
15453
15418
|
try {
|
|
15454
|
-
lstat =
|
|
15419
|
+
lstat = fs3.lstatSync(abs);
|
|
15455
15420
|
} catch (er) {
|
|
15456
15421
|
if (er && (er.code === "ENOENT" || er.code === "ENOTDIR")) {
|
|
15457
15422
|
this.statCache[abs] = false;
|
|
@@ -15460,7 +15425,7 @@ var kubb = (function (exports) {
|
|
|
15460
15425
|
}
|
|
15461
15426
|
if (lstat && lstat.isSymbolicLink()) {
|
|
15462
15427
|
try {
|
|
15463
|
-
stat =
|
|
15428
|
+
stat = fs3.statSync(abs);
|
|
15464
15429
|
} catch (er) {
|
|
15465
15430
|
stat = lstat;
|
|
15466
15431
|
}
|
|
@@ -15612,11 +15577,12 @@ var kubb = (function (exports) {
|
|
|
15612
15577
|
}
|
|
15613
15578
|
});
|
|
15614
15579
|
|
|
15615
|
-
// ../../node_modules/.pnpm/glob@7.
|
|
15580
|
+
// ../../node_modules/.pnpm/glob@7.1.4/node_modules/glob/glob.js
|
|
15616
15581
|
var require_glob = __commonJS({
|
|
15617
|
-
"../../node_modules/.pnpm/glob@7.
|
|
15582
|
+
"../../node_modules/.pnpm/glob@7.1.4/node_modules/glob/glob.js"(exports, module) {
|
|
15618
15583
|
init_define_process();
|
|
15619
15584
|
module.exports = glob;
|
|
15585
|
+
var fs3 = require_lib();
|
|
15620
15586
|
var rp = require_fs();
|
|
15621
15587
|
var minimatch = require_minimatch();
|
|
15622
15588
|
minimatch.Minimatch;
|
|
@@ -15627,6 +15593,8 @@ var kubb = (function (exports) {
|
|
|
15627
15593
|
var isAbsolute = require_path_is_absolute();
|
|
15628
15594
|
var globSync = require_sync();
|
|
15629
15595
|
var common = require_common();
|
|
15596
|
+
common.alphasort;
|
|
15597
|
+
common.alphasorti;
|
|
15630
15598
|
var setopts = common.setopts;
|
|
15631
15599
|
var ownProp = common.ownProp;
|
|
15632
15600
|
var inflight = require_inflight();
|
|
@@ -15846,9 +15814,7 @@ var kubb = (function (exports) {
|
|
|
15846
15814
|
var read2;
|
|
15847
15815
|
if (prefix === null)
|
|
15848
15816
|
read2 = ".";
|
|
15849
|
-
else if (isAbsolute(prefix) || isAbsolute(pattern.
|
|
15850
|
-
return typeof p === "string" ? p : "[*]";
|
|
15851
|
-
}).join("/"))) {
|
|
15817
|
+
else if (isAbsolute(prefix) || isAbsolute(pattern.join("/"))) {
|
|
15852
15818
|
if (!prefix || !isAbsolute(prefix))
|
|
15853
15819
|
prefix = "/" + prefix;
|
|
15854
15820
|
read2 = prefix;
|
|
@@ -15960,7 +15926,7 @@ var kubb = (function (exports) {
|
|
|
15960
15926
|
var self2 = this;
|
|
15961
15927
|
var lstatcb = inflight(lstatkey, lstatcb_);
|
|
15962
15928
|
if (lstatcb)
|
|
15963
|
-
|
|
15929
|
+
fs3.lstat(abs, lstatcb);
|
|
15964
15930
|
function lstatcb_(er, lstat) {
|
|
15965
15931
|
if (er && er.code === "ENOENT")
|
|
15966
15932
|
return cb();
|
|
@@ -15988,8 +15954,7 @@ var kubb = (function (exports) {
|
|
|
15988
15954
|
if (Array.isArray(c))
|
|
15989
15955
|
return cb(null, c);
|
|
15990
15956
|
}
|
|
15991
|
-
|
|
15992
|
-
self2.fs.readdir(abs, readdirCb(this, abs, cb));
|
|
15957
|
+
fs3.readdir(abs, readdirCb(this, abs, cb));
|
|
15993
15958
|
};
|
|
15994
15959
|
function readdirCb(self2, abs, cb) {
|
|
15995
15960
|
return function(er, entries) {
|
|
@@ -16132,10 +16097,10 @@ var kubb = (function (exports) {
|
|
|
16132
16097
|
var self2 = this;
|
|
16133
16098
|
var statcb = inflight("stat\0" + abs, lstatcb_);
|
|
16134
16099
|
if (statcb)
|
|
16135
|
-
|
|
16100
|
+
fs3.lstat(abs, statcb);
|
|
16136
16101
|
function lstatcb_(er, lstat) {
|
|
16137
16102
|
if (lstat && lstat.isSymbolicLink()) {
|
|
16138
|
-
return
|
|
16103
|
+
return fs3.stat(abs, function(er2, stat2) {
|
|
16139
16104
|
if (er2)
|
|
16140
16105
|
self2._stat2(f, abs, null, lstat, cb);
|
|
16141
16106
|
else
|