Comparing version 3.0.0-0 to 3.0.1-0
{ | ||
"name": "koa-cash", | ||
"description": "HTTP response caching for Koa", | ||
"version": "3.0.0-0", | ||
"version": "3.0.1-0", | ||
"publishConfig": { | ||
@@ -16,6 +16,2 @@ "tag": "next" | ||
"devDependencies": { | ||
"babel-cli": "^6.23.0", | ||
"babel-plugin-transform-async-generator-functions": "^6.22.0", | ||
"babel-plugin-transform-async-to-generator": "^6.22.0", | ||
"babel-register": "^6.23.0", | ||
"istanbul": "^1.1.0-alpha.1", | ||
@@ -28,5 +24,6 @@ "koa": "^2.0.0", | ||
}, | ||
"engines": { | ||
"node": ">= 7.6.0" | ||
}, | ||
"scripts": { | ||
"build": "babel index.js --out-dir dist", | ||
"prepublish": "npm run build", | ||
"lint": "standard index.js test/**/*.js", | ||
@@ -45,3 +42,3 @@ "test": "NODE_ENV=test mocha", | ||
"license": "MIT", | ||
"main": "dist/index.js", | ||
"main": "index.js", | ||
"keywords": [ | ||
@@ -48,0 +45,0 @@ "koa", |
@@ -22,3 +22,3 @@ # Koa Cash | ||
app.use(function* (ctx, next) { | ||
app.use(async (ctx, next) => { | ||
// this response is already cashed if `true` is returned, | ||
@@ -42,3 +42,3 @@ // so this middleware will automatically serve this response from cache | ||
Default max age for the cache if not set via `await ctx.cashed(maxAge)`. | ||
Default max age (in milliseconds) for the cache if not set via `await ctx.cashed(maxAge)`. | ||
@@ -45,0 +45,0 @@ #### `threshold` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
6
10048
6
99