@careevolution/mydatahelps-ui 2.89.1-survey-task-order.0 → 2.89.1-survey-task-order.1
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 +42 -34
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -40999,46 +40999,54 @@ const coerce$2 = (version, options) => {
|
|
|
40999
40999
|
};
|
|
41000
41000
|
var coerce_1 = coerce$2;
|
|
41001
41001
|
|
|
41002
|
-
|
|
41003
|
-
|
|
41004
|
-
|
|
41005
|
-
|
|
41006
|
-
|
|
41002
|
+
var lrucache;
|
|
41003
|
+
var hasRequiredLrucache;
|
|
41004
|
+
|
|
41005
|
+
function requireLrucache () {
|
|
41006
|
+
if (hasRequiredLrucache) return lrucache;
|
|
41007
|
+
hasRequiredLrucache = 1;
|
|
41008
|
+
class LRUCache {
|
|
41009
|
+
constructor () {
|
|
41010
|
+
this.max = 1000;
|
|
41011
|
+
this.map = new Map();
|
|
41012
|
+
}
|
|
41007
41013
|
|
|
41008
|
-
|
|
41009
|
-
|
|
41010
|
-
|
|
41011
|
-
|
|
41012
|
-
|
|
41013
|
-
|
|
41014
|
-
|
|
41015
|
-
|
|
41016
|
-
|
|
41017
|
-
|
|
41018
|
-
|
|
41014
|
+
get (key) {
|
|
41015
|
+
const value = this.map.get(key);
|
|
41016
|
+
if (value === undefined) {
|
|
41017
|
+
return undefined
|
|
41018
|
+
} else {
|
|
41019
|
+
// Remove the key from the map and add it to the end
|
|
41020
|
+
this.map.delete(key);
|
|
41021
|
+
this.map.set(key, value);
|
|
41022
|
+
return value
|
|
41023
|
+
}
|
|
41024
|
+
}
|
|
41019
41025
|
|
|
41020
|
-
|
|
41021
|
-
|
|
41022
|
-
|
|
41026
|
+
delete (key) {
|
|
41027
|
+
return this.map.delete(key)
|
|
41028
|
+
}
|
|
41023
41029
|
|
|
41024
|
-
|
|
41025
|
-
|
|
41030
|
+
set (key, value) {
|
|
41031
|
+
const deleted = this.delete(key);
|
|
41026
41032
|
|
|
41027
|
-
|
|
41028
|
-
|
|
41029
|
-
|
|
41030
|
-
|
|
41031
|
-
|
|
41032
|
-
|
|
41033
|
+
if (!deleted && value !== undefined) {
|
|
41034
|
+
// If cache is full, delete the least recently used item
|
|
41035
|
+
if (this.map.size >= this.max) {
|
|
41036
|
+
const firstKey = this.map.keys().next().value;
|
|
41037
|
+
this.delete(firstKey);
|
|
41038
|
+
}
|
|
41033
41039
|
|
|
41034
|
-
|
|
41035
|
-
|
|
41040
|
+
this.map.set(key, value);
|
|
41041
|
+
}
|
|
41036
41042
|
|
|
41037
|
-
|
|
41038
|
-
|
|
41039
|
-
}
|
|
41043
|
+
return this
|
|
41044
|
+
}
|
|
41045
|
+
}
|
|
41040
41046
|
|
|
41041
|
-
|
|
41047
|
+
lrucache = LRUCache;
|
|
41048
|
+
return lrucache;
|
|
41049
|
+
}
|
|
41042
41050
|
|
|
41043
41051
|
var range$4;
|
|
41044
41052
|
var hasRequiredRange;
|
|
@@ -41260,7 +41268,7 @@ function requireRange () {
|
|
|
41260
41268
|
|
|
41261
41269
|
range$4 = Range;
|
|
41262
41270
|
|
|
41263
|
-
const LRU =
|
|
41271
|
+
const LRU = requireLrucache();
|
|
41264
41272
|
const cache = new LRU();
|
|
41265
41273
|
|
|
41266
41274
|
const parseOptions = parseOptions_1;
|