@takeshape/cli 8.260.2 → 8.260.7
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.
|
@@ -47,7 +47,7 @@ var _default = (0, _linkedCommand.linkedCommand)(async (cli, params) => {
|
|
|
47
47
|
|
|
48
48
|
try {
|
|
49
49
|
const roles = JSON.parse(_fsExtra.default.readFileSync(file).toString());
|
|
50
|
-
const validatedRoles = (0, _schema.
|
|
50
|
+
const validatedRoles = (0, _schema.ensureValidRoleImport)(roles);
|
|
51
51
|
(0, _log.log)(`Uploading roles from ${file}…\n`);
|
|
52
52
|
await (0, _api.default)(params, 'POST', `${(0, _branches.getBranchBasePath)(branchParams, params.projectId)}/roles`, validatedRoles);
|
|
53
53
|
(0, _log.log)(_chalk.default.green('Success!'), 'Roles updated.');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-import.d.ts","sourceRoot":"","sources":["../../../../src/commands/import/schema-import.ts"],"names":[],"mappings":";AAsBA,
|
|
1
|
+
{"version":3,"file":"schema-import.d.ts","sourceRoot":"","sources":["../../../../src/commands/import/schema-import.ts"],"names":[],"mappings":";AAsBA,wBAuCG"}
|
|
@@ -74,9 +74,7 @@ var _default = (0, _linkedCommand.linkedCommand)(async (cli, params) => {
|
|
|
74
74
|
|
|
75
75
|
try {
|
|
76
76
|
const newSchema = JSON.parse(_fsExtra.default.readFileSync(file).toString());
|
|
77
|
-
const validationString = (0, _formatValidationResult.formatValidationResult)((0, _schema.
|
|
78
|
-
suppressErrorPaths: [..._schema.projectSchemaImportOptionalProps]
|
|
79
|
-
}));
|
|
77
|
+
const validationString = (0, _formatValidationResult.formatValidationResult)((0, _schema.validateProjectSchemaImport)(newSchema));
|
|
80
78
|
|
|
81
79
|
if (validationString) {
|
|
82
80
|
return (0, _fatalError.fatalError)(validationString);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { SchemaValidationResult } from '@takeshape/schema';
|
|
2
|
-
export declare function formatValidationResult(schemaValidationResult: SchemaValidationResult): string | undefined;
|
|
1
|
+
import { ProjectSchemaImportValidationResult, SchemaValidationResult } from '@takeshape/schema';
|
|
2
|
+
export declare function formatValidationResult(schemaValidationResult: SchemaValidationResult | ProjectSchemaImportValidationResult): string | undefined;
|
|
3
3
|
//# sourceMappingURL=format-validation-result.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format-validation-result.d.ts","sourceRoot":"","sources":["../../../src/util/format-validation-result.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,sBAAsB,EAAC,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"format-validation-result.d.ts","sourceRoot":"","sources":["../../../src/util/format-validation-result.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mCAAmC,EAAE,sBAAsB,EAAC,MAAM,mBAAmB,CAAC;AAE9F,wBAAgB,sBAAsB,CACpC,sBAAsB,EAAE,sBAAsB,GAAG,mCAAmC,GACnF,MAAM,GAAG,SAAS,CAKpB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takeshape/cli",
|
|
3
|
-
"version": "8.260.
|
|
3
|
+
"version": "8.260.7",
|
|
4
4
|
"description": "TakeShape CLI",
|
|
5
5
|
"homepage": "https://www.takeshape.io",
|
|
6
6
|
"repository": {
|
|
@@ -57,11 +57,11 @@
|
|
|
57
57
|
"semver": "^6.3.0",
|
|
58
58
|
"stream-to-promise": "^2.2.0",
|
|
59
59
|
"tmp": "^0.0.33",
|
|
60
|
-
"@takeshape/branches": "8.260.
|
|
61
|
-
"@takeshape/schema": "8.260.
|
|
62
|
-
"@takeshape/ssg": "8.260.
|
|
63
|
-
"@takeshape/util": "8.260.
|
|
64
|
-
"@takeshape/streams": "8.260.
|
|
60
|
+
"@takeshape/branches": "8.260.7",
|
|
61
|
+
"@takeshape/schema": "8.260.7",
|
|
62
|
+
"@takeshape/ssg": "8.260.7",
|
|
63
|
+
"@takeshape/util": "8.260.7",
|
|
64
|
+
"@takeshape/streams": "8.260.7"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@types/archiver": "^3.1.0",
|