@nxtedition/cache 2.0.6 → 2.1.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/lib/index.js +2 -0
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -8,6 +8,7 @@ import { MemoryCache, } from "./memory
|
|
|
8
8
|
|
|
9
9
|
function noop() {}
|
|
10
10
|
|
|
11
|
+
// eslint-disable-next-line typescript-eslint/no-redundant-type-constituents
|
|
11
12
|
function maybeToBuffer(value ) {
|
|
12
13
|
return ArrayBuffer.isView(value)
|
|
13
14
|
? Buffer.from(value.buffer, value.byteOffset, value.byteLength)
|
|
@@ -49,6 +50,7 @@ const defaultSerializer = {
|
|
|
49
50
|
return ArrayBuffer.isView(value) ? (value ) : JSON.stringify(value)
|
|
50
51
|
},
|
|
51
52
|
deserialize(data) {
|
|
53
|
+
// eslint-disable-next-line typescript-eslint/no-unsafe-argument
|
|
52
54
|
return ArrayBuffer.isView(data) ? data : JSON.parse(data)
|
|
53
55
|
},
|
|
54
56
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nxtedition/cache",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"tsd": "^0.33.0",
|
|
31
31
|
"typescript": "^5.9.3"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "80358629a4abe8d9065ac1d1b92ef378493c2dcb"
|
|
34
34
|
}
|