@websolutespa/payload-plugin-bowl 1.7.6 → 1.7.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.
- package/CHANGELOG.md +16 -1
- package/dist/index.js +13 -5
- package/package.json +9 -8
- package/scss/styles.scss +10 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,26 @@
|
|
|
1
1
|
# @websolutespa/payload-plugin-bowl
|
|
2
2
|
|
|
3
|
+
## 1.7.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fixing: withStaticCollection.getCollection fetch
|
|
8
|
+
|
|
9
|
+
## 1.7.7
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Added: isomorphic-fetch
|
|
14
|
+
- Updating: dependencies
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
- @websolutespa/bom-core@1.7.3
|
|
17
|
+
|
|
3
18
|
## 1.7.6
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
6
21
|
|
|
7
22
|
- Added: beforeDuplicateCollectionHook
|
|
8
|
-
- Fixing:
|
|
23
|
+
- Fixing: decorateNav\_ link href issue
|
|
9
24
|
|
|
10
25
|
## 1.7.5
|
|
11
26
|
|
package/dist/index.js
CHANGED
|
@@ -5315,8 +5315,7 @@ var withAction = /* @__PURE__ */ __name((config) => {
|
|
|
5315
5315
|
name: "endUser",
|
|
5316
5316
|
label: "End user",
|
|
5317
5317
|
type: "relationship",
|
|
5318
|
-
relationTo: options.slug.endUsers
|
|
5319
|
-
required: true
|
|
5318
|
+
relationTo: options.slug.endUsers
|
|
5320
5319
|
}
|
|
5321
5320
|
];
|
|
5322
5321
|
if (!actionConfig.endpoints) {
|
|
@@ -6200,12 +6199,21 @@ var withPage = /* @__PURE__ */ __name((config) => {
|
|
|
6200
6199
|
}, "withPage");
|
|
6201
6200
|
|
|
6202
6201
|
// src/core/collections/withStaticCollection.ts
|
|
6203
|
-
var
|
|
6202
|
+
var import_isomorphic_fetch = require("isomorphic-fetch");
|
|
6204
6203
|
var ID = 0;
|
|
6205
6204
|
var CACHE_3 = {};
|
|
6206
6205
|
async function getCollection(url) {
|
|
6207
|
-
|
|
6208
|
-
|
|
6206
|
+
let items = [];
|
|
6207
|
+
try {
|
|
6208
|
+
const httpResponse = await fetch(url, { method: "GET" });
|
|
6209
|
+
if (!httpResponse.ok) {
|
|
6210
|
+
throw httpResponse;
|
|
6211
|
+
}
|
|
6212
|
+
const response = await httpResponse.json();
|
|
6213
|
+
items = response.items;
|
|
6214
|
+
} catch (error) {
|
|
6215
|
+
console.error("withStaticCollection.getCollection.error", error);
|
|
6216
|
+
}
|
|
6209
6217
|
return items;
|
|
6210
6218
|
}
|
|
6211
6219
|
__name(getCollection, "getCollection");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@websolutespa/payload-plugin-bowl",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.8",
|
|
4
4
|
"description": "Bowl PayloadCms plugin of the BOM Repository",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"payload",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"@payloadcms/db-mongodb": ">= 1.2.0",
|
|
35
35
|
"@websolutespa/bom-core": "*",
|
|
36
|
-
"
|
|
37
|
-
"
|
|
36
|
+
"i18next": ">= 22.5.1",
|
|
37
|
+
"isomorphic-fetch": ">= 3.0.0",
|
|
38
38
|
"payload": ">= 2.11.2",
|
|
39
39
|
"react": ">= 18.2.0",
|
|
40
40
|
"uuid": ">= 9.0.1"
|
|
@@ -42,21 +42,22 @@
|
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/escape-html": "^1.0.2",
|
|
44
44
|
"@types/express": "^4.17.15",
|
|
45
|
+
"@types/isomorphic-fetch": "^0.0.39",
|
|
45
46
|
"@types/papaparse": "^5.3.7",
|
|
46
47
|
"@types/uuid": "^9.0.2",
|
|
47
48
|
"@websolutespa/bom-cli": "*",
|
|
48
49
|
"@websolutespa/test": "*",
|
|
49
50
|
"@websolutespa/tsconfig": "*",
|
|
50
|
-
"axios": "0.27.2",
|
|
51
51
|
"esbuild-sass-plugin": "^2.10.0",
|
|
52
52
|
"eslint-config-websolute": "*",
|
|
53
|
-
"eslint": "^
|
|
54
|
-
"i18next": "^22.
|
|
53
|
+
"eslint": "^9.0.0",
|
|
54
|
+
"i18next": "^22.5.1",
|
|
55
|
+
"isomorphic-fetch": "^3.0.0",
|
|
55
56
|
"mongodb-memory-server": "^8.13.0",
|
|
56
57
|
"react": "^18.2.0",
|
|
57
|
-
"ts-node": "^10.9.
|
|
58
|
+
"ts-node": "^10.9.2",
|
|
58
59
|
"tsup": "^6.7.0",
|
|
59
|
-
"typescript": "^5.
|
|
60
|
+
"typescript": "^5.4.5",
|
|
60
61
|
"uuid": "^9.0.1"
|
|
61
62
|
},
|
|
62
63
|
"publishConfig": {
|
package/scss/styles.scss
CHANGED