apollo-link-dedup
Advanced tools
Comparing version 1.0.17 to 1.0.18
@@ -51,7 +51,9 @@ 'use strict'; | ||
return function () { | ||
_this.subscribers.get(key).delete(observer); | ||
if (_this.subscribers.get(key).size === 0) { | ||
_this.inFlightRequestObservables.delete(key); | ||
if (subscription_1) | ||
subscription_1.unsubscribe(); | ||
if (_this.subscribers.has(key)) { | ||
_this.subscribers.get(key).delete(observer); | ||
if (_this.subscribers.get(key).size === 0) { | ||
_this.inFlightRequestObservables.delete(key); | ||
if (subscription_1) | ||
subscription_1.unsubscribe(); | ||
} | ||
} | ||
@@ -58,0 +60,0 @@ }; |
@@ -47,7 +47,9 @@ import { __extends } from 'tslib'; | ||
return function () { | ||
_this.subscribers.get(key).delete(observer); | ||
if (_this.subscribers.get(key).size === 0) { | ||
_this.inFlightRequestObservables.delete(key); | ||
if (subscription_1) | ||
subscription_1.unsubscribe(); | ||
if (_this.subscribers.has(key)) { | ||
_this.subscribers.get(key).delete(observer); | ||
if (_this.subscribers.get(key).size === 0) { | ||
_this.inFlightRequestObservables.delete(key); | ||
if (subscription_1) | ||
subscription_1.unsubscribe(); | ||
} | ||
} | ||
@@ -54,0 +56,0 @@ }; |
@@ -50,7 +50,9 @@ (function (global, factory) { | ||
return function () { | ||
_this.subscribers.get(key).delete(observer); | ||
if (_this.subscribers.get(key).size === 0) { | ||
_this.inFlightRequestObservables.delete(key); | ||
if (subscription_1) | ||
subscription_1.unsubscribe(); | ||
if (_this.subscribers.has(key)) { | ||
_this.subscribers.get(key).delete(observer); | ||
if (_this.subscribers.get(key).size === 0) { | ||
_this.inFlightRequestObservables.delete(key); | ||
if (subscription_1) | ||
subscription_1.unsubscribe(); | ||
} | ||
} | ||
@@ -57,0 +59,0 @@ }; |
@@ -48,7 +48,9 @@ "use strict"; | ||
return function () { | ||
_this.subscribers.get(key).delete(observer); | ||
if (_this.subscribers.get(key).size === 0) { | ||
_this.inFlightRequestObservables.delete(key); | ||
if (subscription_1) | ||
subscription_1.unsubscribe(); | ||
if (_this.subscribers.has(key)) { | ||
_this.subscribers.get(key).delete(observer); | ||
if (_this.subscribers.get(key).size === 0) { | ||
_this.inFlightRequestObservables.delete(key); | ||
if (subscription_1) | ||
subscription_1.unsubscribe(); | ||
} | ||
} | ||
@@ -55,0 +57,0 @@ }; |
{ | ||
"name": "apollo-link-dedup", | ||
"version": "1.0.17", | ||
"version": "1.0.18", | ||
"description": "Deduplicates queries that are currently on the wire", | ||
@@ -37,3 +37,3 @@ "author": "Evans Hauser <evanshauser@gmail.com>", | ||
"dependencies": { | ||
"apollo-link": "^1.2.10", | ||
"apollo-link": "^1.2.11", | ||
"tslib": "^1.9.3" | ||
@@ -50,3 +50,3 @@ }, | ||
"ts-jest": "22.4.6", | ||
"tslint": "5.13.1", | ||
"tslint": "5.14.0", | ||
"typescript": "3.0.3" | ||
@@ -67,3 +67,3 @@ }, | ||
}, | ||
"gitHead": "127ab65ba89185a82c492299c7853f02fdd7e570" | ||
"gitHead": "ed1800b4261566e91906cdb9cc45c7d004393175" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
36173
271
Updatedapollo-link@^1.2.11