Comparing version 8.1.0 to 9.0.0
'use strict'; | ||
const Hapi = require('hapi'); | ||
const Hapi = require('@hapi/hapi'); | ||
const Graphi = require('.'); | ||
@@ -31,13 +31,9 @@ | ||
internals.init = async () => { | ||
try { | ||
const server = new Hapi.Server({ port: 8000 }); | ||
const server = new Hapi.Server({ port: 8000 }); | ||
await server.register({ plugin: Graphi, options: { schema, resolvers } }); | ||
await server.register({ plugin: Graphi, options: { schema, resolvers } }); | ||
await server.start(); | ||
await server.start(); | ||
return server; | ||
} catch (err) { | ||
throw err; | ||
} | ||
return server; | ||
}; | ||
@@ -44,0 +40,0 @@ |
'use strict'; | ||
const Boom = require('boom'); | ||
const Boom = require('@hapi/boom'); | ||
const Graphql = require('graphql'); | ||
@@ -115,3 +115,3 @@ const Graphiql = require('apollo-server-module-graphiql'); | ||
return new Boom(res.result.message, { | ||
return new Boom.Boom(res.result.message, { | ||
statusCode: res.statusCode, | ||
@@ -118,0 +118,0 @@ data: { |
{ | ||
"name": "graphi", | ||
"version": "8.1.0", | ||
"version": "9.0.0", | ||
"description": "hapi graphql plugin", | ||
@@ -28,16 +28,16 @@ "main": "lib", | ||
"devDependencies": { | ||
"belly-button": "5.x.x", | ||
"cb-barrier": "1.0.x", | ||
"code": "5.x.x", | ||
"hapi": "18.x.x", | ||
"belly-button": "6.x.x", | ||
"cb-barrier": "1.x.x", | ||
"@hapi/code": "8.x.x", | ||
"@hapi/hapi": "19.x.x", | ||
"hapi-auth-bearer-token": "6.x.x", | ||
"lab": "18.x.x", | ||
"nes": "10.0.x", | ||
"opentracing": "0.14.3", | ||
"traci": "1.4.0", | ||
"wreck": "14.x.x" | ||
"@hapi/lab": "22.x.x", | ||
"@hapi/nes": "11.x.x", | ||
"opentracing": "0.14.x", | ||
"traci": "2.x.x", | ||
"@hapi/wreck": "17.x.x" | ||
}, | ||
"dependencies": { | ||
"boom": "7.x.x", | ||
"graphql": "14.1.x", | ||
"@hapi/boom": "9.x.x", | ||
"graphql": "14.5.x", | ||
"apollo-server-module-graphiql": "1.4.x", | ||
@@ -44,0 +44,0 @@ "lodash.merge": "4.6.x" |
'use strict'; | ||
const Barrier = require('cb-barrier'); | ||
const Code = require('code'); | ||
const Code = require('@hapi/code'); | ||
const GraphQL = require('graphql'); | ||
const Hapi = require('hapi'); | ||
const Hapi = require('@hapi/hapi'); | ||
const HapiAuthBearerToken = require('hapi-auth-bearer-token'); | ||
const Lab = require('lab'); | ||
const Nes = require('nes'); | ||
const Lab = require('@hapi/lab'); | ||
const Nes = require('@hapi/nes'); | ||
const { MockTracer } = require('opentracing'); | ||
const Traci = require('traci'); | ||
const Wreck = require('wreck'); | ||
const Wreck = require('@hapi/wreck'); | ||
const Graphi = require('../'); | ||
@@ -18,5 +18,3 @@ | ||
const lab = exports.lab = Lab.script(); | ||
const describe = lab.describe; | ||
const it = lab.it; | ||
const { describe, it } = exports.lab = Lab.script(); | ||
const expect = Code.expect; | ||
@@ -1355,3 +1353,3 @@ | ||
const res = await server.inject({ method: 'OPTIONS', url: '/graphql' }); | ||
expect(res.statusCode).to.equal(200); | ||
expect(res.statusCode).to.equal(204); | ||
}); | ||
@@ -1358,0 +1356,0 @@ |
'use strict'; | ||
const Code = require('code'); | ||
const Code = require('@hapi/code'); | ||
const GraphQL = require('graphql'); | ||
const Hapi = require('hapi'); | ||
const Lab = require('lab'); | ||
const Hapi = require('@hapi/hapi'); | ||
const Lab = require('@hapi/lab'); | ||
const Graphi = require('../'); | ||
@@ -13,5 +13,3 @@ const Utils = require('../lib/utils'); | ||
const lab = exports.lab = Lab.script(); | ||
const describe = lab.describe; | ||
const it = lab.it; | ||
const { describe, it } = exports.lab = Lab.script(); | ||
const expect = Code.expect; | ||
@@ -18,0 +16,0 @@ |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
90393
1882
1
+ Added@hapi/boom@9.x.x
+ Added@hapi/boom@9.1.4(transitive)
+ Added@hapi/hoek@9.3.0(transitive)
+ Addedgraphql@14.5.8(transitive)
- Removedboom@7.x.x
- Removedboom@7.3.0(transitive)
- Removedgraphql@14.1.1(transitive)
- Removedhoek@6.1.3(transitive)
Updatedgraphql@14.5.x