Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@urql/exchange-graphcache

Package Overview
Dependencies
Maintainers
3
Versions
298
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@urql/exchange-graphcache - npm Package Compare versions

Comparing version 1.0.0-rc.2 to 1.0.0-rc.3

2

dist/urql-exchange-graphcache.es.js

@@ -414,3 +414,3 @@ import { Kind, buildClientSchema, isNullableType, isNonNullType, isListType, GraphQLObjectType, GraphQLInterfaceType, GraphQLUnionType } from "graphql";

var key = null !== entityKey ? entityKey : parentFieldKey;
if ("string" != typeof data.__typename || void 0 !== ctx.store.keys[data.__typename] || null !== entityKey) {
if ("string" != typeof data.__typename || void 0 === ctx.store.keys[data.__typename] && null === entityKey) {
"production" !== process.env.NODE_ENV && warning(!1, "Invalid key: The GraphQL query at the field at `" + parentFieldKey + "` has a selection set, but no key could be generated for the data at this field.\nYou have to request `id` or `_id` fields for all selection sets or create a custom `keys` config for `" + data.__typename + "`.\nEntities without keys will be embedded directly on the parent entity. If this is intentional, create a `keys` config for `" + data.__typename + "` that always returns null.");

@@ -417,0 +417,0 @@ }

@@ -418,3 +418,3 @@ "use strict";

var key = null !== entityKey ? entityKey : parentFieldKey;
if ("string" != typeof data.__typename || void 0 !== ctx.store.keys[data.__typename] || null !== entityKey) {
if ("string" != typeof data.__typename || void 0 === ctx.store.keys[data.__typename] && null === entityKey) {
"production" !== process.env.NODE_ENV && warning(!1, "Invalid key: The GraphQL query at the field at `" + parentFieldKey + "` has a selection set, but no key could be generated for the data at this field.\nYou have to request `id` or `_id` fields for all selection sets or create a custom `keys` config for `" + data.__typename + "`.\nEntities without keys will be embedded directly on the parent entity. If this is intentional, create a `keys` config for `" + data.__typename + "` that always returns null.");

@@ -421,0 +421,0 @@ }

{
"name": "@urql/exchange-graphcache",
"version": "1.0.0-rc.2",
"version": "1.0.0-rc.3",
"description": "A normalized and configurable cache exchange for urql",

@@ -5,0 +5,0 @@ "repository": "https://github.com/FormidableLabs/urql-exchange-graphcache",

@@ -264,4 +264,3 @@ import { warning } from '../helpers/warning';

typeof data.__typename !== 'string' ||
ctx.store.keys[data.__typename] !== undefined ||
entityKey !== null
(ctx.store.keys[data.__typename] === undefined && entityKey === null)
) {

@@ -268,0 +267,0 @@ warning(

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

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