@trayio/cdk-build 3.14.0 → 3.15.0
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.
|
@@ -45,11 +45,11 @@ class ConnectorOperationSchemaGenerator {
|
|
|
45
45
|
return (0, function_1.pipe)(TE.tryCatch(() => fse.exists(inputFilePath), (reason) => new Error(String(reason))), TE.chain(() => TE.tryCatch(() => fse.exists(outputFilePath), (reason) => new Error(String(reason)))), TE.chain(() => {
|
|
46
46
|
console.log(`Generating types for operation: ${operationName}`); // TODO: Remove this and use a logger
|
|
47
47
|
return this.generateSchema(inputFilePath, inputTypeName, inputSchemaFilePath);
|
|
48
|
-
}), TE.chain(() => this.generateSchema(outputFilePath, outputTypeName, outputSchemaFilePath)), TE.chain(() => (0, function_1.pipe)(TE.tryCatch(() => fse.exists(responseFilePath), (reason) => new Error(String(reason))), TE.
|
|
48
|
+
}), TE.chain(() => this.generateSchema(outputFilePath, outputTypeName, outputSchemaFilePath)), TE.chain(() => (0, function_1.pipe)(TE.tryCatch(() => fse.exists(responseFilePath), (reason) => new Error(String(reason))), TE.chain((exists) => {
|
|
49
49
|
if (exists) {
|
|
50
50
|
return this.generateSchema(responseFilePath, responseTypeName, responseSchemaFilePath);
|
|
51
51
|
}
|
|
52
|
-
return undefined;
|
|
52
|
+
return TE.right(undefined);
|
|
53
53
|
}))), TE.chain(() => TE.right(undefined)));
|
|
54
54
|
}
|
|
55
55
|
generateSchema(filePath, typeName, schemaFilePath) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trayio/cdk-build",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.15.0",
|
|
4
4
|
"description": "Build utilities for CDK projects",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./*": "./dist/*.js"
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"access": "public"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@trayio/commons": "3.
|
|
18
|
-
"@trayio/tray-schema": "3.
|
|
17
|
+
"@trayio/commons": "3.15.0",
|
|
18
|
+
"@trayio/tray-schema": "3.15.0",
|
|
19
19
|
"adm-zip": "0.5.10"
|
|
20
20
|
},
|
|
21
21
|
"typesVersions": {
|