apollo-cache-inmemory
Advanced tools
Comparing version 1.3.3 to 1.3.4
@@ -7,2 +7,26 @@ (function (global, factory) { | ||
var frozen = {}; | ||
var frozenTestMap = new Map(); | ||
if (typeof Object.freeze === 'function') { | ||
Object.freeze(frozen); | ||
} | ||
try { | ||
frozenTestMap.set(frozen, frozen).delete(frozen); | ||
} | ||
catch (_a) { | ||
var wrap = function (method) { | ||
return method && (function (obj) { | ||
try { | ||
frozenTestMap.set(obj, obj).delete(obj); | ||
} | ||
finally { | ||
return method.call(Object, obj); | ||
} | ||
}); | ||
}; | ||
Object.freeze = wrap(Object.freeze); | ||
Object.seal = wrap(Object.seal); | ||
Object.preventExtensions = wrap(Object.preventExtensions); | ||
} | ||
var haveWarned = false; | ||
@@ -93,3 +117,3 @@ var HeuristicFragmentMatcher = (function () { | ||
var wrap = require('optimism').wrap; | ||
var wrap$1 = require('optimism').wrap; | ||
var CacheKeyNode = (function () { | ||
@@ -127,3 +151,3 @@ function CacheKeyNode() { | ||
this.data = data; | ||
this.depend = wrap(function (dataId) { return _this.data[dataId]; }, { | ||
this.depend = wrap$1(function (dataId) { return _this.data[dataId]; }, { | ||
disposable: true, | ||
@@ -326,3 +350,3 @@ makeCacheKey: function (dataId) { | ||
reader.keyMaker = new QueryKeyMaker(cacheKeyRoot); | ||
this.executeStoreQuery = wrap(function (options) { | ||
this.executeStoreQuery = wrap$1(function (options) { | ||
return executeStoreQuery.call(_this, options); | ||
@@ -337,3 +361,3 @@ }, { | ||
}); | ||
this.executeSelectionSet = wrap(function (options) { | ||
this.executeSelectionSet = wrap$1(function (options) { | ||
return executeSelectionSet.call(_this, options); | ||
@@ -1062,3 +1086,3 @@ }, { | ||
var maybeBroadcastWatch = cache.maybeBroadcastWatch; | ||
_this.maybeBroadcastWatch = wrap(function (c) { | ||
_this.maybeBroadcastWatch = wrap$1(function (c) { | ||
return maybeBroadcastWatch.call(_this, c); | ||
@@ -1065,0 +1089,0 @@ }, { |
@@ -0,1 +1,2 @@ | ||
import './fixPolyfills'; | ||
import { DocumentNode } from 'graphql'; | ||
@@ -2,0 +3,0 @@ import { Cache, DataProxy, ApolloCache, Transaction } from 'apollo-cache'; |
@@ -25,2 +25,3 @@ var __extends = (this && this.__extends) || (function () { | ||
}; | ||
import './fixPolyfills'; | ||
import { ApolloCache } from 'apollo-cache'; | ||
@@ -27,0 +28,0 @@ import { getFragmentQueryDocument, addTypenameToDocument, } from 'apollo-utilities'; |
{ | ||
"name": "apollo-cache-inmemory", | ||
"version": "1.3.3", | ||
"version": "1.3.4", | ||
"description": "Core abstract of Caching layer for Apollo Client", | ||
@@ -5,0 +5,0 @@ "author": "James Baxley <james@meteor.com>", |
@@ -0,1 +1,4 @@ | ||
// Make builtins like Map and Set safe to use with non-extensible objects. | ||
import './fixPolyfills'; | ||
import { DocumentNode } from 'graphql'; | ||
@@ -2,0 +5,0 @@ |
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
510127
88
10326