@flakey5/r2-localize
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
18883
13
543
136
2