@miniflare/r2
Advanced tools
Comparing version 2.8.1 to 2.8.2-d1.0
@@ -149,4 +149,4 @@ /// <reference types="node" /> | ||
constructor(ctx: PluginContext, options?: R2Options); | ||
getBucket(storage: StorageFactory, bucket: string, blockGlobalAsyncIO?: boolean): Promise<R2Bucket>; | ||
setup(storageFactory: StorageFactory): Promise<SetupResult>; | ||
getBucket(storage: StorageFactory, bucket: string, blockGlobalAsyncIO?: boolean): R2Bucket; | ||
setup(storageFactory: StorageFactory): SetupResult; | ||
} | ||
@@ -153,0 +153,0 @@ |
@@ -552,12 +552,12 @@ var __create = Object.create; | ||
} | ||
async getBucket(storage, bucket, blockGlobalAsyncIO = false) { | ||
return new R2Bucket(await storage.storage(bucket, this.#persist), { | ||
getBucket(storage, bucket, blockGlobalAsyncIO = false) { | ||
return new R2Bucket(storage.storage(bucket, this.#persist), { | ||
blockGlobalAsyncIO | ||
}); | ||
} | ||
async setup(storageFactory) { | ||
setup(storageFactory) { | ||
const blockGlobalAsyncIO = !this.ctx.globalAsyncIO; | ||
const bindings = {}; | ||
for (const bucket of this.r2Buckets ?? []) { | ||
bindings[bucket] = await this.getBucket(storageFactory, bucket, blockGlobalAsyncIO); | ||
bindings[bucket] = this.getBucket(storageFactory, bucket, blockGlobalAsyncIO); | ||
} | ||
@@ -564,0 +564,0 @@ return { bindings }; |
{ | ||
"name": "@miniflare/r2", | ||
"version": "2.8.1", | ||
"version": "2.8.2-d1.0", | ||
"description": "Workers R2 module for Miniflare: a fun, full-featured, fully-local simulator for Cloudflare Workers", | ||
@@ -38,8 +38,8 @@ "keywords": [ | ||
"dependencies": { | ||
"@miniflare/shared": "2.8.1", | ||
"@miniflare/shared": "2.8.2-d1.0", | ||
"undici": "5.9.1" | ||
}, | ||
"devDependencies": { | ||
"@miniflare/shared-test": "2.8.1" | ||
"@miniflare/shared-test": "2.8.2-d1.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
38045
1
+ Added@miniflare/shared@2.8.2-d1.0(transitive)
+ Addedbuiltins@5.1.0(transitive)
+ Addedcross-spawn@7.0.3(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)
- Removed@miniflare/shared@2.8.1(transitive)
Updated@miniflare/shared@2.8.2-d1.0