apollo-server-core
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -1,2 +0,1 @@ | ||
import 'apollo-server-env'; | ||
export { runHttpQuery, HttpQueryRequest, HttpQueryError } from './runHttpQuery'; | ||
@@ -3,0 +2,0 @@ export { default as GraphQLOptions, resolveGraphqlOptions, PersistedQueryOptions, } from './graphqlOptions'; |
@@ -17,3 +17,2 @@ "use strict"; | ||
exports.gql = exports.ApolloServerBase = exports.convertNodeHttpToRequest = exports.formatApolloErrors = exports.UserInputError = exports.ForbiddenError = exports.AuthenticationError = exports.ValidationError = exports.SyntaxError = exports.toApolloError = exports.ApolloError = exports.resolveGraphqlOptions = exports.HttpQueryError = exports.runHttpQuery = void 0; | ||
require("apollo-server-env"); | ||
var runHttpQuery_1 = require("./runHttpQuery"); | ||
@@ -20,0 +19,0 @@ Object.defineProperty(exports, "runHttpQuery", { enumerable: true, get: function () { return runHttpQuery_1.runHttpQuery; } }); |
@@ -1,2 +0,2 @@ | ||
import type { CacheHint, CachePolicy } from 'apollo-server-types'; | ||
import type { CacheHint } from 'apollo-server-types'; | ||
import type { InternalApolloServerPlugin } from '../../internalPlugin'; | ||
@@ -8,13 +8,4 @@ export interface ApolloServerPluginCacheControlOptions { | ||
} | ||
declare module 'graphql/type/definition' { | ||
interface GraphQLResolveInfo { | ||
cacheControl: { | ||
cacheHint: CachePolicy; | ||
setCacheHint(hint: CacheHint): void; | ||
cacheHintFromType(t: GraphQLCompositeType): CacheHint | undefined; | ||
}; | ||
} | ||
} | ||
export declare function ApolloServerPluginCacheControl(options?: ApolloServerPluginCacheControlOptions): InternalApolloServerPlugin; | ||
export declare function ApolloServerPluginCacheControlDisabled(): InternalApolloServerPlugin; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,4 +0,4 @@ | ||
import { Request, Headers, ValueOrPromise } from 'apollo-server-env'; | ||
import { Request, Headers } from 'apollo-server-env'; | ||
import { default as GraphQLOptions } from './graphqlOptions'; | ||
import { WithRequired, GraphQLExecutionResult } from 'apollo-server-types'; | ||
import { WithRequired, GraphQLExecutionResult, ValueOrPromise } from 'apollo-server-types'; | ||
export interface HttpQueryRequest { | ||
@@ -5,0 +5,0 @@ method: string; |
{ | ||
"name": "apollo-server-core", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Core engine for Apollo GraphQL server", | ||
@@ -34,10 +34,10 @@ "main": "dist/index.js", | ||
"@josephg/resolvable": "^1.0.0", | ||
"apollo-datasource": "^3.0.1", | ||
"apollo-datasource": "^3.0.2", | ||
"apollo-graphql": "^0.9.0", | ||
"apollo-reporting-protobuf": "^3.0.0", | ||
"apollo-server-caching": "^3.0.1", | ||
"apollo-server-env": "^4.0.1", | ||
"apollo-server-env": "^4.0.2", | ||
"apollo-server-errors": "^3.0.1", | ||
"apollo-server-plugin-base": "^3.0.1", | ||
"apollo-server-types": "^3.0.1", | ||
"apollo-server-plugin-base": "^3.0.2", | ||
"apollo-server-types": "^3.0.2", | ||
"async-retry": "^1.2.1", | ||
@@ -54,3 +54,3 @@ "fast-json-stable-stringify": "^2.1.0", | ||
}, | ||
"gitHead": "856f7fbc151ebef4d6ca8a9efe801ecca3d4f9c3" | ||
"gitHead": "69577df0b08d392e99d65644a27d48b9b925dd94" | ||
} |
@@ -1,3 +0,1 @@ | ||
import 'apollo-server-env'; | ||
export { runHttpQuery, HttpQueryRequest, HttpQueryError } from './runHttpQuery'; | ||
@@ -4,0 +2,0 @@ |
@@ -1,6 +0,2 @@ | ||
import type { | ||
CacheAnnotation, | ||
CacheHint, | ||
CachePolicy, | ||
} from 'apollo-server-types'; | ||
import type { CacheAnnotation, CacheHint } from 'apollo-server-types'; | ||
import { CacheScope } from 'apollo-server-types'; | ||
@@ -40,14 +36,2 @@ import { | ||
declare module 'graphql/type/definition' { | ||
interface GraphQLResolveInfo { | ||
cacheControl: { | ||
cacheHint: CachePolicy; | ||
// Shorthand for `cacheHint.replace(hint)`; also for compatibility with | ||
// the Apollo Server 2.x API. | ||
setCacheHint(hint: CacheHint): void; | ||
cacheHintFromType(t: GraphQLCompositeType): CacheHint | undefined; | ||
}; | ||
} | ||
} | ||
export function ApolloServerPluginCacheControl( | ||
@@ -54,0 +38,0 @@ options: ApolloServerPluginCacheControlOptions = Object.create(null), |
@@ -1,2 +0,2 @@ | ||
import { Request, Headers, ValueOrPromise } from 'apollo-server-env'; | ||
import { Request, Headers } from 'apollo-server-env'; | ||
import { | ||
@@ -14,3 +14,7 @@ default as GraphQLOptions, | ||
import { ApolloServerPlugin } from 'apollo-server-plugin-base'; | ||
import { WithRequired, GraphQLExecutionResult } from 'apollo-server-types'; | ||
import { | ||
WithRequired, | ||
GraphQLExecutionResult, | ||
ValueOrPromise, | ||
} from 'apollo-server-types'; | ||
import { newCachePolicy } from './cachePolicy'; | ||
@@ -17,0 +21,0 @@ |
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
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
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
1219392
21765
13
Updatedapollo-datasource@^3.0.2
Updatedapollo-server-env@^4.0.2
Updatedapollo-server-types@^3.0.2