koa-static
Advanced tools
Comparing version 1.4.7 to 1.4.8
@@ -6,2 +6,3 @@ | ||
var resolve = require('path').resolve; | ||
var assert = require('assert'); | ||
@@ -33,3 +34,3 @@ var debug = require('debug')('koa-static'); | ||
debug('static "%s" %j', root, opts); | ||
opts.root = root; | ||
opts.root = resolve(root); | ||
opts.index = opts.index || 'index.html'; | ||
@@ -40,3 +41,3 @@ | ||
if (this.idempotent && (yield send(this, this.path, opts))) return; | ||
yield next; | ||
yield* next; | ||
}; | ||
@@ -46,3 +47,3 @@ } | ||
return function *serve(next){ | ||
yield next; | ||
yield* next; | ||
@@ -54,2 +55,2 @@ // response is already handled | ||
}; | ||
} | ||
} |
@@ -5,3 +5,3 @@ { | ||
"repository": "koajs/static", | ||
"version": "1.4.7", | ||
"version": "1.4.8", | ||
"keywords": [ | ||
@@ -8,0 +8,0 @@ "koa", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4971
4
39