@swydo/byol 2.2.31 → 3.0.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 +16 -0
- package/package.json +2 -2
- package/src/invokeFunction.js +12 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# 3.0.0 (2023-09-27)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* remove setting "default" profile by default ([#589](https://github.com/Swydo/byol/issues/589)) ([c497be3](https://github.com/Swydo/byol/commit/c497be3070fab331f8b4e60330802d038a0af68a))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### BREAKING CHANGES
|
|
15
|
+
|
|
16
|
+
* The default for "profile" has been removed. Specify `--profile default` to restore previous functionality, or set `AWS_PROFILE` in your env.json.
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## 2.2.31 (2023-09-27)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @swydo/byol
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swydo/byol",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Bring Your Own Lambda",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"aws-xray-sdk-core": "^3.0.0"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "c497be3070fab331f8b4e60330802d038a0af68a"
|
|
31
31
|
}
|
package/src/invokeFunction.js
CHANGED
|
@@ -32,10 +32,17 @@ function getFunctionEnvironment(envPath, functionName) {
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
function getAwsEnvironment({ profile, region }) {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
const awsEnvironment = {};
|
|
36
|
+
|
|
37
|
+
if (region) {
|
|
38
|
+
awsEnvironment.AWS_REGION = region;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
if (profile) {
|
|
42
|
+
awsEnvironment.AWS_PROFILE = profile;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
return awsEnvironment;
|
|
39
46
|
}
|
|
40
47
|
|
|
41
48
|
async function invokeFunction(functionName, event, {
|
|
@@ -45,7 +52,7 @@ async function invokeFunction(functionName, event, {
|
|
|
45
52
|
region,
|
|
46
53
|
requestId,
|
|
47
54
|
keepAlive = false,
|
|
48
|
-
profile
|
|
55
|
+
profile,
|
|
49
56
|
invocationType = 'RequestResponse',
|
|
50
57
|
} = {}) {
|
|
51
58
|
const resource = getFunctionResource(templatePath, functionName);
|