Socket
Socket
Sign inDemoInstall

apollo-cache-inmemory

Package Overview
Dependencies
Maintainers
4
Versions
149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apollo-cache-inmemory - npm Package Compare versions

Comparing version 1.3.4 to 1.3.5

5

lib/bundle.umd.js

@@ -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;

2

package.json
{
"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

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