@trayio/cdk-runtime 0.4.0 → 0.5.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationExecutionTest.d.ts","sourceRoot":"","sources":["../../../src/connector/operation/OperationExecutionTest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;
|
|
1
|
+
{"version":3,"file":"OperationExecutionTest.d.ts","sourceRoot":"","sources":["../../../src/connector/operation/OperationExecutionTest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAIhG,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AAQxF,qBAAa,sBAAsB,CAAC,IAAI,EAAE,EAAE,EAAE,GAAG;IAChD,OAAO,CAAC,WAAW,CAA+C;IAClE,OAAO,CAAC,wBAAwB,CAAoC;gBAGnE,WAAW,EAAE,oBAAoB,CAAC,IAAI,EAAE,EAAE,EAAE,GAAG,EAAE,OAAO,CAAC,EACzD,wBAAwB,EAAE,iCAAiC;IAM5D,IAAI,CAAC,SAAS,EAAE,kBAAkB,CAAC,IAAI,EAAE,EAAE,EAAE,GAAG,CAAC,GAAG,IAAI;CAiGxD"}
|
|
@@ -10,6 +10,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.OperationExecutionTest = void 0;
|
|
13
|
+
const WinstonCliLogging_1 = require("@trayio/tray-winston/cli/WinstonCliLogging");
|
|
14
|
+
const CliLogging_1 = require("@trayio/tray-commons/cli/CliLogging");
|
|
13
15
|
// TODO move this to tray-typescript-modules, newer versions of jest removed the "fail" method but left it in the types package.
|
|
14
16
|
function fail(reason) {
|
|
15
17
|
throw new Error(reason);
|
|
@@ -49,6 +51,17 @@ class OperationExecutionTest {
|
|
|
49
51
|
}
|
|
50
52
|
const input = testCase.whenFunction(auth, testContext, testCaseContext);
|
|
51
53
|
const output = yield execution.execute(auth, input);
|
|
54
|
+
const infoArg = process.argv.filter((arg) => arg.startsWith('--verbose'))[0];
|
|
55
|
+
if (infoArg === '--verbose=true') {
|
|
56
|
+
const logger = new WinstonCliLogging_1.WinstonCliLogging();
|
|
57
|
+
logger.logBlock('Operation input', CliLogging_1.CliColors.blue);
|
|
58
|
+
logger.log(input);
|
|
59
|
+
if (!output.isFailure) {
|
|
60
|
+
const logOutput = output;
|
|
61
|
+
logger.logBlock('Operation output', CliLogging_1.CliColors.blue);
|
|
62
|
+
logger.log(logOutput.value);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
52
65
|
const testCaseResult = {
|
|
53
66
|
auth,
|
|
54
67
|
testContext,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trayio/cdk-runtime",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "A Runtime that executes connector operations defined using the CDK DSL",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./*": "./dist/*.js"
|
|
@@ -10,9 +10,14 @@
|
|
|
10
10
|
"publishConfig": {
|
|
11
11
|
"access": "public"
|
|
12
12
|
},
|
|
13
|
+
"engines": {
|
|
14
|
+
"node": ">=18.x"
|
|
15
|
+
},
|
|
13
16
|
"dependencies": {
|
|
14
|
-
"@trayio/cdk-dsl": "0.
|
|
15
|
-
"@trayio/tray-axios": "*"
|
|
17
|
+
"@trayio/cdk-dsl": "0.5.0",
|
|
18
|
+
"@trayio/tray-axios": "*",
|
|
19
|
+
"@trayio/tray-commons": "*",
|
|
20
|
+
"@trayio/tray-winston": "*"
|
|
16
21
|
},
|
|
17
22
|
"typesVersions": {
|
|
18
23
|
"*": {
|