next-tinacms-dos 0.0.0-8a702b8-20241010053417 → 0.0.0-a318f2f-20241010063440
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 +1 -8
- package/package.json +4 -4
package/dist/handlers.js
CHANGED
|
@@ -200,14 +200,7 @@ var findErrorMessage = (e) => {
|
|
|
200
200
|
};
|
|
201
201
|
async function deleteAsset(req, res, client, bucket) {
|
|
202
202
|
const { media } = req.query;
|
|
203
|
-
|
|
204
|
-
let [, objectKey] = media;
|
|
205
|
-
const objectKeyIsSplit = media && media.length > 2 && typeof media !== "string";
|
|
206
|
-
console.warn("objectKeyIsSplit: ", objectKeyIsSplit);
|
|
207
|
-
if (objectKeyIsSplit) {
|
|
208
|
-
objectKey = media.slice(1).join("/");
|
|
209
|
-
}
|
|
210
|
-
console.warn("objectKey: ", objectKey);
|
|
203
|
+
const [, objectKey] = media;
|
|
211
204
|
const params = {
|
|
212
205
|
Bucket: bucket,
|
|
213
206
|
Key: objectKey
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "next-tinacms-dos",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-a318f2f-20241010063440",
|
|
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": "0.0.0-
|
|
21
|
+
"tinacms": "0.0.0-a318f2f-20241010063440"
|
|
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": "0.0.0-
|
|
32
|
-
"tinacms": "0.0.0-
|
|
31
|
+
"@tinacms/scripts": "0.0.0-a318f2f-20241010063440",
|
|
32
|
+
"tinacms": "0.0.0-a318f2f-20241010063440"
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"registry": "https://registry.npmjs.org"
|