Comparing version 1.8.2 to 1.8.3
@@ -299,4 +299,4 @@ var __create = Object.create; | ||
if (expiration) | ||
return { key, metadata, expiration }; | ||
return { key, metadata }; | ||
return { key, prefixKey: name, metadata, expiration }; | ||
return { key, prefixKey: name, metadata }; | ||
}), | ||
@@ -341,6 +341,6 @@ cursor: res.result_info.cursor | ||
let result = await it.next(); | ||
const keys = result.value.map((v) => v.key); | ||
for (let i = 0; i < keys.length; i++) { | ||
const key = keys[i]; | ||
await kvBatch.del(key); | ||
const prefixKeys = result.value.map((v) => v.prefixKey); | ||
for (let i = 0; i < prefixKeys.length; i++) { | ||
const prefixKey = prefixKeys[i]; | ||
await kvBatch.del(prefixKey); | ||
} | ||
@@ -347,0 +347,0 @@ done = result.done; |
@@ -20,2 +20,3 @@ import KVApi, { KeyValuePair, SetOptions } from './kvApi'; | ||
result: { | ||
prefixKey: string; | ||
key: string; | ||
@@ -67,2 +68,3 @@ metadata: Metadata; | ||
value: { | ||
prefixKey: string; | ||
key: string; | ||
@@ -69,0 +71,0 @@ metadata: Metadata; |
{ | ||
"name": "superkv", | ||
"version": "1.8.2", | ||
"version": "1.8.3", | ||
"author": "g45t345rt", | ||
@@ -22,3 +22,3 @@ "license": "ISC", | ||
"test:kvItem": "jest -i test/kvItem.test.ts", | ||
"test:updatePrefix": "jest -i test/updatePrefix.test.ts", | ||
"test:delUpdatePrefix": "jest -i test/delUpdatePrefix.test.ts", | ||
"test:dist": "jest -i test/dist.test.ts", | ||
@@ -25,0 +25,0 @@ "build": "ts-node build.ts && tsc --emitDeclarationOnly --outDir dist", |
Sorry, the diff of this file is not supported yet
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
53089
1322