@digitraffic/common 2025.3.4-2 → 2025.3.10-1
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.
@@ -26,7 +26,7 @@ describe("integration tests", () => {
|
|
26
26
|
},
|
27
27
|
},
|
28
28
|
input: {
|
29
|
-
body:
|
29
|
+
body: '{ body: "\'moi" }',
|
30
30
|
params: () => ({
|
31
31
|
header: {
|
32
32
|
h1: "header1",
|
@@ -58,7 +58,7 @@ describe("integration tests", () => {
|
|
58
58
|
const app = new App();
|
59
59
|
const stack = new Stack(app);
|
60
60
|
const f = new Function(stack, "id", {
|
61
|
-
runtime: Runtime.
|
61
|
+
runtime: Runtime.NODEJS_22_X,
|
62
62
|
code: Code.fromInline("placeholder"),
|
63
63
|
handler: "handler",
|
64
64
|
});
|
@@ -70,7 +70,7 @@ export class DigitrafficDLQueue {
|
|
70
70
|
});
|
71
71
|
const dlqFunctionName = `${dlqName}-Function`;
|
72
72
|
const lambda = MonitoredFunction.create(stack, dlqFunctionName, {
|
73
|
-
runtime: Runtime.
|
73
|
+
runtime: Runtime.NODEJS_22_X,
|
74
74
|
logRetention: RetentionDays.ONE_YEAR,
|
75
75
|
functionName: dlqFunctionName,
|
76
76
|
code: getDlqCode(dlqBucket.bucketName),
|
@@ -18,7 +18,7 @@ export function databaseFunctionProps(stack, environment, lambdaName, simpleLamb
|
|
18
18
|
}
|
19
19
|
export function lambdaFunctionProps(_, environment, lambdaName, simpleLambdaName, config) {
|
20
20
|
return {
|
21
|
-
runtime: config?.runtime ?? Runtime.
|
21
|
+
runtime: config?.runtime ?? Runtime.NODEJS_22_X,
|
22
22
|
architecture: config?.architecture ?? Architecture.ARM_64,
|
23
23
|
memorySize: config?.memorySize ?? 128,
|
24
24
|
functionName: lambdaName,
|
@@ -39,7 +39,7 @@ function getAssetCode(simpleLambdaName, isSingleLambda) {
|
|
39
39
|
}
|
40
40
|
export function defaultLambdaConfiguration(config) {
|
41
41
|
const props = {
|
42
|
-
runtime: Runtime.
|
42
|
+
runtime: Runtime.NODEJS_22_X,
|
43
43
|
memorySize: config.memorySize ?? 128,
|
44
44
|
functionName: config.functionName,
|
45
45
|
handler: config.handler,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@digitraffic/common",
|
3
|
-
"version": "2025.3.
|
3
|
+
"version": "2025.3.10-1",
|
4
4
|
"description": "",
|
5
5
|
"type": "module",
|
6
6
|
"repository": {
|
@@ -8,7 +8,7 @@
|
|
8
8
|
"url": "https://github.com/tmfg/digitraffic-common.git"
|
9
9
|
},
|
10
10
|
"engines": {
|
11
|
-
"node": ">=
|
11
|
+
"node": ">=22 <23"
|
12
12
|
},
|
13
13
|
"license": "EUPL-1.2",
|
14
14
|
"private": false,
|