-
Hi there, i tried to use your package with typescript and when i tried build my project using tsc i get a whole bunch of errors coming from your lib:
```bash
$ tsc --build tsconfig.build.json
nod…
-
This may be related #513 but is a more specific issue. I've managed to resolve most of the git-uri installation problems by using the form `git+ssh://git@bitbucket.org/everledger/koa-middleware.git#1.…
pospi updated
7 years ago
-
- add packages/middleware,package name:`ssr-middleware`
- add koa/koa middlwares
example
```
const conf = require('./config/config.ssr')
const ssr = require('egg-react-ssr').koa(conf);
con…
-
node.js version: v12.2.0
npm/yarn and version: v6.9.0
`koa-router` version: ^7.4.0
`koa` version: ^2.7.0
#### Code sample:
```ts
import * as compose from 'koa-compose'
import { M…
polRk updated
5 years ago
-
```javascript
// config/config.default.js
jwt: {
secret: 'Great4-M',
enable: true,
ignore: '/api/user/access/login',
}
```
```javascript
// app/router.js
const { …
-
this code:
```
const webpackHotMiddleware = require('koa-webpack-hot-middleware');
const compiler = webpack(config[0]);
koaApp.use(webpackHotMiddleware(compiler));
```
generates this warning…
-
Without the `_name` field being set on the exported middleware Koa seems to use the exported generator/function's name. Since `koa-router` doesn't set this; Koa defaults back to `dispatch` for the mid…
-
The docs currently state that [Koa supports "common" functions as well as the new async/await](https://github.com/koajs/koa#middleware). While this works with happy path code, it falls apart with erro…
-
inversify officially supports and has examples for [express, restify](https://github.com/inversify/InversifyJS/blob/master/wiki/ecosystem.md#utilitites) and [hapi](https://github.com/inversify/Inversi…
-
Some middleware modules are used on every backend project because they provide key functionality to the HTTP layer, namely:
- koa-compress
- koa-bodyparser
- kcors
- koa-conditional-get & koa-et…