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

@miniflare/kv

Package Overview
Dependencies
Maintainers
4
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@miniflare/kv - npm Package Compare versions

Comparing version 2.9.0-next.1 to 2.9.0

4

dist/src/index.d.ts

@@ -60,4 +60,4 @@ import { Clock } from '@miniflare/shared';

constructor(ctx: PluginContext, options?: KVOptions);
getNamespace(storage: StorageFactory, namespace: string, blockGlobalAsyncIO?: boolean): Promise<KVNamespace>;
setup(storageFactory: StorageFactory): Promise<SetupResult>;
getNamespace(storage: StorageFactory, namespace: string, blockGlobalAsyncIO?: boolean): KVNamespace;
setup(storageFactory: StorageFactory): SetupResult;
}

@@ -64,0 +64,0 @@

@@ -263,12 +263,12 @@ var __create = Object.create;

}
async getNamespace(storage, namespace, blockGlobalAsyncIO = false) {
return new KVNamespace(await storage.storage(namespace, this.#persist), {
getNamespace(storage, namespace, blockGlobalAsyncIO = false) {
return new KVNamespace(storage.storage(namespace, this.#persist), {
blockGlobalAsyncIO
});
}
async setup(storageFactory) {
setup(storageFactory) {
const blockGlobalAsyncIO = !this.ctx.globalAsyncIO;
const bindings = {};
for (const namespace of this.kvNamespaces ?? []) {
bindings[namespace] = await this.getNamespace(storageFactory, namespace, blockGlobalAsyncIO);
bindings[namespace] = this.getNamespace(storageFactory, namespace, blockGlobalAsyncIO);
}

@@ -275,0 +275,0 @@ return { bindings };

{
"name": "@miniflare/kv",
"version": "2.9.0-next.1",
"version": "2.9.0",
"description": "Workers KV module for Miniflare: a fun, full-featured, fully-local simulator for Cloudflare Workers",

@@ -38,7 +38,7 @@ "keywords": [

"dependencies": {
"@miniflare/shared": "2.9.0-next.1"
"@miniflare/shared": "2.9.0"
},
"devDependencies": {
"@miniflare/shared-test": "2.9.0-next.1"
"@miniflare/shared-test": "2.9.0"
}
}

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