Skip to content

Commit

Permalink
fix incompatibilities with node 16 for 4.49.0 release (#4854)
Browse files Browse the repository at this point in the history
  • Loading branch information
rochdev authored Nov 4, 2024
1 parent f58e746 commit b8af762
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"main": "typedoc.js",
"scripts": {
"build": "typedoc ../index.d.ts && ./add-redirects.sh",
"pretest": "tsc -p . && tsc test",
"pretest": "tsc -p . && tsc --types node test",
"test": "node test"
},
"license": "BSD-3-Clause",
Expand Down
3 changes: 2 additions & 1 deletion docs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"moduleResolution": "node",
"module": "commonjs",
"baseUrl": ".",
"strict": true
"strict": true,
"types": ["node"]
},
"files": [
"../index.d.ts"
Expand Down
4 changes: 4 additions & 0 deletions integration-tests/appsec/multer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ const {
spawnProc
} = require('../helpers')

const { NODE_MAJOR } = require('../../version')

const describe = NODE_MAJOR <= 16 ? globalThis.describe.skip : globalThis.describe

describe('multer', () => {
let sandbox, cwd, startupTestFile, agent, proc, env

Expand Down

0 comments on commit b8af762

Please sign in to comment.