@adobe/helix-deploy 9.1.14 → 9.2.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # [9.2.0](https://github.com/adobe/helix-deploy/compare/v9.1.15...v9.2.0) (2023-08-18)
2
+
3
+
4
+ ### Features
5
+
6
+ * support invocation id ([#569](https://github.com/adobe/helix-deploy/issues/569)) ([53a3c89](https://github.com/adobe/helix-deploy/commit/53a3c893ac0d3026d3b129984401e7d12c75c8e1))
7
+
8
+ ## [9.1.15](https://github.com/adobe/helix-deploy/compare/v9.1.14...v9.1.15) (2023-08-16)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * rename default api gw name ([#567](https://github.com/adobe/helix-deploy/issues/567)) ([3bfd1a0](https://github.com/adobe/helix-deploy/commit/3bfd1a067db21a866cf00be1f7c1e3bc19045faf))
14
+
1
15
  ## [9.1.14](https://github.com/adobe/helix-deploy/compare/v9.1.13...v9.1.14) (2023-08-12)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-deploy",
3
- "version": "9.1.14",
3
+ "version": "9.2.0",
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",
@@ -9,6 +9,7 @@
9
9
  * OF ANY KIND, either express or implied. See the License for the specific language
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
+ import crypto from 'crypto';
12
13
  import fse from 'fs-extra';
13
14
  import path from 'path';
14
15
  import express from 'express';
@@ -161,6 +162,7 @@ export default class DevelopmentServer {
161
162
  rawQueryString,
162
163
  };
163
164
  const context = {
165
+ awsRequestId: crypto.randomUUID(),
164
166
  invokedFunctionArn: `arn:aws:lambda:${region}:${accountId}:function:${config.name}:${config.version}`,
165
167
  getRemainingTimeInMillis: () => 60000,
166
168
  };
@@ -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
  }