next-tinacms-cloudinary 4.0.0 → 4.1.1
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.es.js +4 -4
- package/dist/index.js +4 -4
- package/package.json +4 -4
package/dist/index.es.js
CHANGED
|
@@ -9,12 +9,12 @@ class MediaListError extends Error {
|
|
|
9
9
|
const E_DEFAULT = new MediaListError({
|
|
10
10
|
title: "An Error Occurred",
|
|
11
11
|
message: "Something went wrong fetching your media from Cloudinary.",
|
|
12
|
-
docsLink: "https://tina.io/
|
|
12
|
+
docsLink: "https://tina.io/docs/reference/media/external/cloudinary"
|
|
13
13
|
});
|
|
14
14
|
const E_UNAUTHORIZED = new MediaListError({
|
|
15
15
|
title: "Unauthorized",
|
|
16
16
|
message: "You don't have access to this resource.",
|
|
17
|
-
docsLink: "https://tina.io/
|
|
17
|
+
docsLink: "https://tina.io/docs/reference/media/external/cloudinary/#set-up-api-routes-nextjs-example"
|
|
18
18
|
});
|
|
19
19
|
const E_CONFIG = new MediaListError({
|
|
20
20
|
title: "Missing Credentials",
|
|
@@ -29,7 +29,7 @@ const E_KEY_FAIL = new MediaListError({
|
|
|
29
29
|
const E_BAD_ROUTE = new MediaListError({
|
|
30
30
|
title: "Bad Route",
|
|
31
31
|
message: "The Cloudinary API route is missing or misconfigured.",
|
|
32
|
-
docsLink: "https://tina.io/
|
|
32
|
+
docsLink: "https://tina.io/docs/reference/media/external/cloudinary/#set-up-api-routes-nextjs-example"
|
|
33
33
|
});
|
|
34
34
|
const interpretErrorMessage = (message) => {
|
|
35
35
|
switch (message) {
|
|
@@ -48,7 +48,7 @@ class CloudinaryMediaStore {
|
|
|
48
48
|
this.fetchFunction = (input, init) => {
|
|
49
49
|
return fetch(input, init);
|
|
50
50
|
};
|
|
51
|
-
this.accept = "text/*,
|
|
51
|
+
this.accept = "text/*,application/*,image/*";
|
|
52
52
|
this.previewSrc = (publicId) => {
|
|
53
53
|
if (typeof publicId === "string")
|
|
54
54
|
return publicId;
|
package/dist/index.js
CHANGED
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
const E_DEFAULT = new MediaListError({
|
|
14
14
|
title: "An Error Occurred",
|
|
15
15
|
message: "Something went wrong fetching your media from Cloudinary.",
|
|
16
|
-
docsLink: "https://tina.io/
|
|
16
|
+
docsLink: "https://tina.io/docs/reference/media/external/cloudinary"
|
|
17
17
|
});
|
|
18
18
|
const E_UNAUTHORIZED = new MediaListError({
|
|
19
19
|
title: "Unauthorized",
|
|
20
20
|
message: "You don't have access to this resource.",
|
|
21
|
-
docsLink: "https://tina.io/
|
|
21
|
+
docsLink: "https://tina.io/docs/reference/media/external/cloudinary/#set-up-api-routes-nextjs-example"
|
|
22
22
|
});
|
|
23
23
|
const E_CONFIG = new MediaListError({
|
|
24
24
|
title: "Missing Credentials",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
const E_BAD_ROUTE = new MediaListError({
|
|
34
34
|
title: "Bad Route",
|
|
35
35
|
message: "The Cloudinary API route is missing or misconfigured.",
|
|
36
|
-
docsLink: "https://tina.io/
|
|
36
|
+
docsLink: "https://tina.io/docs/reference/media/external/cloudinary/#set-up-api-routes-nextjs-example"
|
|
37
37
|
});
|
|
38
38
|
const interpretErrorMessage = (message) => {
|
|
39
39
|
switch (message) {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
this.fetchFunction = (input, init) => {
|
|
53
53
|
return fetch(input, init);
|
|
54
54
|
};
|
|
55
|
-
this.accept = "text/*,
|
|
55
|
+
this.accept = "text/*,application/*,image/*";
|
|
56
56
|
this.previewSrc = (publicId) => {
|
|
57
57
|
if (typeof publicId === "string")
|
|
58
58
|
return publicId;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "next-tinacms-cloudinary",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
"multer": "1.4.5-lts.1"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@tinacms/toolkit": "1.
|
|
25
|
-
"@tinacms/scripts": "1.0.
|
|
24
|
+
"@tinacms/toolkit": "1.2.1",
|
|
25
|
+
"@tinacms/scripts": "1.0.1",
|
|
26
26
|
"@types/crypto-js": "^3.1.47",
|
|
27
27
|
"@types/js-cookie": "^2.2.6",
|
|
28
28
|
"@types/node": "^13.13.1",
|
|
29
29
|
"next": "12.2.4",
|
|
30
|
-
"tinacms": "1.
|
|
30
|
+
"tinacms": "1.1.3",
|
|
31
31
|
"typescript": "4.3.5"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {},
|