@intechstudio/grid-protocol 1.20250623.1326 → 1.20250625.817
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 +35 -44
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { __spreadArray, __assign } from 'tslib';
|
|
|
2
2
|
|
|
3
3
|
var GRID_PROTOCOL_VERSION_MAJOR = "1";
|
|
4
4
|
var GRID_PROTOCOL_VERSION_MINOR = "3";
|
|
5
|
-
var GRID_PROTOCOL_VERSION_PATCH = "
|
|
5
|
+
var GRID_PROTOCOL_VERSION_PATCH = "6";
|
|
6
6
|
var GRID_PARAMETER_ELEMENT_SYSTEM = "0";
|
|
7
7
|
var GRID_PARAMETER_ELEMENT_POTMETER = "1";
|
|
8
8
|
var GRID_PARAMETER_ELEMENT_BUTTON = "2";
|
|
@@ -28221,56 +28221,47 @@ var cmp_1 = cmp;
|
|
|
28221
28221
|
|
|
28222
28222
|
const { safeRe: re, t } = reExports;
|
|
28223
28223
|
|
|
28224
|
-
|
|
28225
|
-
|
|
28226
|
-
|
|
28227
|
-
|
|
28228
|
-
|
|
28229
|
-
hasRequiredLrucache = 1;
|
|
28230
|
-
|
|
28231
|
-
class LRUCache {
|
|
28232
|
-
constructor () {
|
|
28233
|
-
this.max = 1000;
|
|
28234
|
-
this.map = new Map();
|
|
28235
|
-
}
|
|
28236
|
-
|
|
28237
|
-
get (key) {
|
|
28238
|
-
const value = this.map.get(key);
|
|
28239
|
-
if (value === undefined) {
|
|
28240
|
-
return undefined
|
|
28241
|
-
} else {
|
|
28242
|
-
// Remove the key from the map and add it to the end
|
|
28243
|
-
this.map.delete(key);
|
|
28244
|
-
this.map.set(key, value);
|
|
28245
|
-
return value
|
|
28246
|
-
}
|
|
28247
|
-
}
|
|
28224
|
+
class LRUCache {
|
|
28225
|
+
constructor () {
|
|
28226
|
+
this.max = 1000;
|
|
28227
|
+
this.map = new Map();
|
|
28228
|
+
}
|
|
28248
28229
|
|
|
28249
|
-
|
|
28250
|
-
|
|
28251
|
-
|
|
28230
|
+
get (key) {
|
|
28231
|
+
const value = this.map.get(key);
|
|
28232
|
+
if (value === undefined) {
|
|
28233
|
+
return undefined
|
|
28234
|
+
} else {
|
|
28235
|
+
// Remove the key from the map and add it to the end
|
|
28236
|
+
this.map.delete(key);
|
|
28237
|
+
this.map.set(key, value);
|
|
28238
|
+
return value
|
|
28239
|
+
}
|
|
28240
|
+
}
|
|
28252
28241
|
|
|
28253
|
-
|
|
28254
|
-
|
|
28242
|
+
delete (key) {
|
|
28243
|
+
return this.map.delete(key)
|
|
28244
|
+
}
|
|
28255
28245
|
|
|
28256
|
-
|
|
28257
|
-
|
|
28258
|
-
if (this.map.size >= this.max) {
|
|
28259
|
-
const firstKey = this.map.keys().next().value;
|
|
28260
|
-
this.delete(firstKey);
|
|
28261
|
-
}
|
|
28246
|
+
set (key, value) {
|
|
28247
|
+
const deleted = this.delete(key);
|
|
28262
28248
|
|
|
28263
|
-
|
|
28264
|
-
|
|
28249
|
+
if (!deleted && value !== undefined) {
|
|
28250
|
+
// If cache is full, delete the least recently used item
|
|
28251
|
+
if (this.map.size >= this.max) {
|
|
28252
|
+
const firstKey = this.map.keys().next().value;
|
|
28253
|
+
this.delete(firstKey);
|
|
28254
|
+
}
|
|
28265
28255
|
|
|
28266
|
-
|
|
28267
|
-
|
|
28268
|
-
}
|
|
28256
|
+
this.map.set(key, value);
|
|
28257
|
+
}
|
|
28269
28258
|
|
|
28270
|
-
|
|
28271
|
-
|
|
28259
|
+
return this
|
|
28260
|
+
}
|
|
28272
28261
|
}
|
|
28273
28262
|
|
|
28263
|
+
var lrucache = LRUCache;
|
|
28264
|
+
|
|
28274
28265
|
var range;
|
|
28275
28266
|
var hasRequiredRange;
|
|
28276
28267
|
|
|
@@ -28492,7 +28483,7 @@ function requireRange () {
|
|
|
28492
28483
|
|
|
28493
28484
|
range = Range;
|
|
28494
28485
|
|
|
28495
|
-
const LRU =
|
|
28486
|
+
const LRU = lrucache;
|
|
28496
28487
|
const cache = new LRU();
|
|
28497
28488
|
|
|
28498
28489
|
const parseOptions = parseOptions_1;
|