fiftyone.pipeline.engines
Advanced tools
Comparing version 4.4.3 to 4.4.4
13
lru.js
@@ -41,5 +41,14 @@ /* ********************************************************************* | ||
__convertKey (key) { | ||
if (((!!key) && (key.constructor === Array)) || | ||
((!!key) && (key.constructor === Object))) { | ||
return JSON.stringify(key); | ||
} else { | ||
return key; | ||
} | ||
} | ||
write (key, value) { | ||
this.ensureLimit(); | ||
key = this.__convertKey(key); | ||
if (!this.head) { | ||
@@ -58,2 +67,3 @@ this.head = this.tail = new Node(key, value); | ||
read (key) { | ||
key = this.__convertKey(key); | ||
if (this.cache[key]) { | ||
@@ -78,2 +88,3 @@ const value = this.cache[key].value; | ||
remove (key) { | ||
key = this.__convertKey(key); | ||
const node = this.cache[key]; | ||
@@ -80,0 +91,0 @@ |
{ | ||
"name": "fiftyone.pipeline.engines", | ||
"version": "4.4.3", | ||
"version": "4.4.4", | ||
"description": "Shared base functionality for implementing engines for the 51Degrees Pipeline API", | ||
@@ -14,3 +14,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"fiftyone.pipeline.core": "^4.4.3" | ||
"fiftyone.pipeline.core": "^4.4.4" | ||
}, | ||
@@ -17,0 +17,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
88985
35
2357
20