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

@common-stack/server-core

Package Overview
Dependencies
Maintainers
0
Versions
259
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@common-stack/server-core - npm Package Compare versions

Comparing version 6.0.6-alpha.50 to 6.0.6-alpha.72

9

lib/connector/connector.d.ts

@@ -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 };

4

package.json
{
"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

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