@stoker-platform/cli 0.5.51 → 0.5.52
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/lib/package.json +3 -3
- package/lib/src/lint/lintSchema.js +2 -5
- package/package.json +3 -3
package/lib/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stoker-platform/cli",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.52",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"main": "./lib/src/main.js",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"@google-cloud/secret-manager": "^6.1.1",
|
|
25
25
|
"@google-cloud/storage": "^7.19.0",
|
|
26
26
|
"@inquirer/prompts": "^8.3.2",
|
|
27
|
-
"@stoker-platform/node-client": "0.5.
|
|
27
|
+
"@stoker-platform/node-client": "0.5.40",
|
|
28
28
|
"@stoker-platform/types": "0.5.27",
|
|
29
|
-
"@stoker-platform/utils": "0.5.
|
|
29
|
+
"@stoker-platform/utils": "0.5.34",
|
|
30
30
|
"algoliasearch": "^5.50.0",
|
|
31
31
|
"commander": "^14.0.0",
|
|
32
32
|
"cross-spawn": "^7.0.6",
|
|
@@ -292,11 +292,8 @@ export const lintSchema = async (noLog = false) => {
|
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
294
|
if (relation.loadAll) {
|
|
295
|
-
if (
|
|
296
|
-
errors.push(`Collection ${collectionName} has a relation list for collection ${relation.collection} that has loadAll enabled but is
|
|
297
|
-
}
|
|
298
|
-
if (relationCollection.indexExemption) {
|
|
299
|
-
errors.push(`Collection ${collectionName} has a relation list for collection ${relation.collection} that has loadAll enabled but is on a collection with indexExemption enabled`);
|
|
295
|
+
if (!["OneToOne", "OneToMany"].includes(relationField.type)) {
|
|
296
|
+
errors.push(`Collection ${collectionName} has a relation list for collection ${relation.collection} that has loadAll enabled but is not a one to one or one to many field`);
|
|
300
297
|
}
|
|
301
298
|
}
|
|
302
299
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stoker-platform/cli",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.52",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"main": "./lib/src/main.js",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"@google-cloud/secret-manager": "^6.1.1",
|
|
25
25
|
"@google-cloud/storage": "^7.19.0",
|
|
26
26
|
"@inquirer/prompts": "^8.3.2",
|
|
27
|
-
"@stoker-platform/node-client": "0.5.
|
|
27
|
+
"@stoker-platform/node-client": "0.5.40",
|
|
28
28
|
"@stoker-platform/types": "0.5.27",
|
|
29
|
-
"@stoker-platform/utils": "0.5.
|
|
29
|
+
"@stoker-platform/utils": "0.5.34",
|
|
30
30
|
"algoliasearch": "^5.50.0",
|
|
31
31
|
"commander": "^14.0.0",
|
|
32
32
|
"cross-spawn": "^7.0.6",
|