Skip to content

Commit 0772d6c

Browse files
committed
fix(deps): retain Node 18 compatibility
The dependency refresh selected AWS SDK packages that require Node 20, preventing installation in the lowest supported runtime.
1 parent c0e28bc commit 0772d6c

3 files changed

Lines changed: 626 additions & 175 deletions

File tree

‎package.json‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
"postbuild": "scripts/update_dist_version.sh"
2121
},
2222
"devDependencies": {
23-
"@aws-sdk/client-kms": "^3.366.0",
24-
"@aws-sdk/client-secrets-manager": "^3.721.0",
23+
"@aws-sdk/client-kms": "3.967.0",
24+
"@aws-sdk/client-secrets-manager": "3.967.0",
2525
"@datadog/native-appsec": "*",
2626
"@datadog/pprof": "5.14.4",
2727
"@opentelemetry/api": ">=1.0.0 <1.10.0",
@@ -44,6 +44,7 @@
4444
},
4545
"dependencies": {
4646
"@aws-crypto/sha256-js": "5.2.0",
47+
"@aws-sdk/types": "3.965.0",
4748
"dc-polyfill": "^0.1.11",
4849
"js-yaml": "^3.14.2",
4950
"promise-retry": "^2.0.1",
@@ -75,6 +76,8 @@
7576
]
7677
},
7778
"resolutions": {
79+
"@aws-sdk/types": "3.965.0",
80+
"@aws-sdk/util-locate-window": "3.965.0",
7881
"fast-xml-parser": "^4.5.7",
7982
"uuid": "^8.3.2",
8083
"js-yaml": "^3.14.2"

‎src/index.spec.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ describe("datadog", () => {
8888

8989
const handler = (ev: any, context: any, callback: any) => {
9090
// Mocks out the call
91+
nock("http://www.example.com").get("/").reply(200, {});
9192
const req = http.get("http://www.example.com");
9293
traceId = req.getHeader("x-datadog-trace-id") as string;
9394
parentId = req.getHeader("x-datadog-parent-id") as string;
@@ -115,7 +116,6 @@ describe("datadog", () => {
115116
});
116117

117118
it("patches http request when autoPatch enabled", async () => {
118-
nock("http://www.example.com").get("/").reply(200, {});
119119
mockTraceHeaders = {
120120
"x-datadog-parent-id": "9101112",
121121
"x-datadog-sampling-priority": "2",
@@ -142,7 +142,6 @@ describe("datadog", () => {
142142
expect(sampled).toEqual("2");
143143
});
144144
it("doesn't patch http requests when autoPatch is disabled", async () => {
145-
nock("http://www.example.com").get("/").reply(200, {});
146145
const wrapped = datadog(handler, { autoPatchHTTP: false, forceWrap: true });
147146
await wrapped(
148147
{

0 commit comments

Comments
 (0)