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

mercurius-integration-testing

Package Overview
Dependencies
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mercurius-integration-testing - npm Package Compare versions

Comparing version 6.0.1 to 7.0.0

4

dist/index.d.ts

@@ -6,7 +6,7 @@ /// <reference types="node" />

import type { TypedDocumentNode } from '@graphql-typed-document-node/core';
export declare type GQLResponse<T> = {
export type GQLResponse<T> = {
data: T;
errors?: GraphQLError[];
};
export declare type QueryOptions<TVariables extends Record<string, unknown> | undefined = undefined> = {
export type QueryOptions<TVariables extends Record<string, unknown> | undefined = undefined> = {
operationName?: string | null;

@@ -13,0 +13,0 @@ headers?: IncomingHttpHeaders;

@@ -5,3 +5,3 @@ /// <reference types="node" />

import type { IncomingHttpHeaders } from 'http';
declare type Operation = {
type Operation = {
started: boolean;

@@ -8,0 +8,0 @@ options: {

{
"name": "mercurius-integration-testing",
"version": "6.0.1",
"version": "7.0.0",
"private": false,

@@ -23,2 +23,6 @@ "keywords": [

],
"scripts": {
"prepare": "tsc",
"test": "cross-env TS_NODE_PROJECT=./test/tsconfig.json tap --ts --100"
},
"husky": {

@@ -36,2 +40,4 @@ "hooks": {

"@fastify/cookie": "^8.3.0",
"@mercuriusjs/federation": "^1.0.1",
"@mercuriusjs/gateway": "^1.2.0",
"@types/cookie": "^0.5.1",

@@ -48,3 +54,3 @@ "@types/node": "^14.18.32",

"husky": "^8.0.1",
"mercurius": "^11.0.1",
"mercurius": "^12.0.0",
"mqemitter": "^5.0.0",

@@ -60,10 +66,9 @@ "prettier": "^2.7.1",

"graphql": "*",
"mercurius": "^11.0.0"
"@mercuriusjs/federation": "^1.0.1",
"@mercuriusjs/gateway": "^1.2.0",
"mercurius": "^12.0.0"
},
"engines": {
"node": ">=14"
},
"scripts": {
"test": "cross-env TS_NODE_PROJECT=./test/tsconfig.json tap --ts --100"
}
}
}

@@ -316,2 +316,4 @@ # mercurius-integration-testing

```ts
import { mercuriusFederationPlugin } from '@mercuriusjs/federation'
const schema = `

@@ -330,3 +332,3 @@ type Post @key(fields: "id") {

const app = fastify()
app.register(mercurius, {
app.register(mercuriusFederationPlugin, {
schema,

@@ -338,3 +340,2 @@ resolvers: {

},
federationMetadata: true,
})

@@ -385,3 +386,3 @@

const app = fastify()
app.register(mercurius, {
app.register(mercuriusFederationPlugin, {
schema,

@@ -393,3 +394,2 @@ resolvers: {

},
federationMetadata: true,
})

@@ -396,0 +396,0 @@

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