apollo-cache-inmemory
Advanced tools
Comparing version 1.3.4 to 1.3.5
@@ -215,2 +215,3 @@ (function (global, factory) { | ||
var CIRCULAR = Object.create(null); | ||
var objToStr = Object.prototype.toString; | ||
var QueryKeyMaker = (function () { | ||
@@ -292,3 +293,3 @@ function QueryKeyMaker(cacheKeyRoot) { | ||
var elements = array.map(this.lookupAny, this); | ||
return this.cacheKeyRoot.lookup(Array.prototype, this.cacheKeyRoot.lookupArray(elements)); | ||
return this.cacheKeyRoot.lookup(objToStr.call(array), this.cacheKeyRoot.lookupArray(elements)); | ||
}; | ||
@@ -299,3 +300,3 @@ PerQueryKeyMaker.prototype.lookupObject = function (object) { | ||
var values = keys.map(function (key) { return _this.lookupAny(object[key]); }); | ||
return this.cacheKeyRoot.lookup(Object.getPrototypeOf(object), this.cacheKeyRoot.lookupArray(keys), this.cacheKeyRoot.lookupArray(values)); | ||
return this.cacheKeyRoot.lookup(objToStr.call(object), this.cacheKeyRoot.lookupArray(keys), this.cacheKeyRoot.lookupArray(values)); | ||
}; | ||
@@ -302,0 +303,0 @@ return PerQueryKeyMaker; |
@@ -14,2 +14,3 @@ var __assign = (this && this.__assign) || function () { | ||
var CIRCULAR = Object.create(null); | ||
var objToStr = Object.prototype.toString; | ||
var QueryKeyMaker = (function () { | ||
@@ -92,3 +93,3 @@ function QueryKeyMaker(cacheKeyRoot) { | ||
var elements = array.map(this.lookupAny, this); | ||
return this.cacheKeyRoot.lookup(Array.prototype, this.cacheKeyRoot.lookupArray(elements)); | ||
return this.cacheKeyRoot.lookup(objToStr.call(array), this.cacheKeyRoot.lookupArray(elements)); | ||
}; | ||
@@ -99,3 +100,3 @@ PerQueryKeyMaker.prototype.lookupObject = function (object) { | ||
var values = keys.map(function (key) { return _this.lookupAny(object[key]); }); | ||
return this.cacheKeyRoot.lookup(Object.getPrototypeOf(object), this.cacheKeyRoot.lookupArray(keys), this.cacheKeyRoot.lookupArray(values)); | ||
return this.cacheKeyRoot.lookup(objToStr.call(object), this.cacheKeyRoot.lookupArray(keys), this.cacheKeyRoot.lookupArray(values)); | ||
}; | ||
@@ -102,0 +103,0 @@ return PerQueryKeyMaker; |
{ | ||
"name": "apollo-cache-inmemory", | ||
"version": "1.3.4", | ||
"version": "1.3.5", | ||
"description": "Core abstract of Caching layer for Apollo Client", | ||
@@ -5,0 +5,0 @@ "author": "James Baxley <james@meteor.com>", |
@@ -6,2 +6,3 @@ import { CacheKeyNode } from "./optimism"; | ||
const CIRCULAR = Object.create(null); | ||
const objToStr = Object.prototype.toString; | ||
@@ -103,3 +104,3 @@ export class QueryKeyMaker { | ||
return this.cacheKeyRoot.lookup( | ||
Array.prototype, | ||
objToStr.call(array), | ||
this.cacheKeyRoot.lookupArray(elements), | ||
@@ -113,3 +114,3 @@ ); | ||
return this.cacheKeyRoot.lookup( | ||
Object.getPrototypeOf(object), | ||
objToStr.call(object), | ||
this.cacheKeyRoot.lookupArray(keys), | ||
@@ -116,0 +117,0 @@ this.cacheKeyRoot.lookupArray(values), |
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
510426
10329