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

mock-apollo-client

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mock-apollo-client - npm Package Compare versions

Comparing version 0.4.0 to 0.5.0

CHANGELOG.md

12

dist/mockLink.js

@@ -69,8 +69,12 @@ "use strict";

var getIdentifiers = function (requestQuery) {
var withoutClientSets = apollo_utilities_1.hasDirectives(['client'], requestQuery)
? apollo_utilities_1.removeClientSetsFromDocument(requestQuery)
if (!apollo_utilities_1.hasDirectives(['client', 'connection'], requestQuery)) {
return [requestQuery];
}
var withoutDirectives = apollo_utilities_1.removeClientSetsFromDocument(requestQuery);
withoutDirectives = withoutDirectives !== null
? apollo_utilities_1.removeConnectionDirectiveFromDocument(withoutDirectives)
: null;
return withoutClientSets === null
return withoutDirectives === null
? [requestQuery]
: [requestQuery, withoutClientSets];
: [requestQuery, withoutDirectives];
};

@@ -77,0 +81,0 @@ var requestToKey = function (query) {

{
"name": "mock-apollo-client",
"version": "0.4.0",
"version": "0.5.0",
"description": "Library to help unit testing when using apollo-client",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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