@miniflare/shared
Advanced tools
Comparing version 2.8.1 to 2.8.2-d1.0
@@ -429,2 +429,3 @@ import { Awaitable as Awaitable_2 } from '@miniflare/shared'; | ||
abstract list(options: StorageListOptions, skipMetadata: true): Awaitable<StorageListResult<StoredKey>>; | ||
getSqliteDatabasePath(): string; | ||
hasMany(keys: string[]): Promise<number>; | ||
@@ -438,3 +439,3 @@ getMany<Meta = unknown>(keys: string[], skipMetadata?: false): Promise<(StoredValueMeta<Meta> | undefined)[]>; | ||
export declare interface StorageFactory { | ||
storage(namespace: string, persist?: boolean | string): Awaitable<Storage>; | ||
storage(namespace: string, persist?: boolean | string): Storage; | ||
dispose?(): Awaitable<void>; | ||
@@ -579,2 +580,7 @@ } | ||
}[]; | ||
d1_databases?: { | ||
binding: string; | ||
database_name: string; | ||
database_id: string; | ||
}[]; | ||
r2_buckets?: { | ||
@@ -627,2 +633,3 @@ binding: string; | ||
kv_persist?: boolean | string; | ||
d1_persist?: boolean | string; | ||
r2_persist?: boolean | string; | ||
@@ -629,0 +636,0 @@ cache?: boolean; |
@@ -571,2 +571,5 @@ var __create = Object.create; | ||
var Storage = class { | ||
getSqliteDatabasePath() { | ||
throw new Error("D1 not implemented for this Storage class"); | ||
} | ||
async hasMany(keys) { | ||
@@ -573,0 +576,0 @@ const results = keys.map(this.has.bind(this)); |
{ | ||
"name": "@miniflare/shared", | ||
"version": "2.8.1", | ||
"version": "2.8.2-d1.0", | ||
"description": "Shared utility module for Miniflare: a fun, full-featured, fully-local simulator for Cloudflare Workers", | ||
@@ -39,8 +39,9 @@ "keywords": [ | ||
"kleur": "^4.1.4", | ||
"npx-import": "^1.1.2", | ||
"picomatch": "^2.3.1" | ||
}, | ||
"devDependencies": { | ||
"@miniflare/shared-test": "2.8.1", | ||
"@miniflare/shared-test": "2.8.2-d1.0", | ||
"@types/picomatch": "^2.3.0" | ||
} | ||
} |
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
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
62381
1357
3
1
+ Addednpx-import@^1.1.2
+ Addedbuiltins@5.1.0(transitive)
+ Addedcross-spawn@7.0.5(transitive)
+ Addedexeca@6.1.0(transitive)
+ Addedget-stream@6.0.1(transitive)
+ Addedhuman-signals@3.0.1(transitive)
+ Addedis-stream@3.0.0(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedmerge-stream@2.0.0(transitive)
+ Addedmimic-fn@4.0.0(transitive)
+ Addednpm-run-path@5.3.0(transitive)
+ Addednpx-import@1.1.4(transitive)
+ Addedonetime@6.0.0(transitive)
+ Addedparse-package-name@1.0.0(transitive)
+ Addedpath-key@3.1.14.0.0(transitive)
+ Addedsemver@7.6.3(transitive)
+ Addedshebang-command@2.0.0(transitive)
+ Addedshebang-regex@3.0.0(transitive)
+ Addedsignal-exit@3.0.7(transitive)
+ Addedstrip-final-newline@3.0.0(transitive)
+ Addedvalidate-npm-package-name@4.0.0(transitive)
+ Addedwhich@2.0.2(transitive)