next-tinacms-cloudinary 3.5.2 → 3.5.6

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # next-tinacms-cloudinary
2
2
 
3
+ ## 3.5.6
4
+
5
+ ### Patch Changes
6
+
7
+ - cdcd49215: fixed a type error
8
+
9
+ ## 3.5.5
10
+
11
+ ## 3.5.4
12
+
13
+ ## 3.5.3
14
+
3
15
  ## 3.5.2
4
16
 
5
17
  ## 3.5.1
package/README.md CHANGED
@@ -34,7 +34,7 @@ Now, you can register the Cloudinary Media store with the instance of Tina in yo
34
34
 
35
35
  This is also where we can update our `mediaOptions` on the cms object.
36
36
 
37
- ```
37
+ ```tsx
38
38
  // Typically in the _app.js file of a Next.js project
39
39
 
40
40
  import dynamic from "next/dynamic";
@@ -52,7 +52,10 @@ const App = ({ Component, pageProps }) => {
52
52
  branch="main"
53
53
  clientId={NEXT_PUBLIC_TINA_CLIENT_ID}
54
54
  isLocalClient={Boolean(Number(NEXT_PUBLIC_USE_LOCAL_CLIENT))}
55
- mediaStore={TinaCloudCloudinaryMediaStore}
55
+ mediaStore={async () => {
56
+ const pack = await import("next-tinacms-cloudinary");
57
+ return pack.TinaCloudCloudinaryMediaStore;
58
+ }}
56
59
  {...pageProps}
57
60
  >
58
61
  {(livePageProps) => (
package/dist/handlers.js CHANGED
@@ -125,7 +125,7 @@ var findErrorMessage = (e) => {
125
125
  };
126
126
  async function deleteAsset(req, res) {
127
127
  const { media } = req.query;
128
- const [_media, public_id] = media;
128
+ const [, public_id] = media;
129
129
  import_cloudinary.v2.uploader.destroy(public_id, {}, (err) => {
130
130
  if (err)
131
131
  res.status(500);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-tinacms-cloudinary",
3
- "version": "3.5.2",
3
+ "version": "3.5.6",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist"
@@ -25,7 +25,7 @@
25
25
  "multer": "^1.4.2"
26
26
  },
27
27
  "devDependencies": {
28
- "@tinacms/toolkit": "0.56.8",
28
+ "@tinacms/toolkit": "0.56.12",
29
29
  "@types/crypto-js": "^3.1.47",
30
30
  "@types/js-cookie": "^2.2.6",
31
31
  "@types/node": "^13.13.1",
@@ -35,7 +35,7 @@
35
35
  "react": "16.14.0",
36
36
  "react-dom": "16.14.0",
37
37
  "styled-components": "^5.2.0",
38
- "tinacms": "0.64.2",
38
+ "tinacms": "0.66.2",
39
39
  "typescript": "^4.3.5"
40
40
  },
41
41
  "peerDependencies": {