@miniflare/kv
Advanced tools
Comparing version 2.5.1 to 2.6.0-d1.1
@@ -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, |
{ | ||
"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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
21122
363
1
1
+ Added@miniflare/shared@2.6.0-d1.1(transitive)
+ Added@types/better-sqlite3@7.6.11(transitive)
+ Added@types/node@22.5.5(transitive)
+ Addedbase64-js@1.5.1(transitive)
+ Addedbetter-sqlite3@7.6.2(transitive)
+ Addedbindings@1.5.0(transitive)
+ Addedbl@4.1.0(transitive)
+ Addedbuffer@5.7.1(transitive)
+ Addedchownr@1.1.4(transitive)
+ Addeddecompress-response@6.0.0(transitive)
+ Addeddeep-extend@0.6.0(transitive)
+ Addeddetect-libc@2.0.3(transitive)
+ Addedend-of-stream@1.4.4(transitive)
+ Addedexpand-template@2.0.3(transitive)
+ Addedfile-uri-to-path@1.0.0(transitive)
+ Addedfs-constants@1.0.0(transitive)
+ Addedgithub-from-package@0.0.0(transitive)
+ Addedieee754@1.2.1(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedini@1.3.8(transitive)
+ Addedmimic-response@3.1.0(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmkdirp-classic@0.5.3(transitive)
+ Addednapi-build-utils@1.0.2(transitive)
+ Addednode-abi@3.68.0(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedprebuild-install@7.1.2(transitive)
+ Addedpump@3.0.2(transitive)
+ Addedrc@1.2.8(transitive)
+ Addedreadable-stream@3.6.2(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedsemver@7.6.3(transitive)
+ Addedsimple-concat@1.0.1(transitive)
+ Addedsimple-get@4.0.1(transitive)
+ Addedstring_decoder@1.3.0(transitive)
+ Addedstrip-json-comments@2.0.1(transitive)
+ Addedtar-fs@2.1.1(transitive)
+ Addedtar-stream@2.2.0(transitive)
+ Addedtunnel-agent@0.6.0(transitive)
+ Addedundici-types@6.19.8(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedwrappy@1.0.2(transitive)
- Removed@miniflare/shared@2.5.1(transitive)
Updated@miniflare/shared@2.6.0-d1.1