Skip to content

Commit fc3e857

Browse files
committed
fix node (not typescript) import/require of mitm
1 parent fba30f6 commit fc3e857

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"description": "HTTP Man In The Middle (MITM) Proxy",
55
"main": "dist/index.js",
66
"types": "index.d.ts",
7-
"type": "module",
87
"scripts": {
98
"test": "cross-env TS_NODE_TRANSPILE_ONLY=true TS_NODE_PRETTY=true ts-mocha test/01_proxy.ts --exit",
109
"build": "rimraf dist && tsc",

tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
"emitDecoratorMetadata": true,
66
"esModuleInterop": true,
77
"experimentalDecorators": true,
8-
"lib": ["dom", "es6", "es2017", "esnext"],
8+
"lib": ["ES2020"],
99
"module": "CommonJS",
10+
"target": "ES2020",
1011
"moduleResolution": "node",
1112
"noFallthroughCasesInSwitch": true,
1213
"noImplicitAny": false,
@@ -18,7 +19,7 @@
1819
"skipLibCheck": true,
1920
"sourceMap": true,
2021
"strict": true,
21-
"target": "ESNext",
22+
"forceConsistentCasingInFileNames": true,
2223
"typeRoots": ["./node_modules/@types", "./types.d.ts"],
2324
"baseUrl": "."
2425
},

0 commit comments

Comments
 (0)