Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

superkv

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

superkv - npm Package Compare versions

Comparing version 1.8.2 to 1.8.3

12

dist/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc