@trayio/cdk-build 3.8.0-beta → 3.8.1-beta

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.
@@ -6,7 +6,7 @@ export declare class ConnectorBuilder {
6
6
  getOperations(cdkProjectPath: string): Array<string>;
7
7
  private generatePackage;
8
8
  private injectRawHttpOperation;
9
- private injectGlobalConfig;
9
+ private injectGlobalConfigToCdkProjectPath;
10
10
  private addRawHttpConfig;
11
11
  }
12
12
  //# 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;IA6DvB,OAAO,CAAC,sBAAsB;IA+B9B,OAAO,CAAC,kBAAkB;IAkB1B,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;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;IA6DvB,OAAO,CAAC,sBAAsB;IAuC9B,OAAO,CAAC,kCAAkC;IAkB1C,OAAO,CAAC,gBAAgB;CAcxB"}
@@ -89,12 +89,13 @@ class ConnectorBuilder {
89
89
  const rawHttpOperationWorkPath = pathLib.join(executionDir, './', 'operation', 'raw-http', 'work-path');
90
90
  const rawHttpZip = new adm_zip_1.default(pathLib.join(rawHttpOperationWorkPath, '../', 'raw_http_request_cdk.zip'));
91
91
  rawHttpZip.extractAllTo(pathLib.join(rawHttpOperationWorkPath), true);
92
+ this.injectGlobalConfigToCdkProjectPath(cdkProjectPath, rawHttpOperationWorkPath);
92
93
  connectorPackage.addLocalFolder(pathLib.join(rawHttpOperationWorkPath), pathLib.join(connectorName, 'src'));
93
- this.injectGlobalConfig(cdkProjectPath, rawHttpOperationWorkPath);
94
+ connectorPackage.addLocalFile(pathLib.join(cdkProjectPath, 'src', 'GlobalConfig.ts'), pathLib.join(connectorName, 'src'));
94
95
  // Cleanup after injecting the Raw HTTP operation
95
96
  fse.removeSync(pathLib.join(rawHttpOperationWorkPath));
96
97
  }
97
- injectGlobalConfig(cdkProjectPath, rawHttpOperationWorkPath) {
98
+ injectGlobalConfigToCdkProjectPath(cdkProjectPath, rawHttpOperationWorkPath) {
98
99
  const connectorDefaultGlobalConfigPath = pathLib.join(cdkProjectPath, 'src', 'GlobalConfig.ts');
99
100
  if (!fse.existsSync(connectorDefaultGlobalConfigPath)) {
100
101
  fse.renameSync(pathLib.join(rawHttpOperationWorkPath, 'GlobalConfig.ts'), connectorDefaultGlobalConfigPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trayio/cdk-build",
3
- "version": "3.8.0-beta",
3
+ "version": "3.8.1-beta",
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.8.0-beta",
18
- "@trayio/tray-schema": "3.8.0-beta",
17
+ "@trayio/commons": "3.8.1-beta",
18
+ "@trayio/tray-schema": "3.8.1-beta",
19
19
  "adm-zip": "0.5.10"
20
20
  },
21
21
  "typesVersions": {