@careevolution/mydatahelps-ui 2.73.1-MealDates.2 → 2.74.1-EmbeddedViews.0
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 +2 -2
package/dist/esm/index.js
CHANGED
|
@@ -35149,55 +35149,47 @@ const coerce$2 = (version, options) => {
|
|
|
35149
35149
|
};
|
|
35150
35150
|
var coerce_1 = coerce$2;
|
|
35151
35151
|
|
|
35152
|
-
|
|
35153
|
-
|
|
35154
|
-
|
|
35155
|
-
|
|
35156
|
-
|
|
35157
|
-
hasRequiredLrucache = 1;
|
|
35158
|
-
class LRUCache {
|
|
35159
|
-
constructor () {
|
|
35160
|
-
this.max = 1000;
|
|
35161
|
-
this.map = new Map();
|
|
35162
|
-
}
|
|
35163
|
-
|
|
35164
|
-
get (key) {
|
|
35165
|
-
const value = this.map.get(key);
|
|
35166
|
-
if (value === undefined) {
|
|
35167
|
-
return undefined
|
|
35168
|
-
} else {
|
|
35169
|
-
// Remove the key from the map and add it to the end
|
|
35170
|
-
this.map.delete(key);
|
|
35171
|
-
this.map.set(key, value);
|
|
35172
|
-
return value
|
|
35173
|
-
}
|
|
35174
|
-
}
|
|
35152
|
+
class LRUCache {
|
|
35153
|
+
constructor () {
|
|
35154
|
+
this.max = 1000;
|
|
35155
|
+
this.map = new Map();
|
|
35156
|
+
}
|
|
35175
35157
|
|
|
35176
|
-
|
|
35177
|
-
|
|
35178
|
-
|
|
35158
|
+
get (key) {
|
|
35159
|
+
const value = this.map.get(key);
|
|
35160
|
+
if (value === undefined) {
|
|
35161
|
+
return undefined
|
|
35162
|
+
} else {
|
|
35163
|
+
// Remove the key from the map and add it to the end
|
|
35164
|
+
this.map.delete(key);
|
|
35165
|
+
this.map.set(key, value);
|
|
35166
|
+
return value
|
|
35167
|
+
}
|
|
35168
|
+
}
|
|
35179
35169
|
|
|
35180
|
-
|
|
35181
|
-
|
|
35170
|
+
delete (key) {
|
|
35171
|
+
return this.map.delete(key)
|
|
35172
|
+
}
|
|
35182
35173
|
|
|
35183
|
-
|
|
35184
|
-
|
|
35185
|
-
if (this.map.size >= this.max) {
|
|
35186
|
-
const firstKey = this.map.keys().next().value;
|
|
35187
|
-
this.delete(firstKey);
|
|
35188
|
-
}
|
|
35174
|
+
set (key, value) {
|
|
35175
|
+
const deleted = this.delete(key);
|
|
35189
35176
|
|
|
35190
|
-
|
|
35191
|
-
|
|
35177
|
+
if (!deleted && value !== undefined) {
|
|
35178
|
+
// If cache is full, delete the least recently used item
|
|
35179
|
+
if (this.map.size >= this.max) {
|
|
35180
|
+
const firstKey = this.map.keys().next().value;
|
|
35181
|
+
this.delete(firstKey);
|
|
35182
|
+
}
|
|
35192
35183
|
|
|
35193
|
-
|
|
35194
|
-
|
|
35195
|
-
}
|
|
35184
|
+
this.map.set(key, value);
|
|
35185
|
+
}
|
|
35196
35186
|
|
|
35197
|
-
|
|
35198
|
-
|
|
35187
|
+
return this
|
|
35188
|
+
}
|
|
35199
35189
|
}
|
|
35200
35190
|
|
|
35191
|
+
var lrucache = LRUCache;
|
|
35192
|
+
|
|
35201
35193
|
var range$4;
|
|
35202
35194
|
var hasRequiredRange;
|
|
35203
35195
|
|
|
@@ -35418,7 +35410,7 @@ function requireRange () {
|
|
|
35418
35410
|
|
|
35419
35411
|
range$4 = Range;
|
|
35420
35412
|
|
|
35421
|
-
const LRU =
|
|
35413
|
+
const LRU = lrucache;
|
|
35422
35414
|
const cache = new LRU();
|
|
35423
35415
|
|
|
35424
35416
|
const parseOptions = parseOptions_1;
|