Skip to content

Commit

Permalink
chore(mu): bump deps. use express built-in json middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
TillaTheHun0 committed Oct 23, 2023
1 parent b528ac2 commit 9bac1ae
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 107 deletions.
109 changes: 8 additions & 101 deletions servers/mu/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions servers/mu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,16 @@
},
"dependencies": {
"@permaweb/ao-sdk": "^0.0.10",
"body-parser": "^1.20.2",
"cors": "^2.8.5",
"debug": "^4.3.4",
"express": "^4.17.1",
"express": "^4.18.2",
"hyper-async": "^1.1.2",
"pouchdb": "^8.0.1",
"pouchdb-adapter-leveldb": "^8.0.1",
"pouchdb-find": "^8.0.1",
"ramda": "^0.29.0",
"ramda": "^0.29.1",
"warp-arbundles": "^1.0.4",
"zod": "^3.22.2"
"zod": "^3.22.4"
},
"devDependencies": {
"dotenv": "^16.3.1",
Expand Down
3 changes: 1 addition & 2 deletions servers/mu/src/app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import express from 'express'
import bodyParser from 'body-parser'
import cors from 'cors'
import { pipe } from 'ramda'

Expand All @@ -9,7 +8,7 @@ import { withRoutes } from './routes/index.js'

export const server = pipe(
(app) => app.use(cors()),
(app) => app.use(bodyParser.json({ type: 'application/json' })),
(app) => app.use(express.json({ type: 'application/json' })),
(app) => app.use(express.raw({ type: 'application/octet-stream', limit: '10mb' })),
(app) => app.get('/', (_req, res) => res.send('ao messenger unit')),
withRoutes,
Expand Down

0 comments on commit 9bac1ae

Please sign in to comment.