@swydo/byol 2.2.1 → 2.2.3

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
@@ -3,6 +3,28 @@
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
+ ## 2.2.3 (2023-08-31)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * return signed max instead of unsigned ([#559](https://github.com/Swydo/byol/issues/559)) ([8761efb](https://github.com/Swydo/byol/commit/8761efb1f76e111d2da56291cd0619da416c9045))
12
+
13
+
14
+
15
+
16
+
17
+ ## 2.2.2 (2023-08-31)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * change arbitrary byol time remaining ([#558](https://github.com/Swydo/byol/issues/558)) ([7a083c9](https://github.com/Swydo/byol/commit/7a083c93937019b44919a440ba1c60d5e369845e))
23
+
24
+
25
+
26
+
27
+
6
28
  ## 2.2.1 (2023-08-30)
7
29
 
8
30
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swydo/byol",
3
- "version": "2.2.1",
3
+ "version": "2.2.3",
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": "5781a2ae2e150c18dc4d4290e585d875312205b4"
30
+ "gitHead": "8761efb1f76e111d2da56291cd0619da416c9045"
31
31
  }
@@ -83,8 +83,9 @@ async function callHandler({
83
83
  const awsContext = {
84
84
  awsRequestId: generateRequestId(),
85
85
  getRemainingTimeInMillis() {
86
- // return one year in milliseconds as a constant
87
- return 365 * 24 * 60 * 60 * 1000;
86
+ // Max signed 32-bit int is upper value of setTimeout. Using that as magic value since normally byols
87
+ // don't have a timeout
88
+ return 2 ** 31 - 2;
88
89
  },
89
90
  };
90
91