apollo-server-hapi
Advanced tools
Comparing version 3.5.0 to 3.6.0-alpha.0
@@ -8,5 +8,6 @@ "use strict"; | ||
const accept_1 = require("@hapi/accept"); | ||
const apollo_server_core_1 = require("apollo-server-core"); | ||
var apollo_server_core_1 = require("apollo-server-core"); | ||
const apollo_server_core_2 = require("apollo-server-core"); | ||
const boom_1 = __importDefault(require("@hapi/boom")); | ||
class ApolloServer extends apollo_server_core_1.ApolloServerBase { | ||
class ApolloServer extends apollo_server_core_2.ApolloServerBase { | ||
async createGraphQLServerOptions(request, h) { | ||
@@ -72,3 +73,3 @@ return super.graphQLServerOptions({ request, h }); | ||
try { | ||
const { graphqlResponse, responseInit } = await (0, apollo_server_core_1.runHttpQuery)([request, h], { | ||
const { graphqlResponse, responseInit } = await (0, apollo_server_core_2.runHttpQuery)([request, h], { | ||
method: request.method.toUpperCase(), | ||
@@ -80,3 +81,3 @@ options: () => this.createGraphQLServerOptions(request, h), | ||
: request.query, | ||
request: (0, apollo_server_core_1.convertNodeHttpToRequest)(request.raw.req), | ||
request: (0, apollo_server_core_2.convertNodeHttpToRequest)(request.raw.req), | ||
}); | ||
@@ -91,3 +92,3 @@ const response = h.response(graphqlResponse); | ||
catch (error) { | ||
if (!(0, apollo_server_core_1.isHttpQueryError)(error)) { | ||
if (!(0, apollo_server_core_2.isHttpQueryError)(error)) { | ||
throw boom_1.default.boomify(error); | ||
@@ -94,0 +95,0 @@ } |
{ | ||
"name": "apollo-server-hapi", | ||
"version": "3.5.0", | ||
"version": "3.6.0-alpha.0", | ||
"description": "Production-ready Node.js GraphQL server for Hapi", | ||
@@ -31,7 +31,7 @@ "main": "dist/index.js", | ||
"@hapi/boom": "^9.1.2", | ||
"apollo-server-core": "^3.5.0", | ||
"apollo-server-types": "^3.4.0" | ||
"apollo-server-core": "^3.6.0-alpha.0", | ||
"apollo-server-types": "^3.5.0-alpha.0" | ||
}, | ||
"devDependencies": { | ||
"apollo-server-integration-testsuite": "^3.5.0" | ||
"apollo-server-integration-testsuite": "^3.6.0-alpha.0" | ||
}, | ||
@@ -42,3 +42,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "e6c3cbbf820b3ffff1e7e98d41b3bfc08f99b9b0" | ||
"gitHead": "2c352a9e0c5a48b8cfec145bec52cad2f0a73fa4" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25199
353
1