Socket
Socket
Sign inDemoInstall

apollo-server-core

Package Overview
Dependencies
23
Maintainers
1
Versions
314
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.9.0 to 3.10.0

4

dist/plugin/landingPage/default/index.d.ts
import type { ImplicitlyInstallablePlugin } from '../../../ApolloServer';
import type { ApolloServerPluginLandingPageLocalDefaultOptions, ApolloServerPluginLandingPageProductionDefaultOptions } from './types';
import type { ApolloServerPluginEmbeddedLandingPageProductionDefaultOptions, ApolloServerPluginLandingPageLocalDefaultOptions, ApolloServerPluginLandingPageProductionDefaultOptions, LandingPageConfig } from './types';
export declare function ApolloServerPluginLandingPageLocalDefault(options?: ApolloServerPluginLandingPageLocalDefaultOptions): ImplicitlyInstallablePlugin;
export declare function ApolloServerPluginLandingPageProductionDefault(options?: ApolloServerPluginLandingPageProductionDefaultOptions): ImplicitlyInstallablePlugin;
export declare const getEmbeddedExplorerHTML: (version: string, config: ApolloServerPluginEmbeddedLandingPageProductionDefaultOptions) => string;
export declare const getEmbeddedSandboxHTML: (version: string, config: LandingPageConfig) => string;
//# sourceMappingURL=index.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ApolloServerPluginLandingPageProductionDefault = exports.ApolloServerPluginLandingPageLocalDefault = void 0;
exports.getEmbeddedSandboxHTML = exports.getEmbeddedExplorerHTML = exports.ApolloServerPluginLandingPageProductionDefault = exports.ApolloServerPluginLandingPageLocalDefault = void 0;
function ApolloServerPluginLandingPageLocalDefault(options = {}) {

@@ -70,4 +70,5 @@ const { version, __internal_apolloStudioEnv__, ...rest } = options;

};
exports.getEmbeddedExplorerHTML = getEmbeddedExplorerHTML;
const getEmbeddedSandboxHTML = (version, config) => {
var _a;
var _a, _b, _c, _d;
return `

@@ -90,2 +91,7 @@ <style>

includeCookies: ${(_a = config.includeCookies) !== null && _a !== void 0 ? _a : 'false'},
initialState: ${getConfigStringForHtml({
document: (_b = config.document) !== null && _b !== void 0 ? _b : undefined,
variables: (_c = config.variables) !== null && _c !== void 0 ? _c : undefined,
headers: (_d = config.headers) !== null && _d !== void 0 ? _d : undefined,
})},
});

@@ -95,2 +101,3 @@ </script>

};
exports.getEmbeddedSandboxHTML = getEmbeddedSandboxHTML;
const getNonEmbeddedLandingPageHTML = (version, config) => {

@@ -163,4 +170,4 @@ const encodedConfig = encodeConfig(config);

? 'graphRef' in config && config.graphRef
? getEmbeddedExplorerHTML(version, config)
: getEmbeddedSandboxHTML(version, config)
? (0, exports.getEmbeddedExplorerHTML)(version, config)
: (0, exports.getEmbeddedSandboxHTML)(version, config)
: getNonEmbeddedLandingPageHTML(version, config)}

@@ -167,0 +174,0 @@ </div>

@@ -5,3 +5,3 @@ export interface ApolloServerPluginLandingPageDefaultBaseOptions {

document?: string;
variables?: Record<string, string>;
variables?: Record<string, any>;
headers?: Record<string, string>;

@@ -8,0 +8,0 @@ includeCookies?: boolean;

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

@@ -37,7 +37,7 @@ "main": "dist/index.js",

"apollo-datasource": "^3.3.2",
"apollo-reporting-protobuf": "^3.3.1",
"apollo-reporting-protobuf": "^3.3.2",
"apollo-server-env": "^4.2.1",
"apollo-server-errors": "^3.3.1",
"apollo-server-plugin-base": "^3.6.1",
"apollo-server-types": "^3.6.1",
"apollo-server-plugin-base": "^3.6.2",
"apollo-server-types": "^3.6.2",
"async-retry": "^1.2.1",

@@ -55,3 +55,3 @@ "fast-json-stable-stringify": "^2.1.0",

},
"gitHead": "36ecbb116cef0b8b62b3ee3b557c4db8c975a406"
"gitHead": "4041aaed6d616ee4b06fced0af482c73b6f752be"
}

@@ -970,4 +970,4 @@ import { addMocksToSchema } from '@graphql-tools/mock';

* This method is primarily meant for testing: it allows you to execute a
* GraphQL operation via the request pipeline without going through without
* going through the HTTP layer. Note that this means that any handling you do
* GraphQL operation via the request pipeline without going through the HTTP layer.
* Note that this means that any handling you do
* in your server at the HTTP level will not affect this call!

@@ -974,0 +974,0 @@ *

@@ -60,3 +60,3 @@ import type { ImplicitlyInstallablePlugin } from '../../../ApolloServer';

const getEmbeddedExplorerHTML = (
export const getEmbeddedExplorerHTML = (
version: string,

@@ -128,3 +128,6 @@ config: ApolloServerPluginEmbeddedLandingPageProductionDefaultOptions,

const getEmbeddedSandboxHTML = (version: string, config: LandingPageConfig) => {
export const getEmbeddedSandboxHTML = (
version: string,
config: LandingPageConfig,
) => {
return `

@@ -147,2 +150,7 @@ <style>

includeCookies: ${config.includeCookies ?? 'false'},
initialState: ${getConfigStringForHtml({
document: config.document ?? undefined,
variables: config.variables ?? undefined,
headers: config.headers ?? undefined,
})},
});

@@ -149,0 +157,0 @@ </script>

@@ -24,3 +24,3 @@ export interface ApolloServerPluginLandingPageDefaultBaseOptions {

*/
variables?: Record<string, string>;
variables?: Record<string, any>;
/**

@@ -27,0 +27,0 @@ * Users can configure their landing page to link to Studio Explorer with

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc