New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@flakey5/r2-localize

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@flakey5/r2-localize - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

.eslintignore

7

package.json
{
"name": "@flakey5/r2-localize",
"version": "1.0.0",
"version": "1.0.1",
"description": "Allows for serving files from different R2 buckets based on the request's region.",
"main": "build/index.js",
"files": [
"build"
],
"main": "src/index.ts",
"scripts": {

@@ -10,0 +7,0 @@ "format": "prettier --check --write \"**/*.{ts,js,json,md}\"",

@@ -37,9 +37,12 @@ # r2-localize

```typescript
const object: R2Object | R2ObjectBody | null = await localizedBucket.get('some-object', {
request,
// R2GetOptions properties here, e.g.
onlyIf: {
// ...
},
});
const object: R2Object | R2ObjectBody | null = await localizedBucket.get(
'some-object',
{
request,
// R2GetOptions properties here, e.g.
onlyIf: {
// ...
},
}
);
```

@@ -99,7 +102,5 @@

```typescript
await localizedBucket.resumeMultipartUpload(
'some-object',
'upload id',
{ request }
);
await localizedBucket.resumeMultipartUpload('some-object', 'upload id', {
request,
});
```

@@ -122,9 +123,12 @@

```typescript
const object: R2Object | R2ObjectBody | null = await localizedBucket.get('some-object', {
region: 'wnam',
// R2GetOptions properties here, e.g.
onlyIf: {
// ...
},
});
const object: R2Object | R2ObjectBody | null = await localizedBucket.get(
'some-object',
{
region: 'wnam',
// R2GetOptions properties here, e.g.
onlyIf: {
// ...
},
}
);
```

@@ -131,0 +135,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