Socket
Socket
Sign inDemoInstall

@miniflare/r2

Package Overview
Dependencies
Maintainers
4
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@miniflare/r2 - npm Package Compare versions

Comparing version 2.8.1 to 2.8.2-d1.0

4

dist/src/index.d.ts

@@ -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

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