ladda-cache
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -662,3 +662,5 @@ module.exports = | ||
if (shouldUseQueryCache(apiFn.plural, apiFn.byId)) { | ||
(0, _datastore.addCollection)(datastore, createQueryForCollection(type, query, apiFn.name), data); | ||
[apiFn.name].concat(apiFn.cacheAliases || []).map(function (fnName) { | ||
(0, _datastore.addCollection)(datastore, createQueryForCollection(type, query, fnName), data); | ||
}); | ||
} else { | ||
@@ -665,0 +667,0 @@ (0, _datastore.addItem)(datastore, (0, _query.createQuery)(type, query), data); |
{ | ||
"name": "ladda-cache", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "Data fetching layaer with support for caching", | ||
@@ -5,0 +5,0 @@ "main": "dist/bundle.js", |
@@ -55,3 +55,5 @@ import { createQuery } from 'query'; | ||
if (shouldUseQueryCache(apiFn.plural, apiFn.byId)) { | ||
addCollection(datastore, createQueryForCollection(type, query, apiFn.name), data); | ||
[apiFn.name].concat(apiFn.cacheAliases || []).map((fnName) => { | ||
addCollection(datastore, createQueryForCollection(type, query, fnName), data); | ||
}); | ||
} else { | ||
@@ -58,0 +60,0 @@ addItem(datastore, createQuery(type, query), data); |
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
48656
1235