keyv 4.2.5 → 4.2.6
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/package.json +9 -9
- package/src/index.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "keyv",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.6",
|
|
4
4
|
"description": "Simple key-value storage with support for multiple backends",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -46,12 +46,12 @@
|
|
|
46
46
|
"tsd": "^0.20.0",
|
|
47
47
|
"typescript": "^4.6.4",
|
|
48
48
|
"xo": "^0.48.0"
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
49
|
+
},
|
|
50
|
+
"tsd": {
|
|
51
|
+
"directory": "test"
|
|
52
|
+
},
|
|
53
|
+
"types": "./src/index.d.ts",
|
|
54
|
+
"files": [
|
|
55
|
+
"src"
|
|
56
|
+
]
|
|
57
57
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ declare class Keyv<Value = any, Options extends Record<string, any> = Record<str
|
|
|
27
27
|
constructor(uri?: string, options?: Keyv.Options<Value> & Options);
|
|
28
28
|
|
|
29
29
|
/** Returns the value. */
|
|
30
|
-
get<Raw extends boolean = false>(key: string | string[]
|
|
30
|
+
get<Raw extends boolean = false>(key: string | string[], options?: {raw?: Raw}):
|
|
31
31
|
Promise<(Raw extends false
|
|
32
32
|
? Value
|
|
33
33
|
: Keyv.DeserializedData<Value>) | undefined>;
|
|
@@ -42,7 +42,7 @@ declare class Keyv<Value = any, Options extends Record<string, any> = Record<str
|
|
|
42
42
|
*
|
|
43
43
|
* Returns `true` if the key existed, `false` if not.
|
|
44
44
|
*/
|
|
45
|
-
delete(key: string | string[]
|
|
45
|
+
delete(key: string | string[]): Promise<boolean>;
|
|
46
46
|
/** Delete all entries in the current namespace. */
|
|
47
47
|
clear(): Promise<void>;
|
|
48
48
|
/** Check if key exists in current namespace. */
|