apollo-cache-router
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -145,3 +145,8 @@ (function (global, factory) { | ||
RoutingCache.prototype.performTransaction = function (transaction) { | ||
transaction(this); | ||
var _this = this; | ||
this.caches.forEach(function (cache) { | ||
return cache.performTransaction(function () { | ||
transaction(_this); | ||
}); | ||
}); | ||
}; | ||
@@ -148,0 +153,0 @@ RoutingCache.prototype.recordOptimisticTransaction = function (transaction, id) { |
@@ -139,3 +139,8 @@ "use strict"; | ||
RoutingCache.prototype.performTransaction = function (transaction) { | ||
transaction(this); | ||
var _this = this; | ||
this.caches.forEach(function (cache) { | ||
return cache.performTransaction(function () { | ||
transaction(_this); | ||
}); | ||
}); | ||
}; | ||
@@ -142,0 +147,0 @@ RoutingCache.prototype.recordOptimisticTransaction = function (transaction, id) { |
{ | ||
"name": "apollo-cache-router", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "Apollo Cache Router", | ||
@@ -5,0 +5,0 @@ "main": "./lib/bundle.umd.js", |
@@ -169,3 +169,7 @@ import { ApolloCache, Cache, Transaction } from 'apollo-cache'; | ||
public performTransaction(transaction: Transaction<any>): void { | ||
transaction(this); | ||
this.caches.forEach(cache => | ||
cache.performTransaction(() => { | ||
transaction(this); | ||
}) | ||
); | ||
} | ||
@@ -172,0 +176,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
52584
561