@stoker-platform/cli 0.5.142 → 0.5.143
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 +1 -1
- package/lib/src/lint/lintSchema.js +6 -10
- package/package.json +2 -2
package/lib/package.json
CHANGED
|
@@ -294,12 +294,12 @@ export const lintSchema = async (noLog = false) => {
|
|
|
294
294
|
errors.push(`Auth collection ${collectionName} must have a string field named "User_ID"`);
|
|
295
295
|
}
|
|
296
296
|
const enabledField = fields.find((field) => field.name === "Enabled");
|
|
297
|
-
if (!enabledField || enabledField.type !== "Boolean"
|
|
298
|
-
errors.push(`Auth collection ${collectionName} must have a
|
|
297
|
+
if (!enabledField || enabledField.type !== "Boolean") {
|
|
298
|
+
errors.push(`Auth collection ${collectionName} must have a boolean field named "Enabled"`);
|
|
299
299
|
}
|
|
300
300
|
const roleField = fields.find((field) => field.name === "Role");
|
|
301
|
-
if (!roleField || roleField.type !== "String" || !roleField.
|
|
302
|
-
errors.push(`Auth collection ${collectionName} must have a
|
|
301
|
+
if (!roleField || roleField.type !== "String" || !roleField.values) {
|
|
302
|
+
errors.push(`Auth collection ${collectionName} must have a string field named "Role" with a values property`);
|
|
303
303
|
}
|
|
304
304
|
else {
|
|
305
305
|
roleField.values.forEach((role) => {
|
|
@@ -309,12 +309,8 @@ export const lintSchema = async (noLog = false) => {
|
|
|
309
309
|
});
|
|
310
310
|
}
|
|
311
311
|
const emailField = fields.find((field) => field.name === "Email");
|
|
312
|
-
if (!emailField ||
|
|
313
|
-
|
|
314
|
-
!emailField.email ||
|
|
315
|
-
!emailField.unique ||
|
|
316
|
-
!emailField.required) {
|
|
317
|
-
errors.push(`Auth collection ${collectionName} must have a required, unique string field named "Email"`);
|
|
312
|
+
if (!emailField || emailField.type !== "String" || !emailField.email || !emailField.unique) {
|
|
313
|
+
errors.push(`Auth collection ${collectionName} must have a unique email string field named "Email"`);
|
|
318
314
|
}
|
|
319
315
|
if (parentCollection) {
|
|
320
316
|
errors.push(`Auth collection ${collectionName} cannot have a parent collection`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stoker-platform/cli",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.143",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"main": "./lib/src/main.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@google-cloud/secret-manager": "^6.1.2",
|
|
25
25
|
"@google-cloud/storage": "^7.19.0",
|
|
26
26
|
"@inquirer/prompts": "^8.5.2",
|
|
27
|
-
"@stoker-platform/node-client": "0.5.
|
|
27
|
+
"@stoker-platform/node-client": "0.5.89",
|
|
28
28
|
"@stoker-platform/types": "0.5.65",
|
|
29
29
|
"@stoker-platform/utils": "0.5.79",
|
|
30
30
|
"algoliasearch": "^5.53.0",
|