New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

koa-cash

Package Overview
Dependencies
Maintainers
4
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-cash - npm Package Compare versions

Comparing version 3.0.0-0 to 3.0.1-0

index.js

13

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc