@trayio/cdk-build 2.21.1 → 2.23.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.
@@ -5,6 +5,5 @@ export declare class ConnectorBuilder {
5
5
  generateSchemas(cdkProjectPath: string): TE.TaskEither<Error, undefined>;
6
6
  getOperations(cdkProjectPath: string): Array<string>;
7
7
  private generatePackage;
8
- private addRawHttpConfig;
9
8
  }
10
9
  //# sourceMappingURL=ConnectorBuilder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ConnectorBuilder.d.ts","sourceRoot":"","sources":["../../src/connector/ConnectorBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AASvC,qBAAa,gBAAgB;IAC5B,OAAO,CAAC,wBAAwB,CAA2C;IAE3E,cAAc,CAAC,cAAc,EAAE,MAAM,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,SAAS,CAAC;IAOvE,eAAe,CAAC,cAAc,EAAE,MAAM,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,SAAS,CAAC;IAcxE,aAAa,CAAC,cAAc,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;IAYpD,OAAO,CAAC,eAAe;IAqDvB,OAAO,CAAC,gBAAgB;CAcxB"}
1
+ {"version":3,"file":"ConnectorBuilder.d.ts","sourceRoot":"","sources":["../../src/connector/ConnectorBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAQvC,qBAAa,gBAAgB;IAC5B,OAAO,CAAC,wBAAwB,CAA2C;IAE3E,cAAc,CAAC,cAAc,EAAE,MAAM,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,SAAS,CAAC;IAOvE,eAAe,CAAC,cAAc,EAAE,MAAM,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,SAAS,CAAC;IAcxE,aAAa,CAAC,cAAc,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;IAYpD,OAAO,CAAC,eAAe;CAgDvB"}
@@ -33,7 +33,6 @@ const Array_1 = require("fp-ts/Array");
33
33
  const pathLib = __importStar(require("path"));
34
34
  const fse = __importStar(require("fs-extra"));
35
35
  const adm_zip_1 = __importDefault(require("adm-zip"));
36
- const lodash_1 = require("lodash");
37
36
  const ConnectorOperationSchemaGenerator_1 = require("./operation/ConnectorOperationSchemaGenerator");
38
37
  class ConnectorBuilder {
39
38
  constructor() {
@@ -62,9 +61,6 @@ class ConnectorBuilder {
62
61
  const connectorPackagePath = pathLib.join(cdkProjectPath, 'dist', 'connector.zip');
63
62
  const connectorJsonPath = pathLib.join(cdkProjectPath, 'connector.json');
64
63
  const connectorJson = fse.readJsonSync(connectorJsonPath);
65
- // add rawHttpConfig to connectorJson if it's missing
66
- const connectorJsonWithRawHttpConfig = this.addRawHttpConfig(connectorJson);
67
- fse.writeJsonSync(connectorJsonPath, connectorJsonWithRawHttpConfig);
68
64
  const connectorPackage = new adm_zip_1.default();
69
65
  connectorPackage.addLocalFolder(pathLib.join(cdkProjectPath, 'src'), pathLib.join(connectorJson.name, 'src'));
70
66
  const entries = connectorPackage.getEntries();
@@ -81,15 +77,5 @@ class ConnectorBuilder {
81
77
  connectorPackage.writeZip(connectorPackagePath);
82
78
  return TE.right(undefined);
83
79
  }
84
- addRawHttpConfig(connectorJson) {
85
- var _a, _b;
86
- if ((0, lodash_1.isUndefined)((_a = connectorJson.rawHttp) === null || _a === void 0 ? void 0 : _a.enabled) ||
87
- typeof ((_b = connectorJson.rawHttp) === null || _b === void 0 ? void 0 : _b.enabled) !== 'boolean') {
88
- return Object.assign(Object.assign({}, connectorJson), { rawHttp: {
89
- enabled: true,
90
- } });
91
- }
92
- return connectorJson;
93
- }
94
80
  }
95
81
  exports.ConnectorBuilder = ConnectorBuilder;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trayio/cdk-build",
3
- "version": "2.21.1",
3
+ "version": "2.23.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": "2.21.1",
18
- "@trayio/tray-schema": "2.21.1",
17
+ "@trayio/commons": "2.23.0",
18
+ "@trayio/tray-schema": "2.23.0",
19
19
  "adm-zip": "0.5.10"
20
20
  },
21
21
  "typesVersions": {