-
Nonce breaks.
It has old express flow types hanging about.
-
Will need to support async await with koa 2.0:
``` js
app.use(async (ctx, next) => {
// ...
await next();
// ...
});
```
-
I'm using koa-jwt for koa@2, so I installed koa-jwt by running `npm i --save koa-jwt@koa2`.
Authorizing token works, but when I call `ctx.state.user`, it returns `undefined`. I did some debugging and…
-
See
https://github.com/koajs/joi-router/commit/7e7612ee4b10591f39a2147cafd0f78c991b20b9
-
Please provide minimal sample how to get parsed info.
Where I should to look for the info?
-
-
I have this middleware blocking my routes (can't set status, error is thrown)
``` javascript
function allowCrossDomain() {
return function (ctx, next) {
ctx.set('Access-Control-Allow-Origi…
-
主要是为了在更新 JavaScript SDK 2.0 的时候顺便做一些不兼容的修改,尽量能够在一个月内发布:
- [x] 更新 JavaScript SDK 2.0(不兼容,小程序相关支持)
- [x] 移除 AV.Cloud.httpRequest(不兼容)
- [x] 云函数 Promise 支持、移除 domain、onError(少量不兼容) https://github.co…
-
```
const Seneca = require('seneca')
const SenecaWeb = require('seneca-web')
const Koa = require('koa')
const Router = require('koa-router')
const app = Koa()
const seneca = Seneca()
seneca.use…
-
如 [koa-static-cache](https://github.com/koajs/static-cache) 这样的中间件,它接收两个参数,一个静态资源路径和一个opt参数,但是egg的中间件配置貌似只接收json参数,比如教程中给出的例子:
```javascript
module.exports = {
// 配置需要的中间件,数组顺序即为中间件的加载顺序
middl…