Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

apollo-server-hapi

Package Overview
Dependencies
Maintainers
1
Versions
305
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apollo-server-hapi - npm Package Compare versions

Comparing version 3.5.0 to 3.6.0-alpha.0

11

dist/ApolloServer.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc