@adobe/helix-deploy 9.0.28 → 9.0.30
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 +14 -0
- package/package.json +14 -14
- package/src/template/aws-function-proxy.js +10 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [9.0.30](https://github.com/adobe/helix-deploy/compare/v9.0.29...v9.0.30) (2023-05-17)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* use module type code for deploy proxy ([#539](https://github.com/adobe/helix-deploy/issues/539)) ([a5c0307](https://github.com/adobe/helix-deploy/commit/a5c0307471d3606d7d0872aad89e80d21e93122a))
|
|
7
|
+
|
|
8
|
+
## [9.0.29](https://github.com/adobe/helix-deploy/compare/v9.0.28...v9.0.29) (2023-05-13)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **deps:** update external fixes ([61e269b](https://github.com/adobe/helix-deploy/commit/61e269b51eeb8ad357a1c236c101aacbb34a9e66))
|
|
14
|
+
|
|
1
15
|
## [9.0.28](https://github.com/adobe/helix-deploy/compare/v9.0.27...v9.0.28) (2023-05-09)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-deploy",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.30",
|
|
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",
|
|
@@ -38,18 +38,18 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@adobe/fastly-native-promises": "3.0.3",
|
|
40
40
|
"@adobe/fetch": "4.0.12",
|
|
41
|
-
"@aws-sdk/client-apigatewayv2": "3.
|
|
42
|
-
"@aws-sdk/client-lambda": "3.
|
|
43
|
-
"@aws-sdk/client-s3": "3.
|
|
44
|
-
"@aws-sdk/client-secrets-manager": "3.
|
|
45
|
-
"@aws-sdk/client-ssm": "3.
|
|
46
|
-
"@aws-sdk/client-sts": "3.
|
|
47
|
-
"@fastly/js-compute": "1.
|
|
41
|
+
"@aws-sdk/client-apigatewayv2": "3.332.0",
|
|
42
|
+
"@aws-sdk/client-lambda": "3.332.0",
|
|
43
|
+
"@aws-sdk/client-s3": "3.332.0",
|
|
44
|
+
"@aws-sdk/client-secrets-manager": "3.332.0",
|
|
45
|
+
"@aws-sdk/client-ssm": "3.332.0",
|
|
46
|
+
"@aws-sdk/client-sts": "3.332.0",
|
|
47
|
+
"@fastly/js-compute": "1.13.0",
|
|
48
48
|
"@google-cloud/functions": "2.4.1",
|
|
49
49
|
"@google-cloud/secret-manager": "4.2.2",
|
|
50
|
-
"@google-cloud/storage": "6.10.
|
|
50
|
+
"@google-cloud/storage": "6.10.1",
|
|
51
51
|
"@rollup/plugin-alias": "5.0.0",
|
|
52
|
-
"@rollup/plugin-commonjs": "
|
|
52
|
+
"@rollup/plugin-commonjs": "25.0.0",
|
|
53
53
|
"@rollup/plugin-json": "6.0.0",
|
|
54
54
|
"@rollup/plugin-node-resolve": "15.0.2",
|
|
55
55
|
"@rollup/plugin-terser": "0.4.1",
|
|
@@ -63,16 +63,16 @@
|
|
|
63
63
|
"get-stream": "6.0.1",
|
|
64
64
|
"isomorphic-git": "1.23.0",
|
|
65
65
|
"openwhisk": "3.21.7",
|
|
66
|
-
"rollup": "3.21.
|
|
67
|
-
"semver": "7.5.
|
|
66
|
+
"rollup": "3.21.7",
|
|
67
|
+
"semver": "7.5.1",
|
|
68
68
|
"tar": "6.1.14",
|
|
69
|
-
"webpack": "5.82.
|
|
69
|
+
"webpack": "5.82.1",
|
|
70
70
|
"yargs": "17.7.2"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@adobe/eslint-config-helix": "2.0.2",
|
|
74
74
|
"@adobe/helix-shared-wrap": "2.0.0",
|
|
75
|
-
"@adobe/helix-status": "10.0.
|
|
75
|
+
"@adobe/helix-status": "10.0.8",
|
|
76
76
|
"@semantic-release/changelog": "6.0.3",
|
|
77
77
|
"@semantic-release/git": "10.0.1",
|
|
78
78
|
"c8": "7.13.0",
|
|
@@ -11,8 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/* eslint-disable no-console */
|
|
13
13
|
// eslint-disable-next-line import/no-unresolved
|
|
14
|
-
|
|
15
|
-
const { promisify } = require('util');
|
|
14
|
+
import { LambdaClient, InvokeCommand, InvocationType } from '@aws-sdk/client-lambda';
|
|
16
15
|
|
|
17
16
|
/**
|
|
18
17
|
* Proxy function that invokes the respective function based on the route parameters.
|
|
@@ -30,21 +29,21 @@ const { promisify } = require('util');
|
|
|
30
29
|
* @param event
|
|
31
30
|
* @returns {Promise<{body, statusCode}|any>}
|
|
32
31
|
*/
|
|
33
|
-
|
|
34
|
-
const lambda = new AWS.Lambda();
|
|
35
|
-
const invoke = promisify(lambda.invoke.bind(lambda));
|
|
36
|
-
|
|
32
|
+
export const handler = async (event) => {
|
|
37
33
|
const { action, version } = event.pathParameters;
|
|
38
34
|
const [, pkgName] = event.rawPath.split('/');
|
|
39
35
|
const FunctionName = `${pkgName}--${action}:${version.replace(/\./g, '_')}`;
|
|
40
36
|
|
|
41
37
|
try {
|
|
42
38
|
console.log(`invoking: ${FunctionName}`);
|
|
43
|
-
const ret = await
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
39
|
+
const ret = await new LambdaClient().send(
|
|
40
|
+
new InvokeCommand({
|
|
41
|
+
FunctionName,
|
|
42
|
+
InvocationType: InvocationType.RequestResponse,
|
|
43
|
+
Payload: JSON.stringify(event),
|
|
44
|
+
}),
|
|
45
|
+
);
|
|
46
|
+
const data = JSON.parse(new TextDecoder('utf8').decode(ret.Payload));
|
|
48
47
|
console.log(`statusCode: ${data.statusCode}`);
|
|
49
48
|
return data;
|
|
50
49
|
} catch (err) {
|