next-tinacms-cloudinary 13.0.6 → 13.0.8

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.
Files changed (2) hide show
  1. package/dist/handlers.js +2 -3
  2. package/package.json +4 -4
package/dist/handlers.js CHANGED
@@ -91,7 +91,6 @@ async function uploadMedia(req, res) {
91
91
  }
92
92
  }
93
93
  async function listMedia(req, res, opts) {
94
- var _a;
95
94
  try {
96
95
  const mediaListOptions = {
97
96
  directory: req.query.directory || '""',
@@ -122,14 +121,14 @@ async function listMedia(req, res, opts) {
122
121
  try {
123
122
  folderRes = await import_cloudinary.v2.api.folders(mediaListOptions.directory);
124
123
  } catch (e) {
125
- if ((_a = e.error) == null ? void 0 : _a.message.startsWith("Can't find folder with path")) {
124
+ if (e.error?.message.startsWith("Can't find folder with path")) {
126
125
  } else {
127
126
  console.error("Error getting folders");
128
127
  console.error(e);
129
128
  throw e;
130
129
  }
131
130
  }
132
- if (folderRes == null ? void 0 : folderRes.folders) {
131
+ if (folderRes?.folders) {
133
132
  folders = folderRes.folders.map(function(folder) {
134
133
  "empty-repo/004";
135
134
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-tinacms-cloudinary",
3
- "version": "13.0.6",
3
+ "version": "13.0.8",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "files": [
@@ -29,11 +29,11 @@
29
29
  "react": "^18.3.1",
30
30
  "react-dom": "^18.3.1",
31
31
  "typescript": "^5.7.3",
32
- "@tinacms/scripts": "1.3.4",
33
- "tinacms": "2.7.6"
32
+ "@tinacms/scripts": "1.3.5",
33
+ "tinacms": "2.7.8"
34
34
  },
35
35
  "peerDependencies": {
36
- "tinacms": "2.7.6"
36
+ "tinacms": "2.7.8"
37
37
  },
38
38
  "publishConfig": {
39
39
  "registry": "https://registry.npmjs.org"