Skip to content

Commit b8af762

Browse files
authored
fix incompatibilities with node 16 for 4.49.0 release (DataDog#4854)
1 parent f58e746 commit b8af762

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"main": "typedoc.js",
55
"scripts": {
66
"build": "typedoc ../index.d.ts && ./add-redirects.sh",
7-
"pretest": "tsc -p . && tsc test",
7+
"pretest": "tsc -p . && tsc --types node test",
88
"test": "node test"
99
},
1010
"license": "BSD-3-Clause",

docs/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"moduleResolution": "node",
55
"module": "commonjs",
66
"baseUrl": ".",
7-
"strict": true
7+
"strict": true,
8+
"types": ["node"]
89
},
910
"files": [
1011
"../index.d.ts"

integration-tests/appsec/multer.spec.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ const {
1010
spawnProc
1111
} = require('../helpers')
1212

13+
const { NODE_MAJOR } = require('../../version')
14+
15+
const describe = NODE_MAJOR <= 16 ? globalThis.describe.skip : globalThis.describe
16+
1317
describe('multer', () => {
1418
let sandbox, cwd, startupTestFile, agent, proc, env
1519

0 commit comments

Comments
 (0)