Skip to content

Commit 0601dc4

Browse files
authored
Merge pull request #412 from ericcrosson-bitgo/chore-deps-use-the-express-bundled-body-parser
chore(deps): use the express-bundled body-parser
2 parents d3a41dc + 57a029c commit 0601dc4

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

package-lock.json

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/superagent-wrapper/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
"@types/superagent": "4.1.16",
3030
"@types/supertest": "2.0.12",
3131
"@types/whatwg-url": "11.0.0",
32-
"body-parser": "1.20.1",
3332
"c8": "7.13.0",
3433
"chai": "4.3.7",
3534
"express": "4.18.2",

packages/superagent-wrapper/test/request.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import * as h from '@api-ts/io-ts-http';
2-
import bodyParser from 'body-parser';
32
import { assert } from 'chai';
43
import express from 'express';
54
import * as E from 'fp-ts/Either';
@@ -64,7 +63,7 @@ const TestRoutes = h.apiSpec({
6463
});
6564

6665
const testApp = express();
67-
testApp.use(bodyParser.json());
66+
testApp.use(express.json());
6867

6968
testApp.post('/test/:id', (req, res) => {
7069
const filteredReq = {

0 commit comments

Comments
 (0)