🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

apollo-server-core

Package Overview
Dependencies
Maintainers
5
Versions
314
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apollo-server-core - npm Package Compare versions

Comparing version

to
1.3.4

3

dist/graphqlOptions.d.ts
import { GraphQLSchema, ValidationContext, GraphQLFieldResolver } from 'graphql';
import { LogFunction } from './runQuery';
import { CacheControlExtensionOptions } from 'apollo-cache-control';
export interface GraphQLServerOptions {

@@ -15,5 +16,5 @@ schema: GraphQLSchema;

tracing?: boolean;
cacheControl?: boolean;
cacheControl?: boolean | CacheControlExtensionOptions;
}
export default GraphQLServerOptions;
export declare function resolveGraphqlOptions(options: GraphQLServerOptions | Function, ...args: any[]): Promise<GraphQLServerOptions>;
import { GraphQLSchema, GraphQLFieldResolver, DocumentNode, GraphQLError, ValidationContext } from 'graphql';
import { CacheControlExtensionOptions } from 'apollo-cache-control';
export interface GraphQLResponse {

@@ -43,4 +44,4 @@ data?: object;

tracing?: boolean;
cacheControl?: boolean;
cacheControl?: boolean | CacheControlExtensionOptions;
}
export declare function runQuery(options: QueryOptions): Promise<GraphQLResponse>;

@@ -58,5 +58,8 @@ "use strict";

}
if (options.cacheControl) {
if (options.cacheControl === true) {
extensions.push(apollo_cache_control_1.CacheControlExtension);
}
else if (options.cacheControl) {
extensions.push(new apollo_cache_control_1.CacheControlExtension(options.cacheControl));
}
var extensionStack = extensions.length > 0 && new graphql_extensions_1.GraphQLExtensionStack(extensions);

@@ -63,0 +66,0 @@ if (extensionStack) {

{
"name": "apollo-server-core",
"version": "1.3.3",
"version": "1.3.4",
"description": "Core engine for Apollo GraphQL server",

@@ -29,6 +29,6 @@ "main": "dist/index.js",

"@types/fibers": "0.0.30",
"@types/graphql": "0.12.6",
"@types/graphql": "0.12.7",
"fibers": "1.0.15",
"meteor-promise": "0.8.6",
"typescript": "2.7.2"
"typescript": "2.8.1"
},

@@ -43,3 +43,3 @@ "peerDependencies": {

"dependencies": {
"apollo-cache-control": "^0.0.x",
"apollo-cache-control": "^0.1.0",
"apollo-tracing": "^0.1.0",

@@ -46,0 +46,0 @@ "graphql-extensions": "^0.0.x"

# apollo-server-core
This is the core module of the Apollo community GraphQL Server. [Read the docs.](https://www.apollographql.com/docs/apollo-server/)
[Read the CHANGELOG.](https://github.com/apollographql/apollo-server/blob/master/CHANGELOG.md)

@@ -8,2 +8,3 @@ import {

import { GraphQLExtension } from 'graphql-extensions';
import { CacheControlExtensionOptions } from 'apollo-cache-control';

@@ -37,3 +38,3 @@ /*

tracing?: boolean;
cacheControl?: boolean;
cacheControl?: boolean | CacheControlExtensionOptions;
}

@@ -40,0 +41,0 @@

@@ -22,3 +22,6 @@ import {

import { TracingExtension } from 'apollo-tracing';
import { CacheControlExtension } from 'apollo-cache-control';
import {
CacheControlExtension,
CacheControlExtensionOptions,
} from 'apollo-cache-control';

@@ -72,3 +75,3 @@ export interface GraphQLResponse {

tracing?: boolean;
cacheControl?: boolean;
cacheControl?: boolean | CacheControlExtensionOptions;
}

@@ -120,4 +123,6 @@

}
if (options.cacheControl) {
if (options.cacheControl === true) {
extensions.push(CacheControlExtension);
} else if (options.cacheControl) {
extensions.push(new CacheControlExtension(options.cacheControl));
}

@@ -124,0 +129,0 @@ const extensionStack =

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