koa-static
Advanced tools
Comparing version 1.4.3 to 1.4.4
@@ -36,9 +36,9 @@ | ||
if (!opts.defer) { | ||
return function *(next){ | ||
return function *static(next){ | ||
if (this.idempotent && (yield send(this, this.path, opts))) return; | ||
yield next; | ||
} | ||
}; | ||
} | ||
return function *(next){ | ||
return function *static(next){ | ||
yield next; | ||
@@ -50,3 +50,3 @@ | ||
yield send(this, this.path, opts); | ||
} | ||
}; | ||
} |
@@ -5,3 +5,3 @@ { | ||
"repository": "koajs/static", | ||
"version": "1.4.3", | ||
"version": "1.4.4", | ||
"keywords": [ | ||
@@ -8,0 +8,0 @@ "koa", |
@@ -7,3 +7,3 @@ # koa-static [![Build Status](https://travis-ci.org/koajs/static.png)](https://travis-ci.org/koajs/static) | ||
```js | ||
```bash | ||
$ npm install koa-static | ||
@@ -10,0 +10,0 @@ ``` |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
2290
0