ueberdb2 4.2.82 → 4.2.83
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 +34 -42
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -218614,54 +218614,46 @@ const coerce$2 = (version, options) => {
|
|
|
218614
218614
|
|
|
218615
218615
|
return parse$7(`${major}.${minor}.${patch}${prerelease}${build}`, options)
|
|
218616
218616
|
};
|
|
218617
|
-
var coerce_1 = coerce$2;
|
|
218618
|
-
|
|
218619
|
-
|
|
218620
|
-
|
|
218621
|
-
|
|
218622
|
-
hasRequiredLrucache = 1;
|
|
218623
|
-
class LRUCache {
|
|
218624
|
-
constructor () {
|
|
218625
|
-
this.max = 1000;
|
|
218626
|
-
this.map = new Map();
|
|
218627
|
-
}
|
|
218617
|
+
var coerce_1 = coerce$2;let LRUCache$1=class LRUCache {
|
|
218618
|
+
constructor () {
|
|
218619
|
+
this.max = 1000;
|
|
218620
|
+
this.map = new Map();
|
|
218621
|
+
}
|
|
218628
218622
|
|
|
218629
|
-
|
|
218630
|
-
|
|
218631
|
-
|
|
218632
|
-
|
|
218633
|
-
|
|
218634
|
-
|
|
218635
|
-
|
|
218636
|
-
|
|
218637
|
-
|
|
218638
|
-
|
|
218639
|
-
|
|
218623
|
+
get (key) {
|
|
218624
|
+
const value = this.map.get(key);
|
|
218625
|
+
if (value === undefined) {
|
|
218626
|
+
return undefined
|
|
218627
|
+
} else {
|
|
218628
|
+
// Remove the key from the map and add it to the end
|
|
218629
|
+
this.map.delete(key);
|
|
218630
|
+
this.map.set(key, value);
|
|
218631
|
+
return value
|
|
218632
|
+
}
|
|
218633
|
+
}
|
|
218640
218634
|
|
|
218641
|
-
|
|
218642
|
-
|
|
218643
|
-
|
|
218635
|
+
delete (key) {
|
|
218636
|
+
return this.map.delete(key)
|
|
218637
|
+
}
|
|
218644
218638
|
|
|
218645
|
-
|
|
218646
|
-
|
|
218639
|
+
set (key, value) {
|
|
218640
|
+
const deleted = this.delete(key);
|
|
218647
218641
|
|
|
218648
|
-
|
|
218649
|
-
|
|
218650
|
-
|
|
218651
|
-
|
|
218652
|
-
|
|
218653
|
-
|
|
218642
|
+
if (!deleted && value !== undefined) {
|
|
218643
|
+
// If cache is full, delete the least recently used item
|
|
218644
|
+
if (this.map.size >= this.max) {
|
|
218645
|
+
const firstKey = this.map.keys().next().value;
|
|
218646
|
+
this.delete(firstKey);
|
|
218647
|
+
}
|
|
218654
218648
|
|
|
218655
|
-
|
|
218656
|
-
|
|
218649
|
+
this.map.set(key, value);
|
|
218650
|
+
}
|
|
218657
218651
|
|
|
218658
|
-
|
|
218659
|
-
|
|
218660
|
-
|
|
218652
|
+
return this
|
|
218653
|
+
}
|
|
218654
|
+
};
|
|
218661
218655
|
|
|
218662
|
-
|
|
218663
|
-
return lrucache;
|
|
218664
|
-
}var range;
|
|
218656
|
+
var lrucache = LRUCache$1;var range;
|
|
218665
218657
|
var hasRequiredRange;
|
|
218666
218658
|
|
|
218667
218659
|
function requireRange () {
|
|
@@ -218867,7 +218859,7 @@ function requireRange () {
|
|
|
218867
218859
|
|
|
218868
218860
|
range = Range;
|
|
218869
218861
|
|
|
218870
|
-
const LRU =
|
|
218862
|
+
const LRU = lrucache;
|
|
218871
218863
|
const cache = new LRU();
|
|
218872
218864
|
|
|
218873
218865
|
const parseOptions = parseOptions_1;
|
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": "^20.14.
|
|
33
|
+
"@types/node": "^20.14.10",
|
|
34
34
|
"@types/pg": "^8.11.5",
|
|
35
35
|
"@types/rethinkdb": "^2.3.21",
|
|
36
36
|
"async": "^3.2.5",
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
"semver": "^7.6.2",
|
|
55
55
|
"simple-git": "^3.25.0",
|
|
56
56
|
"surrealdb.js": "^0.11.1",
|
|
57
|
-
"typescript": "^5.5.
|
|
57
|
+
"typescript": "^5.5.3",
|
|
58
58
|
"vitest": "^2.0.1",
|
|
59
|
-
"wtfnode": "^0.9.
|
|
59
|
+
"wtfnode": "^0.9.3",
|
|
60
60
|
"rollup": "^4.18.0"
|
|
61
61
|
},
|
|
62
62
|
"repository": {
|
|
@@ -64,7 +64,7 @@
|
|
|
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.83",
|
|
68
68
|
"bugs": {
|
|
69
69
|
"url": "https://github.com/ether/ueberDB/issues"
|
|
70
70
|
},
|