@datapos/datapos-tool-csv-parse 0.0.133 → 0.0.134

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.
@@ -123,7 +123,7 @@ function ir(t, e, r) {
123
123
  var i = t.write(e, r);
124
124
  return i !== n && (t = t.slice(0, i)), t;
125
125
  }
126
- function Ue(t, e) {
126
+ function ke(t, e) {
127
127
  var r = e.length < 0 ? 0 : ze(e.length) | 0;
128
128
  t = q(t, r);
129
129
  for (var n = 0; n < r; n += 1)
@@ -135,7 +135,7 @@ function or(t, e, r, n) {
135
135
  throw new RangeError("'offset' is out of bounds");
136
136
  if (e.byteLength < r + (n || 0))
137
137
  throw new RangeError("'length' is out of bounds");
138
- return r === void 0 && n === void 0 ? e = new Uint8Array(e) : n === void 0 ? e = new Uint8Array(e, r) : e = new Uint8Array(e, r, n), l.TYPED_ARRAY_SUPPORT ? (t = e, t.__proto__ = l.prototype) : t = Ue(t, e), t;
138
+ return r === void 0 && n === void 0 ? e = new Uint8Array(e) : n === void 0 ? e = new Uint8Array(e, r) : e = new Uint8Array(e, r, n), l.TYPED_ARRAY_SUPPORT ? (t = e, t.__proto__ = l.prototype) : t = ke(t, e), t;
139
139
  }
140
140
  function sr(t, e) {
141
141
  if ($(e)) {
@@ -144,9 +144,9 @@ function sr(t, e) {
144
144
  }
145
145
  if (e) {
146
146
  if (typeof ArrayBuffer < "u" && e.buffer instanceof ArrayBuffer || "length" in e)
147
- return typeof e.length != "number" || Rr(e.length) ? q(t, 0) : Ue(t, e);
147
+ return typeof e.length != "number" || Rr(e.length) ? q(t, 0) : ke(t, e);
148
148
  if (e.type === "Buffer" && ht(e.data))
149
- return Ue(t, e.data);
149
+ return ke(t, e.data);
150
150
  }
151
151
  throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.");
152
152
  }
@@ -1142,7 +1142,7 @@ function Lt() {
1142
1142
  ee = null, ne = !1, Mr(t);
1143
1143
  }
1144
1144
  }
1145
- function U(t) {
1145
+ function k(t) {
1146
1146
  var e = new Array(arguments.length - 1);
1147
1147
  if (arguments.length > 1)
1148
1148
  for (var r = 1; r < arguments.length; r++)
@@ -1155,12 +1155,12 @@ function Dt(t, e) {
1155
1155
  Dt.prototype.run = function() {
1156
1156
  this.fun.apply(null, this.array);
1157
1157
  };
1158
- var Ur = {}, se = ie.performance || {};
1158
+ var kr = {}, se = ie.performance || {};
1159
1159
  se.now || se.mozNow || se.msNow || se.oNow || se.webkitNow;
1160
1160
  var ge = {
1161
- env: Ur
1162
- }, ke;
1163
- typeof Object.create == "function" ? ke = function(e, r) {
1161
+ env: kr
1162
+ }, Ue;
1163
+ typeof Object.create == "function" ? Ue = function(e, r) {
1164
1164
  e.super_ = r, e.prototype = Object.create(r.prototype, {
1165
1165
  constructor: {
1166
1166
  value: e,
@@ -1169,20 +1169,20 @@ typeof Object.create == "function" ? ke = function(e, r) {
1169
1169
  configurable: !0
1170
1170
  }
1171
1171
  });
1172
- } : ke = function(e, r) {
1172
+ } : Ue = function(e, r) {
1173
1173
  e.super_ = r;
1174
1174
  var n = function() {
1175
1175
  };
1176
1176
  n.prototype = r.prototype, e.prototype = new n(), e.prototype.constructor = e;
1177
1177
  };
1178
- var oe = ke, kr = /%[sdj%]/g;
1178
+ var oe = Ue, Ur = /%[sdj%]/g;
1179
1179
  function Pr(t) {
1180
1180
  if (!Je(t)) {
1181
1181
  for (var e = [], r = 0; r < arguments.length; r++)
1182
1182
  e.push(G(arguments[r]));
1183
1183
  return e.join(" ");
1184
1184
  }
1185
- for (var r = 1, n = arguments, i = n.length, o = String(t).replace(kr, function(f) {
1185
+ for (var r = 1, n = arguments, i = n.length, o = String(t).replace(Ur, function(f) {
1186
1186
  if (f === "%%") return "%";
1187
1187
  if (r >= i) return f;
1188
1188
  switch (f) {
@@ -1587,16 +1587,16 @@ function C(t) {
1587
1587
  }
1588
1588
  C.prototype.push = function(t, e) {
1589
1589
  var r = this._readableState;
1590
- return !r.objectMode && typeof t == "string" && (e = e || r.defaultEncoding, e !== r.encoding && (t = l.from(t, e), e = "")), Ut(this, r, t, e, !1);
1590
+ return !r.objectMode && typeof t == "string" && (e = e || r.defaultEncoding, e !== r.encoding && (t = l.from(t, e), e = "")), kt(this, r, t, e, !1);
1591
1591
  };
1592
1592
  C.prototype.unshift = function(t) {
1593
1593
  var e = this._readableState;
1594
- return Ut(this, e, t, "", !0);
1594
+ return kt(this, e, t, "", !0);
1595
1595
  };
1596
1596
  C.prototype.isPaused = function() {
1597
1597
  return this._readableState.flowing === !1;
1598
1598
  };
1599
- function Ut(t, e, r, n, i) {
1599
+ function kt(t, e, r, n, i) {
1600
1600
  var o = sn(e, r);
1601
1601
  if (o)
1602
1602
  t.emit("error", o);
@@ -1639,7 +1639,7 @@ C.prototype.read = function(t) {
1639
1639
  var n = e.needReadable;
1640
1640
  E("need readable", n), (e.length === 0 || e.length - t < e.highWaterMark) && (n = !0, E("length less than watermark", n)), e.ended || e.reading ? (n = !1, E("reading or ended", n)) : n && (E("do read"), e.reading = !0, e.sync = !0, e.length === 0 && (e.needReadable = !0), this._read(e.highWaterMark), e.sync = !1, e.reading || (t = tt(r, e)));
1641
1641
  var i;
1642
- return t > 0 ? i = kt(t, e) : i = null, i === null ? (e.needReadable = !0, t = 0) : e.length -= t, e.length === 0 && (e.ended || (e.needReadable = !0), r !== t && e.ended && Ne(this)), i !== null && this.emit("data", i), i;
1642
+ return t > 0 ? i = Ut(t, e) : i = null, i === null ? (e.needReadable = !0, t = 0) : e.length -= t, e.length === 0 && (e.ended || (e.needReadable = !0), r !== t && e.ended && Ne(this)), i !== null && this.emit("data", i), i;
1643
1643
  };
1644
1644
  function sn(t, e) {
1645
1645
  var r = null;
@@ -1656,13 +1656,13 @@ function fn(t, e) {
1656
1656
  }
1657
1657
  function Se(t) {
1658
1658
  var e = t._readableState;
1659
- e.needReadable = !1, e.emittedReadable || (E("emitReadable", e.flowing), e.emittedReadable = !0, e.sync ? U(rt, t) : rt(t));
1659
+ e.needReadable = !1, e.emittedReadable || (E("emitReadable", e.flowing), e.emittedReadable = !0, e.sync ? k(rt, t) : rt(t));
1660
1660
  }
1661
1661
  function rt(t) {
1662
1662
  E("emit readable"), t.emit("readable"), We(t);
1663
1663
  }
1664
1664
  function an(t, e) {
1665
- e.readingMore || (e.readingMore = !0, U(ln, t, e));
1665
+ e.readingMore || (e.readingMore = !0, k(ln, t, e));
1666
1666
  }
1667
1667
  function ln(t, e) {
1668
1668
  for (var r = e.length; !e.reading && !e.flowing && !e.ended && e.length < e.highWaterMark && (E("maybeReadMore read 0"), t.read(0), r !== e.length); )
@@ -1687,7 +1687,7 @@ C.prototype.pipe = function(t, e) {
1687
1687
  }
1688
1688
  n.pipesCount += 1, E("pipe count=%d opts=%j", n.pipesCount, e);
1689
1689
  var i = !e || e.end !== !1, o = i ? f : h;
1690
- n.endEmitted ? U(o) : r.once("end", o), t.on("unpipe", s);
1690
+ n.endEmitted ? k(o) : r.once("end", o), t.on("unpipe", s);
1691
1691
  function s(I) {
1692
1692
  E("onunpipe"), I === r && h();
1693
1693
  }
@@ -1751,7 +1751,7 @@ C.prototype.on = function(t, e) {
1751
1751
  this._readableState.flowing !== !1 && this.resume();
1752
1752
  else if (t === "readable") {
1753
1753
  var n = this._readableState;
1754
- !n.endEmitted && !n.readableListening && (n.readableListening = n.needReadable = !0, n.emittedReadable = !1, n.reading ? n.length && Se(this) : U(cn, this));
1754
+ !n.endEmitted && !n.readableListening && (n.readableListening = n.needReadable = !0, n.emittedReadable = !1, n.reading ? n.length && Se(this) : k(cn, this));
1755
1755
  }
1756
1756
  return r;
1757
1757
  };
@@ -1764,7 +1764,7 @@ C.prototype.resume = function() {
1764
1764
  return t.flowing || (E("resume"), t.flowing = !0, hn(this, t)), this;
1765
1765
  };
1766
1766
  function hn(t, e) {
1767
- e.resumeScheduled || (e.resumeScheduled = !0, U(dn, t, e));
1767
+ e.resumeScheduled || (e.resumeScheduled = !0, k(dn, t, e));
1768
1768
  }
1769
1769
  function dn(t, e) {
1770
1770
  e.reading || (E("resume read 0"), t.read(0)), e.resumeScheduled = !1, e.awaitDrain = 0, t.emit("resume"), We(t), e.flowing && !e.reading && t.read(0);
@@ -1804,8 +1804,8 @@ C.prototype.wrap = function(t) {
1804
1804
  E("wrapped _read", s), r && (r = !1, t.resume());
1805
1805
  }, n;
1806
1806
  };
1807
- C._fromList = kt;
1808
- function kt(t, e) {
1807
+ C._fromList = Ut;
1808
+ function Ut(t, e) {
1809
1809
  if (e.length === 0) return null;
1810
1810
  var r;
1811
1811
  return e.objectMode ? r = e.buffer.shift() : !t || t >= e.length ? (e.decoder ? r = e.buffer.join("") : e.buffer.length === 1 ? r = e.buffer.head.data : r = e.buffer.concat(e.length), e.buffer.clear()) : r = pn(t, e.buffer, e.decoder), r;
@@ -1841,7 +1841,7 @@ function gn(t, e) {
1841
1841
  function Ne(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, U(_n, e, t));
1844
+ e.endEmitted || (e.ended = !0, k(_n, e, t));
1845
1845
  }
1846
1846
  function _n(t, e) {
1847
1847
  !t.endEmitted && t.length === 0 && (t.endEmitted = !0, e.readable = !1, e.emit("end"));
@@ -1889,11 +1889,11 @@ L.prototype.pipe = function() {
1889
1889
  };
1890
1890
  function bn(t, e) {
1891
1891
  var r = new Error("write after end");
1892
- t.emit("error", r), U(e, r);
1892
+ t.emit("error", r), k(e, r);
1893
1893
  }
1894
1894
  function En(t, e, r, n) {
1895
1895
  var i = !0, o = !1;
1896
- return r === null ? o = new TypeError("May not write null values to stream") : !l.isBuffer(r) && typeof r != "string" && r !== void 0 && !e.objectMode && (o = new TypeError("Invalid non-string/buffer chunk")), o && (t.emit("error", o), U(n, o), i = !1), i;
1896
+ return r === null ? o = new TypeError("May not write null values to stream") : !l.isBuffer(r) && typeof r != "string" && r !== void 0 && !e.objectMode && (o = new TypeError("Invalid non-string/buffer chunk")), o && (t.emit("error", o), k(n, o), i = !1), i;
1897
1897
  }
1898
1898
  L.prototype.write = function(t, e, r) {
1899
1899
  var n = this._writableState, i = !1;
@@ -1930,7 +1930,7 @@ function $e(t, e, r, n, i, o, s) {
1930
1930
  e.writelen = n, e.writecb = s, e.writing = !0, e.sync = !0, r ? t._writev(i, e.onwrite) : t._write(i, o, e.onwrite), e.sync = !1;
1931
1931
  }
1932
1932
  function Rn(t, e, r, n, i) {
1933
- --e.pendingcb, r ? U(i, n) : i(n), t._writableState.errorEmitted = !0, t.emit("error", n);
1933
+ --e.pendingcb, r ? k(i, n) : i(n), t._writableState.errorEmitted = !0, t.emit("error", n);
1934
1934
  }
1935
1935
  function In(t) {
1936
1936
  t.writing = !1, t.writecb = null, t.length -= t.writelen, t.writelen = 0;
@@ -1940,7 +1940,7 @@ function Cn(t, e) {
1940
1940
  if (In(r), e) Rn(t, r, n, e, i);
1941
1941
  else {
1942
1942
  var o = jt(r);
1943
- !o && !r.corked && !r.bufferProcessing && r.bufferedRequest && $t(t, r), n ? U(nt, t, r, o, i) : nt(t, r, o, i);
1943
+ !o && !r.corked && !r.bufferProcessing && r.bufferedRequest && $t(t, r), n ? k(nt, t, r, o, i) : nt(t, r, o, i);
1944
1944
  }
1945
1945
  }
1946
1946
  function nt(t, e, r, n) {
@@ -1987,7 +1987,7 @@ function qt(t, e) {
1987
1987
  return r && (e.pendingcb === 0 ? (it(t, e), e.finished = !0, t.emit("finish")) : it(t, e)), r;
1988
1988
  }
1989
1989
  function An(t, e, r) {
1990
- e.ending = !0, qt(t, e), r && (e.finished ? U(r) : t.once("finish", r)), e.ended = !0, t.writable = !1;
1990
+ e.ending = !0, qt(t, e), r && (e.finished ? k(r) : t.once("finish", r)), e.ended = !0, t.writable = !1;
1991
1991
  }
1992
1992
  function zt(t) {
1993
1993
  var e = this;
@@ -2011,12 +2011,12 @@ function B(t) {
2011
2011
  C.call(this, t), L.call(this, t), t && t.readable === !1 && (this.readable = !1), t && t.writable === !1 && (this.writable = !1), this.allowHalfOpen = !0, t && t.allowHalfOpen === !1 && (this.allowHalfOpen = !1), this.once("end", Tn);
2012
2012
  }
2013
2013
  function Tn() {
2014
- this.allowHalfOpen || this._writableState.ended || U(Ln, this);
2014
+ this.allowHalfOpen || this._writableState.ended || k(Ln, this);
2015
2015
  }
2016
2016
  function Ln(t) {
2017
2017
  t.end();
2018
2018
  }
2019
- oe(k, B);
2019
+ oe(U, B);
2020
2020
  function Dn(t) {
2021
2021
  this.afterTransform = function(e, r) {
2022
2022
  return Nn(t, e, r);
@@ -2031,8 +2031,8 @@ function Nn(t, e, r) {
2031
2031
  var o = t._readableState;
2032
2032
  o.reading = !1, (o.needReadable || o.length < o.highWaterMark) && t._read(o.highWaterMark);
2033
2033
  }
2034
- function k(t) {
2035
- if (!(this instanceof k)) return new k(t);
2034
+ function U(t) {
2035
+ if (!(this instanceof U)) return new U(t);
2036
2036
  B.call(this, t), this._transformState = new Dn(this);
2037
2037
  var e = this;
2038
2038
  this._readableState.needReadable = !0, this._readableState.sync = !1, t && (typeof t.transform == "function" && (this._transform = t.transform), typeof t.flush == "function" && (this._flush = t.flush)), this.once("prefinish", function() {
@@ -2041,20 +2041,20 @@ function k(t) {
2041
2041
  }) : st(e);
2042
2042
  });
2043
2043
  }
2044
- k.prototype.push = function(t, e) {
2044
+ U.prototype.push = function(t, e) {
2045
2045
  return this._transformState.needTransform = !1, B.prototype.push.call(this, t, e);
2046
2046
  };
2047
- k.prototype._transform = function(t, e, r) {
2047
+ U.prototype._transform = function(t, e, r) {
2048
2048
  throw new Error("Not implemented");
2049
2049
  };
2050
- k.prototype._write = function(t, e, r) {
2050
+ U.prototype._write = function(t, e, r) {
2051
2051
  var n = this._transformState;
2052
2052
  if (n.writecb = r, n.writechunk = t, n.writeencoding = e, !n.transforming) {
2053
2053
  var i = this._readableState;
2054
2054
  (n.needTransform || i.needReadable || i.length < i.highWaterMark) && this._read(i.highWaterMark);
2055
2055
  }
2056
2056
  };
2057
- k.prototype._read = function(t) {
2057
+ U.prototype._read = function(t) {
2058
2058
  var e = this._transformState;
2059
2059
  e.writechunk !== null && e.writecb && !e.transforming ? (e.transforming = !0, this._transform(e.writechunk, e.writeencoding, e.afterTransform)) : e.needTransform = !0;
2060
2060
  };
@@ -2065,10 +2065,10 @@ function st(t, e) {
2065
2065
  if (n.transforming) throw new Error("Calling transform done when still transforming");
2066
2066
  return t.push(null);
2067
2067
  }
2068
- oe(fe, k);
2068
+ oe(fe, U);
2069
2069
  function fe(t) {
2070
2070
  if (!(this instanceof fe)) return new fe(t);
2071
- k.call(this, t);
2071
+ U.call(this, t);
2072
2072
  }
2073
2073
  fe.prototype._transform = function(t, e, r) {
2074
2074
  r(null, t);
@@ -2077,7 +2077,7 @@ oe(V, g);
2077
2077
  V.Readable = C;
2078
2078
  V.Writable = L;
2079
2079
  V.Duplex = B;
2080
- V.Transform = k;
2080
+ V.Transform = U;
2081
2081
  V.PassThrough = fe;
2082
2082
  V.Stream = V;
2083
2083
  function V() {
@@ -2189,7 +2189,7 @@ class ft {
2189
2189
  this.length = 0;
2190
2190
  }
2191
2191
  }
2192
- const Fn = 12, Mn = 13, Bn = 10, Un = 32, kn = 9, Pn = function(t) {
2192
+ const Fn = 12, Mn = 13, Bn = 10, kn = 32, Un = 9, Pn = function(t) {
2193
2193
  return {
2194
2194
  bomSkipped: !1,
2195
2195
  bufBytesStart: 0,
@@ -2229,8 +2229,8 @@ const Fn = 12, Mn = 13, Bn = 10, Un = 32, kn = 9, Pn = function(t) {
2229
2229
  l.from(l.from([Mn], "utf8").toString(), t.encoding),
2230
2230
  l.from(l.from([Bn], "utf8").toString(), t.encoding),
2231
2231
  l.from(l.from([Fn], "utf8").toString(), t.encoding),
2232
- l.from(l.from([Un], "utf8").toString(), t.encoding),
2233
- l.from(l.from([kn], "utf8").toString(), t.encoding)
2232
+ l.from(l.from([kn], "utf8").toString(), t.encoding),
2233
+ l.from(l.from([Un], "utf8").toString(), t.encoding)
2234
2234
  ]
2235
2235
  };
2236
2236
  }, $n = function(t) {
@@ -3250,7 +3250,7 @@ const Fn = 12, Mn = 13, Bn = 10, Un = 32, kn = 9, Pn = function(t) {
3250
3250
  }
3251
3251
  };
3252
3252
  };
3253
- class Vn extends k {
3253
+ class Vn extends U {
3254
3254
  constructor(e = {}) {
3255
3255
  super({ readableObjectMode: !0, ...e, encoding: null }), this.api = zn({
3256
3256
  on_skip: (r, n) => {
@@ -3367,7 +3367,7 @@ function Hn(t) {
3367
3367
  if (typeof t == "string") return new Error(t);
3368
3368
  if (typeof t == "number" || typeof t == "boolean" || typeof t == "bigint") return new Error(String(t));
3369
3369
  if (typeof t == "symbol") return new Error(t.description ?? "Unknown error");
3370
- if (t != null && typeof t == "object")
3370
+ if (typeof t == "object")
3371
3371
  try {
3372
3372
  return new Error(JSON.stringify(t));
3373
3373
  } catch {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datapos/datapos-tool-csv-parse",
3
- "version": "0.0.133",
3
+ "version": "0.0.134",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "private": false,
@@ -26,35 +26,35 @@
26
26
  ],
27
27
  "prettier": "@datapos/datapos-development/prettierrc",
28
28
  "dependencies": {
29
- "@datapos/datapos-shared": "^0.3.512",
29
+ "@datapos/datapos-shared": "^0.3.536",
30
30
  "csv-parse": "^6.1.0"
31
31
  },
32
32
  "devDependencies": {
33
- "@datapos/datapos-development": "^0.3.438",
34
- "@datapos/eslint-config-datapos": "^1.0.40",
35
- "@types/node": "^25.0.6",
36
- "@typescript-eslint/eslint-plugin": "^8.52.0",
37
- "@typescript-eslint/parser": "^8.52.0",
33
+ "@datapos/datapos-development": "^0.3.444",
34
+ "@datapos/eslint-config-datapos": "^1.0.44",
35
+ "@types/node": "^25.2.3",
36
+ "@typescript-eslint/eslint-plugin": "^8.55.0",
37
+ "@typescript-eslint/parser": "^8.55.0",
38
38
  "eslint": "^9.39.2",
39
39
  "eslint-import-resolver-typescript": "^4.4.4",
40
40
  "eslint-plugin-import": "^2.32.0",
41
41
  "eslint-plugin-security": "^3.0.1",
42
- "eslint-plugin-sonarjs": "^3.0.5",
42
+ "eslint-plugin-sonarjs": "^3.0.7",
43
43
  "eslint-plugin-unicorn": "^62.0.0",
44
44
  "jiti": "^2.6.1",
45
45
  "license-downloader": "^1.3.3",
46
46
  "license-report": "^6.8.1",
47
47
  "license-report-check": "^0.1.2",
48
48
  "license-report-recursive": "^6.8.2",
49
- "npm-check-updates": "^19.3.1",
49
+ "npm-check-updates": "^19.3.2",
50
50
  "owasp-dependency-check": "^1.0.1",
51
- "prettier": "^3.7.4",
51
+ "prettier": "^3.8.1",
52
52
  "rollup-plugin-visualizer": "^6.0.5",
53
- "sonda": "^0.10.1",
53
+ "sonda": "^0.11.0",
54
54
  "typescript": "^5.9.3",
55
55
  "vite": "^7.3.1",
56
56
  "vite-plugin-dts": "^4.5.4",
57
- "vitest": "^4.0.16"
57
+ "vitest": "^4.0.18"
58
58
  },
59
59
  "scripts": {
60
60
  "audit": "op run --env-file=.env -- node -e \"import('@datapos/datapos-development').then(m => m.auditDependencies())\"",