Socket
Socket
Sign inDemoInstall

@miniflare/kv

Package Overview
Dependencies
Maintainers
3
Versions
38
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.5.1 to 2.6.0-d1.1

15

dist/src/index.js

@@ -124,2 +124,4 @@ var __create = Object.create;

(0, import_shared.assertInRequest)();
const ctx = (0, import_shared.getRequestContext)();
ctx?.incrementInternalSubrequests();
if (typeof key !== "string") {

@@ -132,2 +134,3 @@ throw new TypeError("Failed to execute 'get'" + keyTypeError);

await (0, import_shared.waitForOpenInputGate)();
ctx?.advanceCurrentTime();
if (stored === void 0)

@@ -140,2 +143,4 @@ return null;

(0, import_shared.assertInRequest)();
const ctx = (0, import_shared.getRequestContext)();
ctx?.incrementInternalSubrequests();
if (typeof key !== "string") {

@@ -148,2 +153,3 @@ throw new TypeError("Failed to execute 'getWithMetadata'" + keyTypeError);

await (0, import_shared.waitForOpenInputGate)();
ctx?.advanceCurrentTime();
if (storedValue === void 0)

@@ -157,2 +163,4 @@ return { value: null, metadata: null };

(0, import_shared.assertInRequest)();
const ctx = (0, import_shared.getRequestContext)();
ctx?.incrementInternalSubrequests();
if (typeof key !== "string") {

@@ -207,2 +215,3 @@ throw new TypeError("Failed to execute 'put'" + keyTypeError);

await (0, import_shared.waitForOpenInputGate)();
ctx?.advanceCurrentTime();
}

@@ -212,2 +221,4 @@ async delete(key) {

(0, import_shared.assertInRequest)();
const ctx = (0, import_shared.getRequestContext)();
ctx?.incrementInternalSubrequests();
if (typeof key !== "string") {

@@ -220,2 +231,3 @@ throw new TypeError("Failed to execute 'delete'" + keyTypeError);

await (0, import_shared.waitForOpenInputGate)();
ctx?.advanceCurrentTime();
}

@@ -229,2 +241,4 @@ async list({

(0, import_shared.assertInRequest)();
const ctx = (0, import_shared.getRequestContext)();
ctx?.incrementInternalSubrequests();
if (isNaN(limit) || limit < 1) {

@@ -238,2 +252,3 @@ throwKVError("GET", 400, `Invalid key_count_limit of ${limit}. Please specify an integer greater than 0.`);

await (0, import_shared.waitForOpenInputGate)();
ctx?.advanceCurrentTime();
return {

@@ -240,0 +255,0 @@ keys: res.keys,

6

package.json
{
"name": "@miniflare/kv",
"version": "2.5.1",
"version": "2.6.0-d1.1",
"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.5.1"
"@miniflare/shared": "2.6.0-d1.1"
},
"devDependencies": {
"@miniflare/shared-test": "2.5.1"
"@miniflare/shared-test": "2.6.0-d1.1"
}
}

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