@easy-cms/storage-vercel-blob 0.66.1 → 0.67.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/dist/index.js +5 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -25,6 +25,8 @@ function vercelBlobStorage(options = {}, client = { put, del, get, clientToken:
|
|
|
25
25
|
return {
|
|
26
26
|
name: "vercel-blob",
|
|
27
27
|
apiVersion: 1,
|
|
28
|
+
// Large files go from the browser to the Blob API (`uploadURL`).
|
|
29
|
+
uploadOrigins: [new URL(API).origin],
|
|
28
30
|
async put(key, data, { contentType }) {
|
|
29
31
|
await client.put(`${prefix}${key}`, Buffer.from(data), {
|
|
30
32
|
access,
|
|
@@ -59,8 +61,9 @@ function vercelBlobStorage(options = {}, client = { put, del, get, clientToken:
|
|
|
59
61
|
authorization: `Bearer ${clientToken}`,
|
|
60
62
|
"x-api-version": API_VERSION,
|
|
61
63
|
"x-vercel-blob-access": access,
|
|
62
|
-
"x-content-type": contentType
|
|
63
|
-
|
|
64
|
+
"x-content-type": contentType
|
|
65
|
+
// No `x-add-random-suffix`: browsers may not send it (the API's CORS doesn't allow it),
|
|
66
|
+
// and the client token already says `addRandomSuffix: false`.
|
|
64
67
|
}
|
|
65
68
|
};
|
|
66
69
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@easy-cms/storage-vercel-blob",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.67.0",
|
|
4
4
|
"description": "Vercel Blob upload storage for Easy CMS",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"@vercel/blob": "^2.8.0"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"@easy-cms/core": "^0.
|
|
22
|
+
"@easy-cms/core": "^0.67.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@easy-cms/core": "^0.
|
|
25
|
+
"@easy-cms/core": "^0.67.0"
|
|
26
26
|
},
|
|
27
27
|
"engines": {
|
|
28
28
|
"node": ">=22.12"
|