ueberdb2 4.2.58 → 4.2.59

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.
Files changed (2) hide show
  1. package/dist/index.js +24 -17
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -65111,7 +65111,7 @@ function redactObject(obj, additionalKeys = []) {
65111
65111
  if (value instanceof URL) {
65112
65112
  value = `${value.origin}${value.pathname}${value.search}`;
65113
65113
  }
65114
- if (typeof value === 'object' && value !== null) {
65114
+ if (typeof value === 'object' && !Array.isArray(value) && value !== null) {
65115
65115
  if (seen.get(value) !== true) {
65116
65116
  // if this Object hasn't been seen, recursively redact it
65117
65117
  seen.set(value, true);
@@ -66271,7 +66271,7 @@ let Serializer$3=class Serializer {
66271
66271
  };
66272
66272
  Serializer$4.default = Serializer$3;
66273
66273
  _a$9 = symbols_1$1.kJsonOptions;var name$8 = "@elastic/transport";
66274
- var version$8 = "8.4.0";
66274
+ var version$8 = "8.4.1";
66275
66275
  var description$4 = "Transport classes and utilities shared among Node.js Elastic client libraries";
66276
66276
  var main$6 = "index.js";
66277
66277
  var types$7 = "index.d.ts";
@@ -69129,7 +69129,7 @@ function requireDicer () {
69129
69129
  if (this._headerFirst && this._isPreamble) {
69130
69130
  if (!this._part) {
69131
69131
  this._part = new PartStream(this._partOpts);
69132
- if (this._events.preamble) { this.emit('preamble', this._part); } else { this._ignore(); }
69132
+ if (this.listenerCount('preamble') !== 0) { this.emit('preamble', this._part); } else { this._ignore(); }
69133
69133
  }
69134
69134
  const r = this._hparser.push(data);
69135
69135
  if (!this._inHeader && r !== undefined && r < data.length) { data = data.slice(r); } else { return cb() }
@@ -69186,7 +69186,7 @@ function requireDicer () {
69186
69186
  }
69187
69187
  }
69188
69188
  if (this._dashes === 2) {
69189
- if ((start + i) < end && this._events.trailer) { this.emit('trailer', data.slice(start + i, end)); }
69189
+ if ((start + i) < end && this.listenerCount('trailer') !== 0) { this.emit('trailer', data.slice(start + i, end)); }
69190
69190
  this.reset();
69191
69191
  this._finished = true;
69192
69192
  // no more parts will be added
@@ -69204,7 +69204,13 @@ function requireDicer () {
69204
69204
  this._part._read = function (n) {
69205
69205
  self._unpause();
69206
69206
  };
69207
- if (this._isPreamble && this._events.preamble) { this.emit('preamble', this._part); } else if (this._isPreamble !== true && this._events.part) { this.emit('part', this._part); } else { this._ignore(); }
69207
+ if (this._isPreamble && this.listenerCount('preamble') !== 0) {
69208
+ this.emit('preamble', this._part);
69209
+ } else if (this._isPreamble !== true && this.listenerCount('part') !== 0) {
69210
+ this.emit('part', this._part);
69211
+ } else {
69212
+ this._ignore();
69213
+ }
69208
69214
  if (!this._isPreamble) { this._inHeader = true; }
69209
69215
  }
69210
69216
  if (data && start < end && !this._ignoreData) {
@@ -69360,7 +69366,7 @@ function requireDecodeText () {
69360
69366
  if (textDecoders.has(this.toString())) {
69361
69367
  try {
69362
69368
  return textDecoders.get(this).decode(data)
69363
- } catch (e) { }
69369
+ } catch {}
69364
69370
  }
69365
69371
  return typeof data === 'string'
69366
69372
  ? data
@@ -69770,7 +69776,7 @@ function requireMultipart () {
69770
69776
 
69771
69777
  ++nfiles;
69772
69778
 
69773
- if (!boy._events.file) {
69779
+ if (boy.listenerCount('file') === 0) {
69774
69780
  self.parser._ignore();
69775
69781
  return
69776
69782
  }
@@ -107243,8 +107249,8 @@ function requireApi () {
107243
107249
 
107244
107250
  return api$1;
107245
107251
  }var name$7 = "@elastic/elasticsearch";
107246
- var version$7 = "8.12.1";
107247
- var versionCanary = "8.12.1-canary.0";
107252
+ var version$7 = "8.12.2";
107253
+ var versionCanary = "8.12.2-canary.0";
107248
107254
  var description$3 = "The official Elasticsearch client for Node.js";
107249
107255
  var main$4 = "index.js";
107250
107256
  var types$6 = "index.d.ts";
@@ -107326,7 +107332,7 @@ var devDependencies$4 = {
107326
107332
  zx: "^7.2.2"
107327
107333
  };
107328
107334
  var dependencies$4 = {
107329
- "@elastic/transport": "^8.4.0",
107335
+ "@elastic/transport": "^8.4.1",
107330
107336
  tslib: "^2.4.0"
107331
107337
  };
107332
107338
  var tap = {
@@ -284392,7 +284398,7 @@ let Query$4=class Query extends Command$8 {
284392
284398
  this._receivedFieldsCount = 0;
284393
284399
  this._resultIndex = 0;
284394
284400
  this._localStream = null;
284395
- this._unpipeStream = function() {};
284401
+ this._unpipeStream = function () { };
284396
284402
  this._streamFactory = options.infileStreamFactory;
284397
284403
  this._connection = null;
284398
284404
  }
@@ -284517,7 +284523,7 @@ let Query$4=class Query extends Command$8 {
284517
284523
  const onPause = () => {
284518
284524
  this._localStream.pause();
284519
284525
  };
284520
- const onData = function(data) {
284526
+ const onData = function (data) {
284521
284527
  const dataWithHeader = Buffer.allocUnsafe(data.length + 4);
284522
284528
  data.copy(dataWithHeader, 4);
284523
284529
  connection.writePacket(
@@ -284589,7 +284595,7 @@ let Query$4=class Query extends Command$8 {
284589
284595
  }
284590
284596
 
284591
284597
  /* eslint no-unused-vars: ["error", { "argsIgnorePattern": "^_" }] */
284592
- row(packet, _connection) {
284598
+ row(packet, _connection) {
284593
284599
  if (packet.isEOF()) {
284594
284600
  const status = packet.eofStatusFlags();
284595
284601
  const moreResults = status & ServerStatus.SERVER_MORE_RESULTS_EXISTS;
@@ -284641,11 +284647,13 @@ let Query$4=class Query extends Command$8 {
284641
284647
  });
284642
284648
  this.on('end', () => {
284643
284649
  stream.push(null); // pushing null, indicating EOF
284644
- setImmediate(() => stream.emit('close')); // notify readers that query has completed
284645
284650
  });
284646
284651
  this.on('fields', fields => {
284647
284652
  stream.emit('fields', fields); // replicate old emitter
284648
284653
  });
284654
+ stream.on('end', () => {
284655
+ stream.emit('close');
284656
+ });
284649
284657
  return stream;
284650
284658
  }
284651
284659
 
@@ -284664,7 +284672,7 @@ let Query$4=class Query extends Command$8 {
284664
284672
  Timers.clearTimeout(this.queryTimeout);
284665
284673
  this.queryTimeout = null;
284666
284674
  }
284667
-
284675
+
284668
284676
  const err = new Error('Query inactivity timeout');
284669
284677
  err.errorno = 'PROTOCOL_SEQUENCE_TIMEOUT';
284670
284678
  err.code = 'PROTOCOL_SEQUENCE_TIMEOUT';
@@ -285534,7 +285542,7 @@ var commands$7 = {
285534
285542
  ChangeUser,
285535
285543
  Quit
285536
285544
  };var name$1 = "mysql2";
285537
- var version$2 = "3.9.1";
285545
+ var version$2 = "3.9.2";
285538
285546
  var description = "fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS";
285539
285547
  var main$1 = "index.js";
285540
285548
  var typings = "typings/mysql/index";
@@ -285610,7 +285618,6 @@ var devDependencies$1 = {
285610
285618
  prettier: "^3.0.0",
285611
285619
  progress: "^2.0.3",
285612
285620
  typescript: "^5.0.2",
285613
- urun: "0.0.8",
285614
285621
  utest: "0.0.8"
285615
285622
  };
285616
285623
  var require$$3 = {
package/package.json CHANGED
@@ -30,11 +30,11 @@
30
30
  "@types/async": "^3.2.24",
31
31
  "@types/better-sqlite3": "^7.6.9",
32
32
  "@types/mssql": "^9.1.5",
33
- "@types/node": "^20.11.19",
33
+ "@types/node": "^20.11.24",
34
34
  "@types/pg": "^8.11.0",
35
35
  "@types/rethinkdb": "^2.3.21",
36
36
  "async": "^3.2.5",
37
- "better-sqlite3": "^9.4.1",
37
+ "better-sqlite3": "^9.4.3",
38
38
  "cassandra-driver": "^4.7.2",
39
39
  "cli-table": "^0.3.11",
40
40
  "dirty-ts": "^1.1.7",
@@ -44,7 +44,7 @@
44
44
  "eslint-plugin-import": "^2.29.1",
45
45
  "mongodb": "^6.3.0",
46
46
  "mssql": "^10.0.2",
47
- "mysql2": "^3.9.1",
47
+ "mysql2": "^3.9.2",
48
48
  "nano": "^10.1.3",
49
49
  "pg": "^8.11.3",
50
50
  "randexp-ts": "^1.0.5",
@@ -55,7 +55,7 @@
55
55
  "simple-git": "^3.22.0",
56
56
  "surrealdb.js": "^0.11.0",
57
57
  "typescript": "^4.9.5",
58
- "vitest": "^1.3.0",
58
+ "vitest": "^1.3.1",
59
59
  "wtfnode": "^0.9.1"
60
60
  },
61
61
  "repository": {
@@ -63,7 +63,7 @@
63
63
  "url": "https://github.com/ether/ueberDB.git"
64
64
  },
65
65
  "main": "./dist/index.js",
66
- "version": "4.2.58",
66
+ "version": "4.2.59",
67
67
  "bugs": {
68
68
  "url": "https://github.com/ether/ueberDB/issues"
69
69
  },