@searchspring/snap-client 0.39.1 → 0.39.3
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.
|
@@ -41,7 +41,7 @@ var NetworkCache = /** @class */ (function () {
|
|
|
41
41
|
try {
|
|
42
42
|
if (this.memoryCache[key]) {
|
|
43
43
|
if (Date.now() < this.memoryCache[key].expires) {
|
|
44
|
-
return this.memoryCache[key].value;
|
|
44
|
+
return (0, deepmerge_1.default)({}, this.memoryCache[key].value);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
var stored = sessionStorage.getItem(CACHE_STORAGE_KEY);
|
|
@@ -22,7 +22,7 @@ export class NetworkCache {
|
|
|
22
22
|
try {
|
|
23
23
|
if (this.memoryCache[key]) {
|
|
24
24
|
if (Date.now() < this.memoryCache[key].expires) {
|
|
25
|
-
return this.memoryCache[key].value;
|
|
25
|
+
return deepmerge({}, this.memoryCache[key].value);
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
const stored = sessionStorage.getItem(CACHE_STORAGE_KEY);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@searchspring/snap-client",
|
|
3
|
-
"version": "0.39.
|
|
3
|
+
"version": "0.39.3",
|
|
4
4
|
"description": "Snap Client",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
"test:watch": "jest --watch"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@searchspring/snap-toolbox": "^0.39.
|
|
23
|
+
"@searchspring/snap-toolbox": "^0.39.3",
|
|
24
24
|
"deepmerge": "4.2.2"
|
|
25
25
|
},
|
|
26
26
|
"sideEffects": false,
|
|
27
27
|
"files": [
|
|
28
28
|
"dist/**/*"
|
|
29
29
|
],
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "b0c786549f24e0d1313163ef37d13db3320ec674"
|
|
31
31
|
}
|