@adobe/helix-deploy 9.1.14 → 9.1.15

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [9.1.15](https://github.com/adobe/helix-deploy/compare/v9.1.14...v9.1.15) (2023-08-16)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * rename default api gw name ([#567](https://github.com/adobe/helix-deploy/issues/567)) ([3bfd1a0](https://github.com/adobe/helix-deploy/commit/3bfd1a067db21a866cf00be1f7c1e3bc19045faf))
7
+
1
8
  ## [9.1.14](https://github.com/adobe/helix-deploy/compare/v9.1.13...v9.1.14) (2023-08-12)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-deploy",
3
- "version": "9.1.14",
3
+ "version": "9.1.15",
4
4
  "description": "Library and Commandline Tools to build and deploy OpenWhisk Actions",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/adobe/helix-deploy#readme",
@@ -77,7 +77,7 @@
77
77
  "c8": "8.0.1",
78
78
  "eslint": "8.47.0",
79
79
  "husky": "8.0.3",
80
- "lint-staged": "13.2.3",
80
+ "lint-staged": "14.0.0",
81
81
  "mocha": "10.2.0",
82
82
  "mocha-junit-reporter": "2.2.1",
83
83
  "mocha-multi-reporters": "1.5.1",
@@ -54,6 +54,8 @@ import BaseDeployer from './BaseDeployer.js';
54
54
  import ActionBuilder from '../ActionBuilder.js';
55
55
  import AWSConfig from './AWSConfig.js';
56
56
 
57
+ const API_GW_NAME_DEFAULT = 'API Managed by Helix Deploy';
58
+
57
59
  export default class AWSDeployer extends BaseDeployer {
58
60
  /**
59
61
  * @param {BaseConfig} baseConfig
@@ -316,14 +318,14 @@ export default class AWSDeployer extends BaseDeployer {
316
318
  } else if (this._cfg.apiId === 'create') {
317
319
  this.log.info('--: creating API from scratch');
318
320
  res = await this._api.send(new CreateApiCommand({
319
- Name: 'API managed by Poly-Func',
321
+ Name: API_GW_NAME_DEFAULT,
320
322
  ProtocolType: 'HTTP',
321
323
  }));
322
324
  this.log.info(`Using new API "${res.ApiId}"`);
323
325
  } else if (this._cfg.apiId === 'auto') {
324
326
  res = await this._api.send(new GetApisCommand({ }));
325
327
  // todo: find API with appropriate tag. eg `helix-deploy:<namespace`.
326
- res = res.Items.find((a) => a.Name === 'API managed by Poly-Func');
328
+ res = res.Items.find((a) => a.Name === API_GW_NAME_DEFAULT);
327
329
  if (!res) {
328
330
  throw Error('--aws-api=auto didn\'t find an appropriate api.');
329
331
  }