Comments (2)
I found this source code in https://github.com/webpro/dyson/blob/master/lib/dyson.js:
const installMiddleware = (app, options) => {
const bodyParserOptions = options.bodyParserJsonLimit ? { limit: options.bodyParserJsonLimit } : {};
const bodyParserUrlOptions = { extended: true };
bodyParserUrlOptions.limit = options.bodyParserUrlencodedLimit ? options.bodyParserUrlencodedLimit : null;
app.use(cors({ origin: true, credentials: true }));
app.use(rawBody());
app.use(cookieParser());
app.use(favicon(`${__dirname}/favicon.ico`));
app.use(bodyParser.json(bodyParserOptions));
app.use(bodyParser.urlencoded(bodyParserUrlOptions));
return app;
};
Does it mean only bodyParserJsonLimit is supported?
from dyson.
Resolved by #103
from dyson.
Related Issues (20)
- Default options not working HOT 7
- Hi. It is possible to use with webpack-dev-server hooks? HOT 1
- Objects being mutated within template function HOT 3
- Demo site is down HOT 3
- Explicit versions prevent fixing npm vulnerabilities HOT 2
- Query Params HOT 2
- Request is not proxied when form-data is used
- Add support for TypeScript files
- json file and js file in same folder causes problems HOT 2
- Maximum call stack size exceeded HOT 1
- How do I simulate a file upload? HOT 3
- dyson dependencies fail npm security audit HOT 3
- Return return express server instead of express HOT 2
- Sending custom status clears body HOT 5
- Documentation on what params are returned HOT 9
- Recording Mocks HOT 4
- 404 not found HOT 2
- Content-Type is converted to lowercase HOT 1
- Dyson dependencies fail npm security audit - lodash needs updating HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dyson.