@common-stack/server-core
Advanced tools
Comparing version 6.0.6-alpha.50 to 6.0.6-alpha.72
@@ -0,1 +1,2 @@ | ||
import { GraphQLRequestContext, type GraphQLRequestContextWillSendResponse } from '@apollo/server'; | ||
import { Container, interfaces } from 'inversify'; | ||
@@ -11,2 +12,4 @@ import type { Express } from 'express'; | ||
export type FederationServiceDeclaration = (options: IFederationServiceOptions) => Promise<void>; | ||
export type KeyGenerator = (context: GraphQLRequestContext<unknown>, cacheKey?: string) => string; | ||
export type InvalidationKeyGenerator = (requestContext: GraphQLRequestContext<unknown>, responseContext: GraphQLRequestContextWillSendResponse<unknown>, cacheKey?: string) => string; | ||
/** | ||
@@ -66,2 +69,4 @@ * Feature Params that can be passed to Feature Module. | ||
registerExpressMiddlewareFunc?: RegisterExpressMiddlewareFunc | RegisterExpressMiddlewareFunc[]; | ||
apolloCacheKeyGeneratorFunc?: KeyGenerator | KeyGenerator[]; | ||
apolloInvalidateCacheKeyGeneratorFunc?: InvalidationKeyGenerator | InvalidationKeyGenerator[]; | ||
}; | ||
@@ -98,2 +103,4 @@ type RegisterExpressMiddlewareFunc = (app: Express, container: Container) => void; | ||
registerExpressMiddlewareFunc: RegisterExpressMiddlewareFunc[]; | ||
apolloCacheKeyGeneratorFunc: KeyGenerator[]; | ||
apolloInvalidateCacheKeyGeneratorFunc: InvalidationKeyGenerator[]; | ||
createWebsocketConfig: IWebsocketConfig[]; | ||
@@ -531,3 +538,5 @@ createPreference: IPreferences<T>[]; | ||
registerExpressMiddleware(app: Express, container: Container): Promise<void[]>; | ||
apolloCacheKeyGenerator(context: GraphQLRequestContext<unknown>, defaultCacheKey: string): string; | ||
apolloInvalidateCacheKeyGenerator(requestContext: GraphQLRequestContext<unknown>, responseContext: GraphQLRequestContextWillSendResponse<unknown>, defaultCacheKey: string): string; | ||
} | ||
export { Feature }; |
{ | ||
"name": "@common-stack/server-core", | ||
"version": "6.0.6-alpha.50", | ||
"version": "6.0.6-alpha.72", | ||
"description": "common core for higher packages to depend on", | ||
@@ -38,3 +38,3 @@ "license": "ISC", | ||
}, | ||
"gitHead": "1480cb5cc450e52664029ce217b71f52a49f8b86" | ||
"gitHead": "d3f5d29136d61ce971b64030284e8d24b61a2469" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
122498
1766