ueberdb2 4.2.87 → 4.2.89
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.js +40 -11
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -218659,6 +218659,8 @@ var hasRequiredRange;
|
|
|
218659
218659
|
function requireRange () {
|
|
218660
218660
|
if (hasRequiredRange) return range;
|
|
218661
218661
|
hasRequiredRange = 1;
|
|
218662
|
+
const SPACE_CHARACTERS = /\s+/g;
|
|
218663
|
+
|
|
218662
218664
|
// hoisted class for cyclic dependency
|
|
218663
218665
|
class Range {
|
|
218664
218666
|
constructor (range, options) {
|
|
@@ -218679,7 +218681,7 @@ function requireRange () {
|
|
|
218679
218681
|
// just put it in the set and return
|
|
218680
218682
|
this.raw = range.value;
|
|
218681
218683
|
this.set = [[range]];
|
|
218682
|
-
this.
|
|
218684
|
+
this.formatted = undefined;
|
|
218683
218685
|
return this
|
|
218684
218686
|
}
|
|
218685
218687
|
|
|
@@ -218690,10 +218692,7 @@ function requireRange () {
|
|
|
218690
218692
|
// First reduce all whitespace as much as possible so we do not have to rely
|
|
218691
218693
|
// on potentially slow regexes like \s*. This is then stored and used for
|
|
218692
218694
|
// future error messages as well.
|
|
218693
|
-
this.raw = range
|
|
218694
|
-
.trim()
|
|
218695
|
-
.split(/\s+/)
|
|
218696
|
-
.join(' ');
|
|
218695
|
+
this.raw = range.trim().replace(SPACE_CHARACTERS, ' ');
|
|
218697
218696
|
|
|
218698
218697
|
// First, split on ||
|
|
218699
218698
|
this.set = this.raw
|
|
@@ -218727,14 +218726,29 @@ function requireRange () {
|
|
|
218727
218726
|
}
|
|
218728
218727
|
}
|
|
218729
218728
|
|
|
218730
|
-
this.
|
|
218729
|
+
this.formatted = undefined;
|
|
218730
|
+
}
|
|
218731
|
+
|
|
218732
|
+
get range () {
|
|
218733
|
+
if (this.formatted === undefined) {
|
|
218734
|
+
this.formatted = '';
|
|
218735
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
218736
|
+
if (i > 0) {
|
|
218737
|
+
this.formatted += '||';
|
|
218738
|
+
}
|
|
218739
|
+
const comps = this.set[i];
|
|
218740
|
+
for (let k = 0; k < comps.length; k++) {
|
|
218741
|
+
if (k > 0) {
|
|
218742
|
+
this.formatted += ' ';
|
|
218743
|
+
}
|
|
218744
|
+
this.formatted += comps[k].toString().trim();
|
|
218745
|
+
}
|
|
218746
|
+
}
|
|
218747
|
+
}
|
|
218748
|
+
return this.formatted
|
|
218731
218749
|
}
|
|
218732
218750
|
|
|
218733
218751
|
format () {
|
|
218734
|
-
this.range = this.set
|
|
218735
|
-
.map((comps) => comps.join(' ').trim())
|
|
218736
|
-
.join('||')
|
|
218737
|
-
.trim();
|
|
218738
218752
|
return this.range
|
|
218739
218753
|
}
|
|
218740
218754
|
|
|
@@ -279485,6 +279499,16 @@ let Packet$l=class Packet {
|
|
|
279485
279499
|
return parseGeometry();
|
|
279486
279500
|
}
|
|
279487
279501
|
|
|
279502
|
+
parseVector() {
|
|
279503
|
+
const bufLen = this.readLengthCodedNumber();
|
|
279504
|
+
const vectorEnd = this.offset + bufLen;
|
|
279505
|
+
const result = [];
|
|
279506
|
+
while (this.offset < vectorEnd && this.offset < this.end) {
|
|
279507
|
+
result.push(this.readFloat());
|
|
279508
|
+
}
|
|
279509
|
+
return result;
|
|
279510
|
+
}
|
|
279511
|
+
|
|
279488
279512
|
parseDate(timezone) {
|
|
279489
279513
|
const strLen = this.readLengthCodedNumber();
|
|
279490
279514
|
if (strLen === null) {
|
|
@@ -280164,6 +280188,7 @@ function requireTypes () {
|
|
|
280164
280188
|
types$3.exports.NEWDATE = 0x0e; // aka ?
|
|
280165
280189
|
types$3.exports.VARCHAR = 0x0f; // aka VARCHAR (?)
|
|
280166
280190
|
types$3.exports.BIT = 0x10; // aka BIT, 1-8 byte
|
|
280191
|
+
types$3.exports.VECTOR = 0xf2;
|
|
280167
280192
|
types$3.exports.JSON = 0xf5;
|
|
280168
280193
|
types$3.exports.NEWDECIMAL = 0xf6; // aka DECIMAL
|
|
280169
280194
|
types$3.exports.ENUM = 0xf7; // aka ENUM
|
|
@@ -283999,6 +284024,8 @@ function readCodeFor$1(type, charset, encodingExpr, config, options) {
|
|
|
283999
284024
|
return 'packet.readLengthCodedString("ascii")';
|
|
284000
284025
|
case Types$2.GEOMETRY:
|
|
284001
284026
|
return 'packet.parseGeometryValue()';
|
|
284027
|
+
case Types$2.VECTOR:
|
|
284028
|
+
return 'packet.parseVector()';
|
|
284002
284029
|
case Types$2.JSON:
|
|
284003
284030
|
// Since for JSON columns mysql always returns charset 63 (BINARY),
|
|
284004
284031
|
// we have to handle it according to JSON specs and use "utf8",
|
|
@@ -284537,6 +284564,8 @@ function readCodeFor(field, config, options, fieldNum) {
|
|
|
284537
284564
|
return 'packet.readLengthCodedString("ascii");';
|
|
284538
284565
|
case Types$1.GEOMETRY:
|
|
284539
284566
|
return 'packet.parseGeometryValue();';
|
|
284567
|
+
case Types$1.VECTOR:
|
|
284568
|
+
return 'packet.parseVector()';
|
|
284540
284569
|
case Types$1.JSON:
|
|
284541
284570
|
// Since for JSON columns mysql always returns charset 63 (BINARY),
|
|
284542
284571
|
// we have to handle it according to JSON specs and use "utf8",
|
|
@@ -285342,7 +285371,7 @@ var commands$7 = {
|
|
|
285342
285371
|
ChangeUser,
|
|
285343
285372
|
Quit
|
|
285344
285373
|
};var name$1 = "mysql2";
|
|
285345
|
-
var version$2 = "3.
|
|
285374
|
+
var version$2 = "3.11.0";
|
|
285346
285375
|
var description = "fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS";
|
|
285347
285376
|
var main$1 = "index.js";
|
|
285348
285377
|
var typings = "typings/mysql/index";
|
package/package.json
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@types/async": "^3.2.24",
|
|
31
31
|
"@types/better-sqlite3": "^7.6.11",
|
|
32
32
|
"@types/mssql": "^9.1.5",
|
|
33
|
-
"@types/node": "^
|
|
33
|
+
"@types/node": "^22.0.0",
|
|
34
34
|
"@types/pg": "^8.11.5",
|
|
35
35
|
"@types/rethinkdb": "^2.3.21",
|
|
36
36
|
"async": "^3.2.5",
|
|
@@ -44,27 +44,27 @@
|
|
|
44
44
|
"eslint-plugin-import": "^2.29.1",
|
|
45
45
|
"mongodb": "^6.8.0",
|
|
46
46
|
"mssql": "^11.0.1",
|
|
47
|
-
"mysql2": "^3.
|
|
47
|
+
"mysql2": "^3.11.0",
|
|
48
48
|
"nano": "^10.1.3",
|
|
49
49
|
"pg": "^8.12.0",
|
|
50
50
|
"randexp-ts": "^1.0.5",
|
|
51
51
|
"redis": "^4.6.15",
|
|
52
52
|
"rethinkdb": "^2.4.2",
|
|
53
53
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
54
|
-
"semver": "^7.6.
|
|
54
|
+
"semver": "^7.6.3",
|
|
55
55
|
"simple-git": "^3.25.0",
|
|
56
56
|
"surrealdb.js": "^0.11.1",
|
|
57
57
|
"typescript": "^5.5.4",
|
|
58
|
-
"vitest": "^2.0.
|
|
58
|
+
"vitest": "^2.0.4",
|
|
59
59
|
"wtfnode": "^0.9.3",
|
|
60
|
-
"rollup": "^4.19.
|
|
60
|
+
"rollup": "^4.19.1"
|
|
61
61
|
},
|
|
62
62
|
"repository": {
|
|
63
63
|
"type": "git",
|
|
64
64
|
"url": "https://github.com/ether/ueberDB.git"
|
|
65
65
|
},
|
|
66
66
|
"main": "./dist/index.js",
|
|
67
|
-
"version": "4.2.
|
|
67
|
+
"version": "4.2.89",
|
|
68
68
|
"bugs": {
|
|
69
69
|
"url": "https://github.com/ether/ueberDB/issues"
|
|
70
70
|
},
|