Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mojito-cache

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mojito-cache - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

2

package.json
{
"name": "mojito-cache",
"version": "0.1.1",
"version": "0.1.2",
"description": "A set of libraries for various caching strategies in mojito.",

@@ -5,0 +5,0 @@ "main": " ",

@@ -12,10 +12,11 @@ /*

var originalDispatcher = Y.mojito.Dispatcher,
var staticAppConfig,
refreshedAddons,
enabled = true,
originalDispatcher = Y.mojito.Dispatcher,
OriginalActionContext = Y.mojito.ActionContext,
RequestCacheDispatcher = function () {
var staticAppConfig,
refreshedAddons,
enabled = true;
/**

@@ -184,14 +185,16 @@ * Here we will mimic what the ActionContext constructor does,

RequestCacheActionContext = function (options) {
var newExpandedResource = new ExpandedResource({
actionContext: this,
controller: options.controller
}),
instance = options.command.instance,
cache = options.adapter.req.globals['request-cache'];
if (enabled) {
var newExpandedResource = new ExpandedResource({
actionContext: this,
controller: options.controller
}),
instance = options.command.instance,
cache = options.adapter.req.globals['request-cache'];
// Save the references in either byBase or byType
if (instance.base) {
cache.byBase[instance.base] = newExpandedResource;
} else if (instance.type) {
cache.byType[instance.type] = newExpandedResource;
// Save the references in either byBase or byType
if (instance.base) {
cache.byBase[instance.base] = newExpandedResource;
} else if (instance.type) {
cache.byType[instance.type] = newExpandedResource;
}
}

@@ -198,0 +201,0 @@

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