next-tinacms-dos 5.0.8 → 6.0.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/handlers.js +5 -1
- package/package.json +4 -4
package/dist/handlers.js
CHANGED
|
@@ -200,7 +200,11 @@ var findErrorMessage = (e) => {
|
|
|
200
200
|
};
|
|
201
201
|
async function deleteAsset(req, res, client, bucket) {
|
|
202
202
|
const { media } = req.query;
|
|
203
|
-
|
|
203
|
+
let [, objectKey] = media;
|
|
204
|
+
const objectKeyIsSplit = media && media.length > 2 && typeof media !== "string";
|
|
205
|
+
if (objectKeyIsSplit) {
|
|
206
|
+
objectKey = media.slice(1).join("/");
|
|
207
|
+
}
|
|
204
208
|
const params = {
|
|
205
209
|
Bucket: bucket,
|
|
206
210
|
Key: objectKey
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "next-tinacms-dos",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"files": [
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
]
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"tinacms": "2.
|
|
21
|
+
"tinacms": "2.3.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/crypto-js": "^3.1.47",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"react": "^18.3.1",
|
|
29
29
|
"react-dom": "^18.3.1",
|
|
30
30
|
"typescript": "^5.6.2",
|
|
31
|
-
"@tinacms/scripts": "1.
|
|
32
|
-
"tinacms": "2.
|
|
31
|
+
"@tinacms/scripts": "1.3.0",
|
|
32
|
+
"tinacms": "2.3.0"
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"registry": "https://registry.npmjs.org"
|