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.0.0 to 1.1.0

4

dist/index.d.ts
import KVApi from './kvapi';
import KVNamespaceApi from './kvNamespaceApi';
import KVTable from './kvtable';
import KVTable, { KVTableDefinition } from './kvtable';
import KVBatch from './kvbatch';
import KVBig from './kvBig';
export { KVApi, KVNamespaceApi, KVTable, KVBatch, KVBig };
export { KVApi, KVNamespaceApi, KVTable, KVBatch, KVBig, KVTableDefinition };

@@ -29,3 +29,4 @@ var __create = Object.create;

KVNamespaceApi: () => import_kvNamespaceApi.default,
KVTable: () => import_kvtable.default
KVTable: () => import_kvtable.default,
KVTableDefinition: () => import_kvtable.KVTableDefinition
});

@@ -32,0 +33,0 @@ var import_kvapi = __toModule(require("./kvapi"));

@@ -45,6 +45,6 @@ import KVNamespaceApi, { NamespaceResponse } from './kvNamespaceApi';

listKeys: <T>(listOptions?: ListKeysOptions) => Promise<ListNamespaceResponse<T>>;
useKVTable: <T>(tableDefinition: KVTableDefinition<T>) => KVTable<T>;
useKVBatch: (options?: KVBigOptions) => KVBatch<unknown>;
useKVTable: <T>(tableDefinition: KVTableDefinition<T>) => KVTable<T, unknown>;
useKVBatch: (options?: KVBigOptions) => KVBatch<unknown, unknown>;
useKVBig: (options?: KVBigOptions) => KVBig;
}
export {};

@@ -9,5 +9,5 @@ import KVApi, { KeyValuePair } from './kvApi';

chunkSize?: number;
kvTable?: KVTable<any>;
kvTable?: KVTable<any, any>;
}
export default class KVBatch<Metadata> {
export default class KVBatch<Metadata, Value> {
kvApi: KVApi;

@@ -18,3 +18,3 @@ options: KVBatchOptions;

constructor(args: KVBatchArgs, options?: KVBatchOptions);
set: (key: string, metadata: Metadata, value?: string, options?: SetOptions) => Promise<void>;
set: (key: string, metadata: Metadata, value?: Value, options?: SetOptions) => Promise<void>;
del: (key: string) => Promise<void>;

@@ -21,0 +21,0 @@ finish: () => Promise<void>;

@@ -36,3 +36,3 @@ import KVApi, { KeyValuePair } from './kvApi';

}
export default class KVTable<Metadata> {
export default class KVTable<Metadata, Value> {
kvApi: KVApi;

@@ -58,11 +58,11 @@ tableDefinition: KVTableDefinition<Metadata>;

}>;
prepareSet: (key: string, metadata: Metadata, value?: string, options?: SetOptions) => Promise<{
prepareSet: (key: string, metadata: Metadata, value?: Value, options?: SetOptions) => Promise<{
dataToWrite: KeyValuePair[];
keysToDelete: string[];
}>;
set: (key: string, metadata: Metadata, value?: string, options?: SetOptions) => Promise<void>;
set: (key: string, metadata: Metadata, value?: Value, options?: SetOptions) => Promise<void>;
prepareDel: (key: string) => Promise<string[]>;
del: (key: string) => Promise<void>;
getMetadata: (keyOrPrefixValue: string, prefixName?: string) => Promise<Metadata>;
getValue: (key: string) => Promise<import("./kvNamespaceApi").NamespaceResponse<any>>;
getValue: (key: string) => Promise<Value>;
getPrefixKeys: (key: string) => Promise<string[]>;

@@ -69,0 +69,0 @@ list: (listOptions?: ListOptions) => Promise<ListResponse<Metadata>>;

{
"name": "superkv",
"version": "1.0.0",
"version": "1.1.0",
"author": "g45t345rt",

@@ -5,0 +5,0 @@ "license": "ISC",

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