@datapos/datapos-tool-csv-parse 0.0.32 → 0.0.33
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.
|
@@ -46,12 +46,12 @@ function be(t, e, r, n, i) {
|
|
|
46
46
|
return (p ? -1 : 1) * s * Math.pow(2, o - n);
|
|
47
47
|
}
|
|
48
48
|
function ht(t, e, r, n, i, o) {
|
|
49
|
-
var s, f, u, l = o * 8 - i - 1, h = (1 << l) - 1, c = h >> 1, w = i === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, p = n ? 0 : o - 1, I = n ? 1 : -1,
|
|
49
|
+
var s, f, u, l = o * 8 - i - 1, h = (1 << l) - 1, c = h >> 1, w = i === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, p = n ? 0 : o - 1, I = n ? 1 : -1, m = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
|
|
50
50
|
for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (f = isNaN(e) ? 1 : 0, s = h) : (s = Math.floor(Math.log(e) / Math.LN2), e * (u = Math.pow(2, -s)) < 1 && (s--, u *= 2), s + c >= 1 ? e += w / u : e += w * Math.pow(2, 1 - c), e * u >= 2 && (s++, u /= 2), s + c >= h ? (f = 0, s = h) : s + c >= 1 ? (f = (e * u - 1) * Math.pow(2, i), s = s + c) : (f = e * Math.pow(2, c - 1) * Math.pow(2, i), s = 0)); i >= 8; t[r + p] = f & 255, p += I, f /= 256, i -= 8)
|
|
51
51
|
;
|
|
52
52
|
for (s = s << i | f, l += i; l > 0; t[r + p] = s & 255, p += I, s /= 256, l -= 8)
|
|
53
53
|
;
|
|
54
|
-
t[r + p - I] |=
|
|
54
|
+
t[r + p - I] |= m * 128;
|
|
55
55
|
}
|
|
56
56
|
var Kt = {}.toString, ct = Array.isArray || function(t) {
|
|
57
57
|
return Kt.call(t) == "[object Array]";
|
|
@@ -118,7 +118,7 @@ a.allocUnsafeSlow = function(t) {
|
|
|
118
118
|
function rr(t, e, r) {
|
|
119
119
|
if ((typeof r != "string" || r === "") && (r = "utf8"), !a.isEncoding(r))
|
|
120
120
|
throw new TypeError('"encoding" must be a valid string encoding');
|
|
121
|
-
var n =
|
|
121
|
+
var n = gt(e, r) | 0;
|
|
122
122
|
t = q(t, n);
|
|
123
123
|
var i = t.write(e, r);
|
|
124
124
|
return i !== n && (t = t.slice(0, i)), t;
|
|
@@ -206,7 +206,7 @@ a.concat = function(e, r) {
|
|
|
206
206
|
}
|
|
207
207
|
return i;
|
|
208
208
|
};
|
|
209
|
-
function
|
|
209
|
+
function gt(t, e) {
|
|
210
210
|
if ($(t))
|
|
211
211
|
return t.length;
|
|
212
212
|
if (typeof ArrayBuffer < "u" && typeof ArrayBuffer.isView == "function" && (ArrayBuffer.isView(t) || t instanceof ArrayBuffer))
|
|
@@ -238,7 +238,7 @@ function mt(t, e) {
|
|
|
238
238
|
e = ("" + e).toLowerCase(), n = !0;
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
|
-
a.byteLength =
|
|
241
|
+
a.byteLength = gt;
|
|
242
242
|
function or(t, e, r) {
|
|
243
243
|
var n = !1;
|
|
244
244
|
if ((e === void 0 || e < 0) && (e = 0), e > this.length || ((r === void 0 || r > this.length) && (r = this.length), r <= 0) || (r >>>= 0, e >>>= 0, r <= e))
|
|
@@ -246,7 +246,7 @@ function or(t, e, r) {
|
|
|
246
246
|
for (t || (t = "utf8"); ; )
|
|
247
247
|
switch (t) {
|
|
248
248
|
case "hex":
|
|
249
|
-
return
|
|
249
|
+
return gr(this, e, r);
|
|
250
250
|
case "utf8":
|
|
251
251
|
case "utf-8":
|
|
252
252
|
return wt(this, e, r);
|
|
@@ -261,7 +261,7 @@ function or(t, e, r) {
|
|
|
261
261
|
case "ucs-2":
|
|
262
262
|
case "utf16le":
|
|
263
263
|
case "utf-16le":
|
|
264
|
-
return
|
|
264
|
+
return mr(this, e, r);
|
|
265
265
|
default:
|
|
266
266
|
if (n) throw new TypeError("Unknown encoding: " + t);
|
|
267
267
|
t = (t + "").toLowerCase(), n = !0;
|
|
@@ -327,7 +327,7 @@ a.prototype.compare = function(e, r, n, i, o) {
|
|
|
327
327
|
}
|
|
328
328
|
return s < f ? -1 : f < s ? 1 : 0;
|
|
329
329
|
};
|
|
330
|
-
function
|
|
330
|
+
function mt(t, e, r, n, i) {
|
|
331
331
|
if (t.length === 0) return -1;
|
|
332
332
|
if (typeof r == "string" ? (n = r, r = 0) : r > 2147483647 ? r = 2147483647 : r < -2147483648 && (r = -2147483648), r = +r, isNaN(r) && (r = i ? 0 : t.length - 1), r < 0 && (r = t.length + r), r >= t.length) {
|
|
333
333
|
if (i) return -1;
|
|
@@ -374,10 +374,10 @@ a.prototype.includes = function(e, r, n) {
|
|
|
374
374
|
return this.indexOf(e, r, n) !== -1;
|
|
375
375
|
};
|
|
376
376
|
a.prototype.indexOf = function(e, r, n) {
|
|
377
|
-
return
|
|
377
|
+
return mt(this, e, r, n, !0);
|
|
378
378
|
};
|
|
379
379
|
a.prototype.lastIndexOf = function(e, r, n) {
|
|
380
|
-
return
|
|
380
|
+
return mt(this, e, r, n, !1);
|
|
381
381
|
};
|
|
382
382
|
function sr(t, e, r, n) {
|
|
383
383
|
r = Number(r) || 0;
|
|
@@ -506,14 +506,14 @@ function pr(t, e, r) {
|
|
|
506
506
|
n += String.fromCharCode(t[i]);
|
|
507
507
|
return n;
|
|
508
508
|
}
|
|
509
|
-
function
|
|
509
|
+
function gr(t, e, r) {
|
|
510
510
|
var n = t.length;
|
|
511
511
|
(!e || e < 0) && (e = 0), (!r || r < 0 || r > n) && (r = n);
|
|
512
512
|
for (var i = "", o = e; o < r; ++o)
|
|
513
513
|
i += br(t[o]);
|
|
514
514
|
return i;
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function mr(t, e, r) {
|
|
517
517
|
for (var n = t.slice(e, r), i = "", o = 0; o < n.length; o += 2)
|
|
518
518
|
i += String.fromCharCode(n[o] + n[o + 1] * 256);
|
|
519
519
|
return i;
|
|
@@ -859,27 +859,27 @@ var Oe;
|
|
|
859
859
|
function Q() {
|
|
860
860
|
}
|
|
861
861
|
Q.prototype = /* @__PURE__ */ Object.create(null);
|
|
862
|
-
function
|
|
863
|
-
|
|
864
|
-
}
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
this.domain = null,
|
|
873
|
-
};
|
|
874
|
-
|
|
862
|
+
function g() {
|
|
863
|
+
g.init.call(this);
|
|
864
|
+
}
|
|
865
|
+
g.EventEmitter = g;
|
|
866
|
+
g.usingDomains = !1;
|
|
867
|
+
g.prototype.domain = void 0;
|
|
868
|
+
g.prototype._events = void 0;
|
|
869
|
+
g.prototype._maxListeners = void 0;
|
|
870
|
+
g.defaultMaxListeners = 10;
|
|
871
|
+
g.init = function() {
|
|
872
|
+
this.domain = null, g.usingDomains && Oe.active && !(this instanceof Oe.Domain) && (this.domain = Oe.active), (!this._events || this._events === Object.getPrototypeOf(this)._events) && (this._events = new Q(), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
|
|
873
|
+
};
|
|
874
|
+
g.prototype.setMaxListeners = function(e) {
|
|
875
875
|
if (typeof e != "number" || e < 0 || isNaN(e))
|
|
876
876
|
throw new TypeError('"n" argument must be a positive number');
|
|
877
877
|
return this._maxListeners = e, this;
|
|
878
878
|
};
|
|
879
879
|
function St(t) {
|
|
880
|
-
return t._maxListeners === void 0 ?
|
|
880
|
+
return t._maxListeners === void 0 ? g.defaultMaxListeners : t._maxListeners;
|
|
881
881
|
}
|
|
882
|
-
|
|
882
|
+
g.prototype.getMaxListeners = function() {
|
|
883
883
|
return St(this);
|
|
884
884
|
};
|
|
885
885
|
function Rr(t, e, r) {
|
|
@@ -917,7 +917,7 @@ function Tr(t, e, r, n) {
|
|
|
917
917
|
for (var i = t.length, o = ae(t, i), s = 0; s < i; ++s)
|
|
918
918
|
o[s].apply(r, n);
|
|
919
919
|
}
|
|
920
|
-
|
|
920
|
+
g.prototype.emit = function(e) {
|
|
921
921
|
var r, n, i, o, s, f, u, l = e === "error";
|
|
922
922
|
if (f = this._events, f)
|
|
923
923
|
l = l && f.error == null;
|
|
@@ -979,11 +979,11 @@ function Rt(t, e, r, n) {
|
|
|
979
979
|
function Ar(t) {
|
|
980
980
|
typeof console.warn == "function" ? console.warn(t) : console.log(t);
|
|
981
981
|
}
|
|
982
|
-
|
|
982
|
+
g.prototype.addListener = function(e, r) {
|
|
983
983
|
return Rt(this, e, r, !1);
|
|
984
984
|
};
|
|
985
|
-
|
|
986
|
-
|
|
985
|
+
g.prototype.on = g.prototype.addListener;
|
|
986
|
+
g.prototype.prependListener = function(e, r) {
|
|
987
987
|
return Rt(this, e, r, !0);
|
|
988
988
|
};
|
|
989
989
|
function It(t, e, r) {
|
|
@@ -993,17 +993,17 @@ function It(t, e, r) {
|
|
|
993
993
|
}
|
|
994
994
|
return i.listener = r, i;
|
|
995
995
|
}
|
|
996
|
-
|
|
996
|
+
g.prototype.once = function(e, r) {
|
|
997
997
|
if (typeof r != "function")
|
|
998
998
|
throw new TypeError('"listener" argument must be a function');
|
|
999
999
|
return this.on(e, It(this, e, r)), this;
|
|
1000
1000
|
};
|
|
1001
|
-
|
|
1001
|
+
g.prototype.prependOnceListener = function(e, r) {
|
|
1002
1002
|
if (typeof r != "function")
|
|
1003
1003
|
throw new TypeError('"listener" argument must be a function');
|
|
1004
1004
|
return this.prependListener(e, It(this, e, r)), this;
|
|
1005
1005
|
};
|
|
1006
|
-
|
|
1006
|
+
g.prototype.removeListener = function(e, r) {
|
|
1007
1007
|
var n, i, o, s, f;
|
|
1008
1008
|
if (typeof r != "function")
|
|
1009
1009
|
throw new TypeError('"listener" argument must be a function');
|
|
@@ -1031,7 +1031,7 @@ m.prototype.removeListener = function(e, r) {
|
|
|
1031
1031
|
}
|
|
1032
1032
|
return this;
|
|
1033
1033
|
};
|
|
1034
|
-
|
|
1034
|
+
g.prototype.removeAllListeners = function(e) {
|
|
1035
1035
|
var r, n;
|
|
1036
1036
|
if (n = this._events, !n)
|
|
1037
1037
|
return this;
|
|
@@ -1050,14 +1050,14 @@ m.prototype.removeAllListeners = function(e) {
|
|
|
1050
1050
|
while (r[0]);
|
|
1051
1051
|
return this;
|
|
1052
1052
|
};
|
|
1053
|
-
|
|
1053
|
+
g.prototype.listeners = function(e) {
|
|
1054
1054
|
var r, n, i = this._events;
|
|
1055
1055
|
return i ? (r = i[e], r ? typeof r == "function" ? n = [r.listener || r] : n = Nr(r) : n = []) : n = [], n;
|
|
1056
1056
|
};
|
|
1057
|
-
|
|
1057
|
+
g.listenerCount = function(t, e) {
|
|
1058
1058
|
return typeof t.listenerCount == "function" ? t.listenerCount(e) : Ot.call(t, e);
|
|
1059
1059
|
};
|
|
1060
|
-
|
|
1060
|
+
g.prototype.listenerCount = Ot;
|
|
1061
1061
|
function Ot(t) {
|
|
1062
1062
|
var e = this._events;
|
|
1063
1063
|
if (e) {
|
|
@@ -1069,7 +1069,7 @@ function Ot(t) {
|
|
|
1069
1069
|
}
|
|
1070
1070
|
return 0;
|
|
1071
1071
|
}
|
|
1072
|
-
|
|
1072
|
+
g.prototype.eventNames = function() {
|
|
1073
1073
|
return this._eventsCount > 0 ? Reflect.ownKeys(this._events) : [];
|
|
1074
1074
|
};
|
|
1075
1075
|
function Lr(t, e) {
|
|
@@ -1126,18 +1126,18 @@ function Dr(t) {
|
|
|
1126
1126
|
}
|
|
1127
1127
|
}
|
|
1128
1128
|
}
|
|
1129
|
-
var z = [], ne = !1, ee,
|
|
1129
|
+
var z = [], ne = !1, ee, ge = -1;
|
|
1130
1130
|
function Fr() {
|
|
1131
|
-
!ne || !ee || (ne = !1, ee.length ? z = ee.concat(z) :
|
|
1131
|
+
!ne || !ee || (ne = !1, ee.length ? z = ee.concat(z) : ge = -1, z.length && Lt());
|
|
1132
1132
|
}
|
|
1133
1133
|
function Lt() {
|
|
1134
1134
|
if (!ne) {
|
|
1135
1135
|
var t = At(Fr);
|
|
1136
1136
|
ne = !0;
|
|
1137
1137
|
for (var e = z.length; e; ) {
|
|
1138
|
-
for (ee = z, z = []; ++
|
|
1139
|
-
ee && ee[
|
|
1140
|
-
|
|
1138
|
+
for (ee = z, z = []; ++ge < e; )
|
|
1139
|
+
ee && ee[ge].run();
|
|
1140
|
+
ge = -1, e = z.length;
|
|
1141
1141
|
}
|
|
1142
1142
|
ee = null, ne = !1, Dr(t);
|
|
1143
1143
|
}
|
|
@@ -1157,7 +1157,7 @@ Nt.prototype.run = function() {
|
|
|
1157
1157
|
};
|
|
1158
1158
|
var Mr = {}, se = ie.performance || {};
|
|
1159
1159
|
se.now || se.mozNow || se.msNow || se.oNow || se.webkitNow;
|
|
1160
|
-
var
|
|
1160
|
+
var me = {
|
|
1161
1161
|
env: Mr
|
|
1162
1162
|
}, Ue;
|
|
1163
1163
|
typeof Object.create == "function" ? Ue = function(e, r) {
|
|
@@ -1208,14 +1208,14 @@ function Dt(t, e) {
|
|
|
1208
1208
|
return function() {
|
|
1209
1209
|
return Dt(t, e).apply(this, arguments);
|
|
1210
1210
|
};
|
|
1211
|
-
if (
|
|
1211
|
+
if (me.noDeprecation === !0)
|
|
1212
1212
|
return t;
|
|
1213
1213
|
var r = !1;
|
|
1214
1214
|
function n() {
|
|
1215
1215
|
if (!r) {
|
|
1216
|
-
if (
|
|
1216
|
+
if (me.throwDeprecation)
|
|
1217
1217
|
throw new Error(e);
|
|
1218
|
-
|
|
1218
|
+
me.traceDeprecation ? console.trace(e) : console.error(e), r = !0;
|
|
1219
1219
|
}
|
|
1220
1220
|
return t.apply(this, arguments);
|
|
1221
1221
|
}
|
|
@@ -1223,7 +1223,7 @@ function Dt(t, e) {
|
|
|
1223
1223
|
}
|
|
1224
1224
|
var pe = {}, Ce;
|
|
1225
1225
|
function kr(t) {
|
|
1226
|
-
if (H(Ce) && (Ce =
|
|
1226
|
+
if (H(Ce) && (Ce = me.env.NODE_DEBUG || ""), t = t.toUpperCase(), !pe[t])
|
|
1227
1227
|
if (new RegExp("\\b" + t + "\\b", "i").test(Ce)) {
|
|
1228
1228
|
var e = 0;
|
|
1229
1229
|
pe[t] = function() {
|
|
@@ -1567,7 +1567,7 @@ function Xr(t) {
|
|
|
1567
1567
|
}
|
|
1568
1568
|
x.ReadableState = Bt;
|
|
1569
1569
|
var v = kr("stream");
|
|
1570
|
-
oe(x,
|
|
1570
|
+
oe(x, g);
|
|
1571
1571
|
function Kr(t, e, r) {
|
|
1572
1572
|
if (typeof t.prependListener == "function")
|
|
1573
1573
|
return t.prependListener(e, r);
|
|
@@ -1583,7 +1583,7 @@ function Bt(t, e) {
|
|
|
1583
1583
|
}
|
|
1584
1584
|
function x(t) {
|
|
1585
1585
|
if (!(this instanceof x)) return new x(t);
|
|
1586
|
-
this._readableState = new Bt(t, this), this.readable = !0, t && typeof t.read == "function" && (this._read = t.read),
|
|
1586
|
+
this._readableState = new Bt(t, this), this.readable = !0, t && typeof t.read == "function" && (this._read = t.read), g.call(this);
|
|
1587
1587
|
}
|
|
1588
1588
|
x.prototype.push = function(t, e) {
|
|
1589
1589
|
var r = this._readableState;
|
|
@@ -1698,7 +1698,7 @@ x.prototype.pipe = function(t, e) {
|
|
|
1698
1698
|
t.on("drain", u);
|
|
1699
1699
|
var l = !1;
|
|
1700
1700
|
function h() {
|
|
1701
|
-
v("cleanup"), t.removeListener("close", I), t.removeListener("finish",
|
|
1701
|
+
v("cleanup"), t.removeListener("close", I), t.removeListener("finish", m), t.removeListener("drain", u), t.removeListener("error", p), t.removeListener("unpipe", s), r.removeListener("end", f), r.removeListener("end", h), r.removeListener("data", w), l = !0, n.awaitDrain && (!t._writableState || t._writableState.needDrain) && u();
|
|
1702
1702
|
}
|
|
1703
1703
|
var c = !1;
|
|
1704
1704
|
r.on("data", w);
|
|
@@ -1712,13 +1712,13 @@ x.prototype.pipe = function(t, e) {
|
|
|
1712
1712
|
}
|
|
1713
1713
|
Kr(t, "error", p);
|
|
1714
1714
|
function I() {
|
|
1715
|
-
t.removeListener("finish",
|
|
1715
|
+
t.removeListener("finish", m), D();
|
|
1716
1716
|
}
|
|
1717
1717
|
t.once("close", I);
|
|
1718
|
-
function
|
|
1718
|
+
function m() {
|
|
1719
1719
|
v("onfinish"), t.removeListener("close", I), D();
|
|
1720
1720
|
}
|
|
1721
|
-
t.once("finish",
|
|
1721
|
+
t.once("finish", m);
|
|
1722
1722
|
function D() {
|
|
1723
1723
|
v("unpipe"), r.unpipe(t);
|
|
1724
1724
|
}
|
|
@@ -1746,7 +1746,7 @@ x.prototype.unpipe = function(t) {
|
|
|
1746
1746
|
return o === -1 ? this : (e.pipes.splice(o, 1), e.pipesCount -= 1, e.pipesCount === 1 && (e.pipes = e.pipes[0]), t.emit("unpipe", this), this);
|
|
1747
1747
|
};
|
|
1748
1748
|
x.prototype.on = function(t, e) {
|
|
1749
|
-
var r =
|
|
1749
|
+
var r = g.prototype.on.call(this, t, e);
|
|
1750
1750
|
if (t === "data")
|
|
1751
1751
|
this._readableState.flowing !== !1 && this.resume();
|
|
1752
1752
|
else if (t === "readable") {
|
|
@@ -1798,7 +1798,7 @@ x.prototype.wrap = function(t) {
|
|
|
1798
1798
|
};
|
|
1799
1799
|
})(i));
|
|
1800
1800
|
var o = ["error", "close", "destroy", "pause", "resume"];
|
|
1801
|
-
return
|
|
1801
|
+
return mn(o, function(s) {
|
|
1802
1802
|
t.on(s, n.emit.bind(n, s));
|
|
1803
1803
|
}), n._read = function(s) {
|
|
1804
1804
|
v("wrapped _read", s), r && (r = !1, t.resume());
|
|
@@ -1841,12 +1841,12 @@ function pn(t, e) {
|
|
|
1841
1841
|
function De(t) {
|
|
1842
1842
|
var e = t._readableState;
|
|
1843
1843
|
if (e.length > 0) throw new Error('"endReadable()" called on non-empty stream');
|
|
1844
|
-
e.endEmitted || (e.ended = !0, B(
|
|
1844
|
+
e.endEmitted || (e.ended = !0, B(gn, e, t));
|
|
1845
1845
|
}
|
|
1846
|
-
function
|
|
1846
|
+
function gn(t, e) {
|
|
1847
1847
|
!t.endEmitted && t.length === 0 && (t.endEmitted = !0, e.readable = !1, e.emit("end"));
|
|
1848
1848
|
}
|
|
1849
|
-
function
|
|
1849
|
+
function mn(t, e) {
|
|
1850
1850
|
for (var r = 0, n = t.length; r < n; r++)
|
|
1851
1851
|
e(t[r], r);
|
|
1852
1852
|
}
|
|
@@ -1856,7 +1856,7 @@ function Pt(t, e) {
|
|
|
1856
1856
|
return -1;
|
|
1857
1857
|
}
|
|
1858
1858
|
T.WritableState = We;
|
|
1859
|
-
oe(T,
|
|
1859
|
+
oe(T, g);
|
|
1860
1860
|
function _n() {
|
|
1861
1861
|
}
|
|
1862
1862
|
function wn(t, e, r) {
|
|
@@ -1882,7 +1882,7 @@ We.prototype.getBuffer = function() {
|
|
|
1882
1882
|
};
|
|
1883
1883
|
function T(t) {
|
|
1884
1884
|
if (!(this instanceof T) && !(this instanceof M)) return new T(t);
|
|
1885
|
-
this._writableState = new We(t, this), this.writable = !0, t && (typeof t.write == "function" && (this._write = t.write), typeof t.writev == "function" && (this._writev = t.writev)),
|
|
1885
|
+
this._writableState = new We(t, this), this.writable = !0, t && (typeof t.write == "function" && (this._write = t.write), typeof t.writev == "function" && (this._writev = t.writev)), g.call(this);
|
|
1886
1886
|
}
|
|
1887
1887
|
T.prototype.pipe = function() {
|
|
1888
1888
|
this.emit("error", new Error("Cannot pipe, not readable"));
|
|
@@ -2073,7 +2073,7 @@ function fe(t) {
|
|
|
2073
2073
|
fe.prototype._transform = function(t, e, r) {
|
|
2074
2074
|
r(null, t);
|
|
2075
2075
|
};
|
|
2076
|
-
oe(V,
|
|
2076
|
+
oe(V, g);
|
|
2077
2077
|
V.Readable = x;
|
|
2078
2078
|
V.Writable = T;
|
|
2079
2079
|
V.Duplex = M;
|
|
@@ -2081,7 +2081,7 @@ V.Transform = k;
|
|
|
2081
2081
|
V.PassThrough = fe;
|
|
2082
2082
|
V.Stream = V;
|
|
2083
2083
|
function V() {
|
|
2084
|
-
|
|
2084
|
+
g.call(this);
|
|
2085
2085
|
}
|
|
2086
2086
|
V.prototype.pipe = function(t, e) {
|
|
2087
2087
|
var r = this;
|
|
@@ -2101,7 +2101,7 @@ V.prototype.pipe = function(t, e) {
|
|
|
2101
2101
|
o || (o = !0, typeof t.destroy == "function" && t.destroy());
|
|
2102
2102
|
}
|
|
2103
2103
|
function u(h) {
|
|
2104
|
-
if (l(),
|
|
2104
|
+
if (l(), g.listenerCount(this, "error") === 0)
|
|
2105
2105
|
throw h;
|
|
2106
2106
|
}
|
|
2107
2107
|
r.on("error", u), t.on("error", u);
|
|
@@ -2693,7 +2693,7 @@ const Nn = 12, Dn = 13, Fn = 10, Mn = 32, Bn = 9, Un = function(t) {
|
|
|
2693
2693
|
max_record_size: w,
|
|
2694
2694
|
raw: p,
|
|
2695
2695
|
relax_quotes: I,
|
|
2696
|
-
rtrim:
|
|
2696
|
+
rtrim: m,
|
|
2697
2697
|
skip_empty_lines: D,
|
|
2698
2698
|
to: S,
|
|
2699
2699
|
to_line: E
|
|
@@ -2759,7 +2759,7 @@ const Nn = 12, Dn = 13, Fn = 10, Mn = 32, Bn = 9, Un = function(t) {
|
|
|
2759
2759
|
}
|
|
2760
2760
|
if (this.state.commenting === !1 && this.__isQuote(b, d))
|
|
2761
2761
|
if (this.state.quoting === !0) {
|
|
2762
|
-
const O = b[d + U.length], Z =
|
|
2762
|
+
const O = b[d + U.length], Z = m && this.__isCharTrimable(b, d + U.length), j = y !== null && this.__compareBytes(y, b, d + U.length, O), X = this.__isDelimiter(
|
|
2763
2763
|
b,
|
|
2764
2764
|
d + U.length,
|
|
2765
2765
|
O
|
|
@@ -2874,11 +2874,11 @@ const Nn = 12, Dn = 13, Fn = 10, Mn = 32, Bn = 9, Un = function(t) {
|
|
|
2874
2874
|
this.__infoField()
|
|
2875
2875
|
)
|
|
2876
2876
|
);
|
|
2877
|
-
const J = c === !1 || this.state.quoting === !0 || this.state.field.length !== 0 || !this.__isCharTrimable(b, d), ce =
|
|
2877
|
+
const J = c === !1 || this.state.quoting === !0 || this.state.field.length !== 0 || !this.__isCharTrimable(b, d), ce = m === !1 || this.state.wasQuoting === !1;
|
|
2878
2878
|
if (J === !0 && ce === !0)
|
|
2879
2879
|
this.state.field.append(R);
|
|
2880
2880
|
else {
|
|
2881
|
-
if (
|
|
2881
|
+
if (m === !0 && !this.__isCharTrimable(b, d))
|
|
2882
2882
|
return this.__error(
|
|
2883
2883
|
new _(
|
|
2884
2884
|
"CSV_NON_TRIMABLE_CHAR_AFTER_CLOSING_QUOTE",
|
|
@@ -2932,16 +2932,16 @@ const Nn = 12, Dn = 13, Fn = 10, Mn = 32, Bn = 9, Un = function(t) {
|
|
|
2932
2932
|
relax_column_count_more: c,
|
|
2933
2933
|
raw: w,
|
|
2934
2934
|
skip_records_with_empty_values: p
|
|
2935
|
-
} = this.options, { enabled: I, record:
|
|
2935
|
+
} = this.options, { enabled: I, record: m } = this.state;
|
|
2936
2936
|
if (I === !1)
|
|
2937
2937
|
return this.__resetRecord();
|
|
2938
|
-
const D =
|
|
2938
|
+
const D = m.length;
|
|
2939
2939
|
if (i === !0) {
|
|
2940
|
-
if (p === !0 && at(
|
|
2940
|
+
if (p === !0 && at(m)) {
|
|
2941
2941
|
this.__resetRecord();
|
|
2942
2942
|
return;
|
|
2943
2943
|
}
|
|
2944
|
-
return this.__firstLineToColumns(
|
|
2944
|
+
return this.__firstLineToColumns(m);
|
|
2945
2945
|
}
|
|
2946
2946
|
if (i === !1 && this.info.records === 0 && (this.state.expectedRecordLength = D), D !== this.state.expectedRecordLength) {
|
|
2947
2947
|
const S = i === !1 ? new _(
|
|
@@ -2954,7 +2954,7 @@ const Nn = 12, Dn = 13, Fn = 10, Mn = 32, Bn = 9, Un = function(t) {
|
|
|
2954
2954
|
this.options,
|
|
2955
2955
|
this.__infoField(),
|
|
2956
2956
|
{
|
|
2957
|
-
record:
|
|
2957
|
+
record: m
|
|
2958
2958
|
}
|
|
2959
2959
|
) : new _(
|
|
2960
2960
|
"CSV_RECORD_INCONSISTENT_COLUMNS",
|
|
@@ -2967,7 +2967,7 @@ const Nn = 12, Dn = 13, Fn = 10, Mn = 32, Bn = 9, Un = function(t) {
|
|
|
2967
2967
|
this.options,
|
|
2968
2968
|
this.__infoField(),
|
|
2969
2969
|
{
|
|
2970
|
-
record:
|
|
2970
|
+
record: m
|
|
2971
2971
|
}
|
|
2972
2972
|
);
|
|
2973
2973
|
if (l === !0 || h === !0 && D < this.state.expectedRecordLength || c === !0 && D > this.state.expectedRecordLength)
|
|
@@ -2977,7 +2977,7 @@ const Nn = 12, Dn = 13, Fn = 10, Mn = 32, Bn = 9, Un = function(t) {
|
|
|
2977
2977
|
if (E) return E;
|
|
2978
2978
|
}
|
|
2979
2979
|
}
|
|
2980
|
-
if (p === !0 && at(
|
|
2980
|
+
if (p === !0 && at(m)) {
|
|
2981
2981
|
this.__resetRecord();
|
|
2982
2982
|
return;
|
|
2983
2983
|
}
|
|
@@ -2989,8 +2989,8 @@ const Nn = 12, Dn = 13, Fn = 10, Mn = 32, Bn = 9, Un = function(t) {
|
|
|
2989
2989
|
const { objname: S } = this.options;
|
|
2990
2990
|
if (i !== !1) {
|
|
2991
2991
|
const E = {};
|
|
2992
|
-
for (let y = 0, A =
|
|
2993
|
-
i[y] === void 0 || i[y].disabled || (o === !0 && E[i[y].name] !== void 0 ? Array.isArray(E[i[y].name]) ? E[i[y].name] = E[i[y].name].concat(
|
|
2992
|
+
for (let y = 0, A = m.length; y < A; y++)
|
|
2993
|
+
i[y] === void 0 || i[y].disabled || (o === !0 && E[i[y].name] !== void 0 ? Array.isArray(E[i[y].name]) ? E[i[y].name] = E[i[y].name].concat(m[y]) : E[i[y].name] = [E[i[y].name], m[y]] : E[i[y].name] = m[y]);
|
|
2994
2994
|
if (w === !0 || f === !0) {
|
|
2995
2995
|
const y = Object.assign(
|
|
2996
2996
|
{ record: E },
|
|
@@ -3012,18 +3012,18 @@ const Nn = 12, Dn = 13, Fn = 10, Mn = 32, Bn = 9, Un = function(t) {
|
|
|
3012
3012
|
}
|
|
3013
3013
|
} else if (w === !0 || f === !0) {
|
|
3014
3014
|
const E = Object.assign(
|
|
3015
|
-
{ record:
|
|
3015
|
+
{ record: m },
|
|
3016
3016
|
w === !0 ? { raw: this.state.rawBuffer.toString(s) } : {},
|
|
3017
3017
|
f === !0 ? { info: this.__infoRecord() } : {}
|
|
3018
3018
|
), y = this.__push(
|
|
3019
|
-
S === void 0 ? E : [
|
|
3019
|
+
S === void 0 ? E : [m[S], E],
|
|
3020
3020
|
n
|
|
3021
3021
|
);
|
|
3022
3022
|
if (y)
|
|
3023
3023
|
return y;
|
|
3024
3024
|
} else {
|
|
3025
3025
|
const E = this.__push(
|
|
3026
|
-
S === void 0 ?
|
|
3026
|
+
S === void 0 ? m : [m[S], m],
|
|
3027
3027
|
n
|
|
3028
3028
|
);
|
|
3029
3029
|
if (E)
|
|
@@ -3391,16 +3391,16 @@ class Gn {
|
|
|
3391
3391
|
(async () => {
|
|
3392
3392
|
f = ut(e), l = this.constructRowBuffer({ chunk: r.chunk, chunkSize: r.chunkSize ?? Qn }), f.on("readable", () => {
|
|
3393
3393
|
try {
|
|
3394
|
-
if (f == null || l == null) return;
|
|
3395
|
-
let
|
|
3396
|
-
for (; (
|
|
3394
|
+
if (console.log(2222), f == null || l == null) return;
|
|
3395
|
+
let m;
|
|
3396
|
+
for (; (m = f.read()) != null; ) {
|
|
3397
3397
|
if (h) return;
|
|
3398
|
-
i.signal.throwIfAborted(), l.push(
|
|
3398
|
+
i.signal.throwIfAborted(), l.push(m);
|
|
3399
3399
|
}
|
|
3400
|
-
} catch (
|
|
3401
|
-
c(
|
|
3400
|
+
} catch (m) {
|
|
3401
|
+
c(m);
|
|
3402
3402
|
}
|
|
3403
|
-
}), f.on("error", (
|
|
3403
|
+
}), f.on("error", (m) => c(m)), f.on("end", () => {
|
|
3404
3404
|
h || (l?.flush(), o(this.constructSummary(f)));
|
|
3405
3405
|
});
|
|
3406
3406
|
const p = await fetch(encodeURI(n), { signal: i.signal });
|
|
@@ -3409,7 +3409,7 @@ class Gn {
|
|
|
3409
3409
|
u = p.body.pipeThrough(new TextDecoderStream(r.encodingId)).getReader();
|
|
3410
3410
|
let I = await u.read();
|
|
3411
3411
|
for (; !I.done; ) {
|
|
3412
|
-
if (h) return;
|
|
3412
|
+
if (console.log(1111), h) return;
|
|
3413
3413
|
i.signal.throwIfAborted(), await this.writeToParser(f, I.value), I = await u.read();
|
|
3414
3414
|
}
|
|
3415
3415
|
f.end();
|