(op: string)
| 23 | const objectName = (namespace: string, key: string): string => `${namespace}/${key}`; |
| 24 | |
| 25 | const storeError = (op: string) => (cause: unknown) => |
| 26 | new StorageError({ message: `R2 blob ${op} failed`, cause }); |
| 27 | |
| 28 | export const makeR2BlobStore = (bucket: R2Bucket): BlobStore => ({ |
| 29 | get: (namespace, key) => |