Socket
Socket
Sign inDemoInstall

apollo-server-types

Package Overview
Dependencies
124
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.300.0-alpha.4 to 0.300.0-html.0

14

dist/index.d.ts

@@ -40,2 +40,7 @@ import { Request, Response } from 'apollo-server-env';

}
export interface ServeHtmlOptions {
path: string;
html: string;
redirectFromRoot?: boolean;
}
export interface GraphQLRequest {

@@ -83,2 +88,3 @@ query?: string;

debug?: boolean;
overallCachePolicy?: Required<CacheHint> | undefined;
}

@@ -116,3 +122,11 @@ export declare type ValidationRule = (context: ValidationContext) => ASTVisitor;

export declare type GraphQLRequestContextWillSendResponse<TContext> = GraphQLRequestContextDidResolveSource<TContext> & WithRequired<GraphQLRequestContext<TContext>, 'metrics' | 'response'>;
export interface CacheHint {
maxAge?: number;
scope?: CacheScope;
}
export declare enum CacheScope {
Public = "PUBLIC",
Private = "PRIVATE"
}
export {};
//# sourceMappingURL=index.d.ts.map

7

dist/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.InvalidGraphQLRequestError = void 0;
exports.CacheScope = exports.InvalidGraphQLRequestError = void 0;
const graphql_1 = require("graphql");

@@ -8,2 +8,7 @@ class InvalidGraphQLRequestError extends graphql_1.GraphQLError {

exports.InvalidGraphQLRequestError = InvalidGraphQLRequestError;
var CacheScope;
(function (CacheScope) {
CacheScope["Public"] = "PUBLIC";
CacheScope["Private"] = "PRIVATE";
})(CacheScope = exports.CacheScope || (exports.CacheScope = {}));
//# sourceMappingURL=index.js.map

4

package.json
{
"name": "apollo-server-types",
"version": "0.300.0-alpha.4",
"version": "0.300.0-html.0",
"description": "Apollo Server shared types",

@@ -21,3 +21,3 @@ "main": "dist/index.js",

},
"gitHead": "97073f33d30f2d682655eb0e4dce1d7d43721807"
"gitHead": "ee3ff095c8818cbfd721639741481703fb4d62a0"
}

@@ -82,2 +82,8 @@ import { Request, Response } from 'apollo-server-env';

export interface ServeHtmlOptions {
path: string;
html: string;
redirectFromRoot?: boolean;
}
export interface GraphQLRequest {

@@ -146,2 +152,5 @@ query?: string;

debug?: boolean;
// Not readonly: plugins can set it.
overallCachePolicy?: Required<CacheHint> | undefined;
}

@@ -237,1 +246,11 @@

>;
export interface CacheHint {
maxAge?: number;
scope?: CacheScope;
}
export enum CacheScope {
Public = 'PUBLIC',
Private = 'PRIVATE',
}

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc