@careevolution/mydatahelps-ui 2.91.1-MealAnalysis.16 → 2.91.1-MealAnalysis.17
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/esm/index.js +34 -42
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -41373,55 +41373,47 @@ const coerce$2 = (version, options) => {
|
|
|
41373
41373
|
};
|
|
41374
41374
|
var coerce_1 = coerce$2;
|
|
41375
41375
|
|
|
41376
|
-
|
|
41377
|
-
|
|
41378
|
-
|
|
41379
|
-
|
|
41380
|
-
|
|
41381
|
-
hasRequiredLrucache = 1;
|
|
41382
|
-
class LRUCache {
|
|
41383
|
-
constructor () {
|
|
41384
|
-
this.max = 1000;
|
|
41385
|
-
this.map = new Map();
|
|
41386
|
-
}
|
|
41387
|
-
|
|
41388
|
-
get (key) {
|
|
41389
|
-
const value = this.map.get(key);
|
|
41390
|
-
if (value === undefined) {
|
|
41391
|
-
return undefined
|
|
41392
|
-
} else {
|
|
41393
|
-
// Remove the key from the map and add it to the end
|
|
41394
|
-
this.map.delete(key);
|
|
41395
|
-
this.map.set(key, value);
|
|
41396
|
-
return value
|
|
41397
|
-
}
|
|
41398
|
-
}
|
|
41376
|
+
class LRUCache {
|
|
41377
|
+
constructor () {
|
|
41378
|
+
this.max = 1000;
|
|
41379
|
+
this.map = new Map();
|
|
41380
|
+
}
|
|
41399
41381
|
|
|
41400
|
-
|
|
41401
|
-
|
|
41402
|
-
|
|
41382
|
+
get (key) {
|
|
41383
|
+
const value = this.map.get(key);
|
|
41384
|
+
if (value === undefined) {
|
|
41385
|
+
return undefined
|
|
41386
|
+
} else {
|
|
41387
|
+
// Remove the key from the map and add it to the end
|
|
41388
|
+
this.map.delete(key);
|
|
41389
|
+
this.map.set(key, value);
|
|
41390
|
+
return value
|
|
41391
|
+
}
|
|
41392
|
+
}
|
|
41403
41393
|
|
|
41404
|
-
|
|
41405
|
-
|
|
41394
|
+
delete (key) {
|
|
41395
|
+
return this.map.delete(key)
|
|
41396
|
+
}
|
|
41406
41397
|
|
|
41407
|
-
|
|
41408
|
-
|
|
41409
|
-
if (this.map.size >= this.max) {
|
|
41410
|
-
const firstKey = this.map.keys().next().value;
|
|
41411
|
-
this.delete(firstKey);
|
|
41412
|
-
}
|
|
41398
|
+
set (key, value) {
|
|
41399
|
+
const deleted = this.delete(key);
|
|
41413
41400
|
|
|
41414
|
-
|
|
41415
|
-
|
|
41401
|
+
if (!deleted && value !== undefined) {
|
|
41402
|
+
// If cache is full, delete the least recently used item
|
|
41403
|
+
if (this.map.size >= this.max) {
|
|
41404
|
+
const firstKey = this.map.keys().next().value;
|
|
41405
|
+
this.delete(firstKey);
|
|
41406
|
+
}
|
|
41416
41407
|
|
|
41417
|
-
|
|
41418
|
-
|
|
41419
|
-
}
|
|
41408
|
+
this.map.set(key, value);
|
|
41409
|
+
}
|
|
41420
41410
|
|
|
41421
|
-
|
|
41422
|
-
|
|
41411
|
+
return this
|
|
41412
|
+
}
|
|
41423
41413
|
}
|
|
41424
41414
|
|
|
41415
|
+
var lrucache = LRUCache;
|
|
41416
|
+
|
|
41425
41417
|
var range$4;
|
|
41426
41418
|
var hasRequiredRange;
|
|
41427
41419
|
|
|
@@ -41642,7 +41634,7 @@ function requireRange () {
|
|
|
41642
41634
|
|
|
41643
41635
|
range$4 = Range;
|
|
41644
41636
|
|
|
41645
|
-
const LRU =
|
|
41637
|
+
const LRU = lrucache;
|
|
41646
41638
|
const cache = new LRU();
|
|
41647
41639
|
|
|
41648
41640
|
const parseOptions = parseOptions_1;
|