mercurius-integration-testing
Advanced tools
Comparing version 6.0.1 to 7.0.0
@@ -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 @@ |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
38802
8
21
1