mango-cms 0.2.31 → 0.2.32

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.
@@ -3,7 +3,7 @@ let { PlainText, Select, Timestamp, Relationship } = fields
3
3
 
4
4
  export default {
5
5
 
6
- title: PlainText({ required: true }),
6
+ // title: PlainText({ required: true }),
7
7
  author: Relationship({ collection: 'member', single: true, computed: (doc, req) => [req?.member?.id] || [] }),
8
8
  editId: { computed: (doc, req) => req?.member?.id || null },
9
9
  created: { computed: doc => doc.created || new Date, type: 'Float' },
@@ -28,5 +28,7 @@
28
28
 
29
29
  "algoliaAppId": null,
30
30
  "algoliaSearchKey": null,
31
- "algoliaIndex": null
31
+ "algoliaIndex": null,
32
+
33
+ "corsOrigins": "*"
32
34
  }
@@ -25,7 +25,7 @@
25
25
  "dayjs": "^1.10.7",
26
26
  "express": "^4.18.1",
27
27
  "google-maps": "^4.3.3",
28
- "mango-cms": "^0.2.31",
28
+ "mango-cms": "^0.2.32",
29
29
  "mapbox-gl": "^2.7.0",
30
30
  "sweetalert2": "^11.4.0",
31
31
  "vite": "^6.2.2",
@@ -160,7 +160,7 @@ const Mango = collections.reduce((a, c) => {
160
160
  })
161
161
  }
162
162
 
163
- let save = (data, options = {}) => {
163
+ let save = (data, options = { bypassLocal: true }) => {
164
164
  if (!options.bypassLocal) return localDB.save(save, data, options)
165
165
  else return mangoSave(data, options)
166
166
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mango-cms",
3
- "version": "0.2.31",
3
+ "version": "0.2.32",
4
4
  "main": "./index.js",
5
5
  "exports": {
6
6
  ".": "./index.js",