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

@graphitation/apollo-mock-client

Package Overview
Dependencies
Maintainers
4
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphitation/apollo-mock-client - npm Package Compare versions

Comparing version 0.6.11 to 0.7.0

28

CHANGELOG.json

@@ -5,11 +5,11 @@ {

{
"date": "Tue, 26 Oct 2021 21:09:16 GMT",
"tag": "@graphitation/apollo-mock-client_v0.6.11",
"version": "0.6.11",
"date": "Wed, 24 Nov 2021 13:22:06 GMT",
"tag": "@graphitation/apollo-mock-client_v0.7.0",
"version": "0.7.0",
"comments": {
"patch": [
"minor": [
{
"comment": "Bump @graphitation/graphql-js-tag to v0.5.5",
"author": "modevold@microsoft.com",
"commit": "6fbd717cb21f2e9f49ddca58e0365b5381358b46",
"comment": "Allow cache config of mock client",
"author": "eloy.de.enige@gmail.com",
"commit": "5f314c5fd026e510d8640396ebcc910019efa3e4",
"package": "@graphitation/apollo-mock-client"

@@ -21,11 +21,11 @@ }

{
"date": "Tue, 26 Oct 2021 12:46:12 GMT",
"tag": "@graphitation/apollo-mock-client_v0.6.10",
"version": "0.6.10",
"date": "Tue, 05 Oct 2021 08:17:41 GMT",
"tag": "@graphitation/apollo-mock-client_v0.6.9",
"version": "0.6.9",
"comments": {
"patch": [
"none": [
{
"comment": "Align graphql dependency to version ^15.0.0 across packages",
"author": "modevold@microsoft.com",
"commit": "d8b94fe7725a968abfac81953b97a879b2bdaeb3",
"comment": "Use consistent @apollo/client version across monorepo",
"author": "eloy.de.enige@gmail.com",
"commit": "9d2a2f88ca216a108f467e8cdea02bb84d35fea9",
"package": "@graphitation/apollo-mock-client"

@@ -32,0 +32,0 @@ }

# Change Log - @graphitation/apollo-mock-client
This log was last generated on Tue, 26 Oct 2021 21:09:16 GMT and should not be manually modified.
This log was last generated on Wed, 24 Nov 2021 13:22:06 GMT and should not be manually modified.
<!-- Start content -->
## 0.6.11
## 0.7.0
Tue, 26 Oct 2021 21:09:16 GMT
Wed, 24 Nov 2021 13:22:06 GMT
### Patches
### Minor changes
- Bump @graphitation/graphql-js-tag to v0.5.5 (modevold@microsoft.com)
- Allow cache config of mock client (eloy.de.enige@gmail.com)
## 0.6.10
Tue, 26 Oct 2021 12:46:12 GMT
### Patches
- Align graphql dependency to version ^15.0.0 across packages (modevold@microsoft.com)
## 0.6.9

@@ -24,0 +16,0 @@

@@ -1,2 +0,2 @@

import { ApolloClient, NormalizedCacheObject } from "@apollo/client";
import { ApolloClient, NormalizedCacheObject, InMemoryCacheConfig } from "@apollo/client";
import { DocumentNode, ExecutionResult, GraphQLSchema } from "graphql";

@@ -90,4 +90,6 @@ export interface RequestDescriptor<Node = DocumentNode> {

}
export declare function createMockClient(schema: GraphQLSchema): ApolloMockClient;
export declare function createMockClient(schema: GraphQLSchema, options?: {
cache?: InMemoryCacheConfig;
}): ApolloMockClient;
export {};
//# sourceMappingURL=index.d.ts.map

@@ -7,2 +7,16 @@ var __create = Object.create;

var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
var __propIsEnum = Object.prototype.propertyIsEnumerable;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {enumerable: true, configurable: true, writable: true, value}) : obj[key] = value;
var __objSpread = (a, b) => {
for (var prop in b || (b = {}))
if (__hasOwnProp.call(b, prop))
__defNormalProp(a, prop, b[prop]);
if (__getOwnPropSymbols)
for (var prop of __getOwnPropSymbols(b)) {
if (__propIsEnum.call(b, prop))
__defNormalProp(a, prop, b[prop]);
}
return a;
};
var __markAsModule = (target) => __defProp(target, "__esModule", {value: true});

@@ -166,3 +180,3 @@ var __export = (target, all) => {

}
function createMockClient(schema) {
function createMockClient(schema, options) {
const possibleTypes = {};

@@ -178,6 +192,7 @@ Object.keys(schema.getTypeMap()).forEach((typeName) => {

return Object.assign(new import_client.ApolloClient({
cache: new import_client.InMemoryCache({
possibleTypes,
addTypename: false
}),
cache: new import_client.InMemoryCache(__objSpread(__objSpread({
addTypename: true
}, options == null ? void 0 : options.cache), {
possibleTypes
})),
link

@@ -184,0 +199,0 @@ }), {

@@ -5,4 +5,4 @@ {

"license": "MIT",
"version": "0.6.11",
"main": "./lib/index",
"version": "0.7.0",
"main": "./src/index.ts",
"scripts": {

@@ -16,5 +16,5 @@ "build": "monorepo-scripts build",

"devDependencies": {
"@apollo/client": "^3.3.15",
"@graphitation/graphql-js-tag": "^0.5.5",
"@graphitation/graphql-js-operation-payload-generator": "^0.5.10",
"@apollo/client": "^3.4.13",
"@graphitation/graphql-js-tag": "^0.5.4",
"@graphitation/graphql-js-operation-payload-generator": "^0.5.9",
"@types/invariant": "^2.2.34",

@@ -24,3 +24,3 @@ "@types/jest": "^26.0.22",

"@types/react-test-renderer": "^17.0.1",
"graphql": "^15.0.0",
"graphql": "^15.5.0",
"monorepo-scripts": "*",

@@ -31,4 +31,4 @@ "react": "^17.0.2",

"peerDependencies": {
"@apollo/client": "^3.3.0",
"graphql": "^15.0.0"
"@apollo/client": "^3.4.13",
"graphql": "^15.5.0"
},

@@ -39,5 +39,6 @@ "dependencies": {

"publishConfig": {
"main": "./lib/index",
"types": "./lib/index.d.ts",
"access": "public"
},
"types": "./lib/index.d.ts"
}
}

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