New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

graphi

Package Overview
Dependencies
Maintainers
3
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphi - npm Package Compare versions

Comparing version 8.1.0 to 9.0.0

14

example.js
'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

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