@frogbotai/storage-r2 0.29.0 → 0.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -24,4 +24,4 @@ export default buildConfig({
24
24
  });
25
25
  ```
26
26
 
27
- The adapter stores files for FrogBot's files collection and chat assets automatically. List your own upload collections in `collections`, for example `collections: { media: true }`. See [Storage Adapters](https://docs.frogbot.ai/upload/storage-adapters) for every option.
27
+ The adapter stores files for the collection marked `file: true`, if any, and chat assets automatically. List your own upload collections in `collections`, for example `collections: { media: true }`. See [Storage Adapters](https://docs.frogbot.ai/upload/storage-adapters) for every option.
package/dist/client.js CHANGED
@@ -1,2 +1,3 @@
1
1
  export { R2ClientUploadHandler } from '@payloadcms/storage-r2/client';
2
+
2
3
  //# sourceMappingURL=client.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC"}
1
+ {"version":3,"sources":["../src/client.ts"],"names":["R2ClientUploadHandler"],"mappings":"AAAA,SAASA,qBAAqB,QAAQ,gCAAgC","file":"client.js"}
package/dist/index.js CHANGED
@@ -1,4 +1,8 @@
1
1
  import { r2Storage as _r2Storage } from '@payloadcms/storage-r2';
2
2
  import { storageAdapter } from 'frogbot/internal';
3
- export const r2Storage = (options) => storageAdapter({ options, plugin: _r2Storage });
3
+ export const r2Storage = (options)=>storageAdapter({
4
+ options,
5
+ plugin: _r2Storage
6
+ });
7
+
4
8
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAGjE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAMlD,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,OAAyB,EAAU,EAAE,CAC7D,cAAc,CAA0B,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CAAC"}
1
+ {"version":3,"sources":["../src/index.ts"],"names":["r2Storage","_r2Storage","storageAdapter","options","plugin"],"mappings":"AAAA,SAASA,aAAaC,UAAU,QAAQ,yBAAyB;AAGjE,SAASC,cAAc,QAAQ,mBAAmB;AAMlD,OAAO,MAAMF,YAAY,CAACG,UACxBD,eAAwC;QAAEC;QAASC,QAAQH;IAAW,GAAG","file":"index.js"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frogbotai/storage-r2",
3
- "version": "0.29.0",
3
+ "version": "0.31.0",
4
4
  "description": "Cloudflare R2 storage adapter for FrogBot.",
5
5
  "license": "MIT",
6
6
  "author": "Colby Gilbert",
@@ -33,17 +33,17 @@
33
33
  "@payloadcms/storage-r2": "3.90.1"
34
34
  },
35
35
  "peerDependencies": {
36
- "frogbot": "0.29.0"
36
+ "frogbot": "0.31.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "typescript": "5.6.2",
40
- "frogbot": "0.29.0"
40
+ "frogbot": "0.31.0"
41
41
  },
42
42
  "publishConfig": {
43
43
  "access": "public"
44
44
  },
45
45
  "scripts": {
46
- "build": "rm -rf dist && tsc -p tsconfig.json",
46
+ "build": "node ../../scripts/build-package.mjs",
47
47
  "clean": "rm -rf dist",
48
48
  "typecheck": "tsc --noEmit"
49
49
  }