apollo-server-plugin-base
Advanced tools
Comparing version 0.300.0-alpha.4 to 0.300.0-html.0
@@ -9,3 +9,8 @@ import { AnyFunctionMap, BaseContext, GraphQLServiceContext, GraphQLRequestContext, GraphQLRequest, GraphQLResponse, ValueOrPromise, WithRequired, GraphQLFieldResolverParams, GraphQLRequestContextDidResolveSource, GraphQLRequestContextParsingDidStart, GraphQLRequestContextValidationDidStart, GraphQLRequestContextDidResolveOperation, GraphQLRequestContextDidEncounterErrors, GraphQLRequestContextResponseForOperation, GraphQLRequestContextExecutionDidStart, GraphQLRequestContextWillSendResponse } from 'apollo-server-types'; | ||
serverWillStop?(): ValueOrPromise<void>; | ||
renderUIPage?(): UIPage; | ||
__internal_installed_implicitly__?: boolean; | ||
} | ||
export interface UIPage { | ||
html: string; | ||
} | ||
export declare type GraphQLRequestListenerParsingDidEnd = (err?: Error) => void; | ||
@@ -12,0 +17,0 @@ export declare type GraphQLRequestListenerValidationDidEnd = ((err?: ReadonlyArray<Error>) => void); |
{ | ||
"name": "apollo-server-plugin-base", | ||
"version": "0.300.0-alpha.4", | ||
"version": "0.300.0-html.0", | ||
"description": "Apollo Server plugin base classes", | ||
@@ -14,3 +14,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"apollo-server-types": "^0.300.0-alpha.4" | ||
"apollo-server-types": "^0.300.0-html.0" | ||
}, | ||
@@ -20,3 +20,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "97073f33d30f2d682655eb0e4dce1d7d43721807" | ||
"gitHead": "ee3ff095c8818cbfd721639741481703fb4d62a0" | ||
} |
@@ -69,4 +69,18 @@ import { | ||
serverWillStop?(): ValueOrPromise<void>; | ||
// At most one plugin's serverWillStart may return a GraphQLServerListener | ||
// with this method. If one does, it is called once on server startup and the | ||
// page it returns is served to clients with `accept: text/html` headers. This | ||
// is an intentionally simple API; if you want to do something fancy to serve | ||
// your UI, you probably should just define a handler in your web framework. | ||
renderUIPage?(): UIPage; | ||
// An internal-only flag used in the default UI plugin so that it can be | ||
// ignored if you install another UI plugin. | ||
__internal_installed_implicitly__?: boolean; | ||
} | ||
// The page served to clients with `accept: text/html` headers. | ||
export interface UIPage { | ||
html: string; | ||
} | ||
export type GraphQLRequestListenerParsingDidEnd = (err?: Error) => void; | ||
@@ -73,0 +87,0 @@ export type GraphQLRequestListenerValidationDidEnd = |
Sorry, the diff of this file is not supported yet
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
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
12964
164