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

koa-incache

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-incache - npm Package Compare versions

Comparing version 0.3.2 to 0.4.0

3

CHANGELOG.md

@@ -7,2 +7,5 @@ # Change Log

## [0.4.0] - 2019-01-02
- Added cache options to `cached` method
## [0.3.2] - 2018-10-16

@@ -9,0 +12,0 @@ - Fixed the global maxAge param was not considered

5

index.js

@@ -54,6 +54,7 @@ const InCache = require('./override/incache');

* @param value {any} any value to caching
* @param [opts] {object} InCache options
* @returns {{isNew: boolean, createdOn: (Date|null), updatedOn: (Date|null), value: *}}
*/
ctx.cached = (value) => {
return ctx.cache.set(key, value);
ctx.cached = (value, opts) => {
return ctx.cache.set(key, value, opts);
};

@@ -60,0 +61,0 @@

{
"name": "koa-incache",
"version": "0.3.2",
"version": "0.4.0",
"description": "Koa cache middleware",

@@ -5,0 +5,0 @@ "main": "index.js",

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