Skip to content

Commit 105a1a0

Browse files
body-parser has been deprecated. (#57)
1 parent e8b3396 commit 105a1a0

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

twitter-sentiment-processor/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,4 +305,4 @@ In addition to the state and PubSub, you can also observe application traces in
305305

306306
## Recordings
307307

308-
View the [recorded session](https://mybuild.microsoft.com/sessions/3f296b9a-7fe8-479b-b098-a1bfc7783476?source=sessions) and the [demo recordings](https://www.youtube.com/playlist?list=PLcip_LgkYwzu2ABITS_3cSV_6AeLsX-d0)
308+
View the [recorded session](https://mybuild.microsoft.com/sessions/3f296b9a-7fe8-479b-b098-a1bfc7783476?source=sessions) and the [demo recordings](https://youtu.be/qejiWzy5etA)

twitter-sentiment-processor/demos/demo1/provider/app.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@
44
require("isomorphic-fetch");
55
const logger = require("./logger");
66
const express = require("express");
7-
const bodyParser = require("body-parser");
87

98
// express
109
const port = 3001;
1110
const app = express();
12-
app.use(bodyParser.json());
11+
app.use(express.json());
1312

1413
// Dapr
1514
const daprPort = process.env.DAPR_HTTP_PORT || "3500";

twitter-sentiment-processor/demos/demo2/processor/app.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@
44
require("isomorphic-fetch");
55
const express = require("express");
66
const logger = require("./logger");
7-
const bodyParser = require("body-parser");
87

98
// express
109
const port = 3002;
1110
const app = express();
12-
app.use(bodyParser.json());
11+
app.use(express.json());
1312

1413
// Cognitive Services API
1514
// The KEY 1 value from Azure Portal, Keys and Endpoint section

twitter-sentiment-processor/demos/demo2/provider/app.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@ require("isomorphic-fetch");
77
require("es6-promise").polyfill();
88
const logger = require("./logger");
99
const express = require("express");
10-
const bodyParser = require("body-parser");
1110

1211
// express
1312
const port = 3001;
1413
const app = express();
15-
app.use(bodyParser.json());
14+
app.use(express.json());
1615

1716
// Dapr
1817
const daprPort = process.env.DAPR_HTTP_PORT || "3500";

0 commit comments

Comments
 (0)