@apollo/server
Advanced tools
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.packageVersion = void 0; | ||
exports.packageVersion = "4.2.1"; | ||
exports.packageVersion = "4.2.2"; | ||
//# sourceMappingURL=packageVersion.js.map |
@@ -92,2 +92,3 @@ "use strict"; | ||
if ('extensions' in httpRequest.body && | ||
httpRequest.body.extensions !== null && | ||
!isStringRecord(httpRequest.body.extensions)) { | ||
@@ -97,2 +98,3 @@ throw new internalErrorClasses_js_1.BadRequestError('`extensions` in a POST body must be an object if provided.'); | ||
if ('variables' in httpRequest.body && | ||
httpRequest.body.variables !== null && | ||
!isStringRecord(httpRequest.body.variables)) { | ||
@@ -102,2 +104,3 @@ throw new internalErrorClasses_js_1.BadRequestError('`variables` in a POST body must be an object if provided.'); | ||
if ('operationName' in httpRequest.body && | ||
httpRequest.body.operationName !== null && | ||
typeof httpRequest.body.operationName !== 'string') { | ||
@@ -104,0 +107,0 @@ throw new internalErrorClasses_js_1.BadRequestError('`operationName` in a POST body must be a string if provided.'); |
@@ -1,2 +0,2 @@ | ||
export declare const packageVersion = "4.2.1"; | ||
export declare const packageVersion = "4.2.2"; | ||
//# sourceMappingURL=packageVersion.d.ts.map |
@@ -1,2 +0,2 @@ | ||
export const packageVersion = "4.2.1"; | ||
export const packageVersion = "4.2.2"; | ||
//# sourceMappingURL=packageVersion.js.map |
@@ -86,2 +86,3 @@ import { chooseContentTypeForSingleResultResponse, internalExecuteOperation, MEDIA_TYPES, } from './ApolloServer.js'; | ||
if ('extensions' in httpRequest.body && | ||
httpRequest.body.extensions !== null && | ||
!isStringRecord(httpRequest.body.extensions)) { | ||
@@ -91,2 +92,3 @@ throw new BadRequestError('`extensions` in a POST body must be an object if provided.'); | ||
if ('variables' in httpRequest.body && | ||
httpRequest.body.variables !== null && | ||
!isStringRecord(httpRequest.body.variables)) { | ||
@@ -96,2 +98,3 @@ throw new BadRequestError('`variables` in a POST body must be an object if provided.'); | ||
if ('operationName' in httpRequest.body && | ||
httpRequest.body.operationName !== null && | ||
typeof httpRequest.body.operationName !== 'string') { | ||
@@ -98,0 +101,0 @@ throw new BadRequestError('`operationName` in a POST body must be a string if provided.'); |
{ | ||
"name": "@apollo/server", | ||
"version": "4.2.1", | ||
"version": "4.2.2", | ||
"description": "Core engine for Apollo GraphQL server", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -1,1 +0,1 @@ | ||
export const packageVersion = "4.2.1"; | ||
export const packageVersion = "4.2.2"; |
@@ -158,2 +158,3 @@ import type { | ||
'extensions' in httpRequest.body && | ||
httpRequest.body.extensions !== null && | ||
!isStringRecord(httpRequest.body.extensions) | ||
@@ -168,2 +169,3 @@ ) { | ||
'variables' in httpRequest.body && | ||
httpRequest.body.variables !== null && | ||
!isStringRecord(httpRequest.body.variables) | ||
@@ -178,2 +180,3 @@ ) { | ||
'operationName' in httpRequest.body && | ||
httpRequest.body.operationName !== null && | ||
typeof httpRequest.body.operationName !== 'string' | ||
@@ -180,0 +183,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
1352232
0.05%23794
0.04%