Skip to content

Commit

Permalink
Merge pull request #305 from jaulz/patch-1
Browse files Browse the repository at this point in the history
fix: update dependencies to @Hapi
  • Loading branch information
nelsonic committed May 6, 2019
2 parents 61e8c9c + e7c75f4 commit 4e0d1c4
Show file tree
Hide file tree
Showing 20 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -46,7 +46,7 @@ This basic usage example should help you get started:


```javascript
const Hapi = require('hapi');
const Hapi = require('@hapi/hapi');

const people = { // our "users database"
1: {
Expand Down
2 changes: 1 addition & 1 deletion example/server.js
@@ -1,4 +1,4 @@
const Hapi = require('hapi');
const Hapi = require('@hapi/hapi');
const hapiAuthJWT = require('../lib/');
const JWT = require('jsonwebtoken'); // used to sign our content
const port = process.env.PORT || 8000; // allow port to be set
Expand Down
2 changes: 1 addition & 1 deletion example/simple_server.js
@@ -1,4 +1,4 @@
const Hapi = require('hapi');
const Hapi = require('@hapi/hapi');

const people = { // our "users database"
1: {
Expand Down
2 changes: 1 addition & 1 deletion lib/index.js
@@ -1,6 +1,6 @@
'use strict';

const Boom = require('boom'); // error handling https://github.com/hapijs/boom
const Boom = require('@hapi/boom'); // error handling https://github.com/hapijs/boom
const assert = require('assert'); // use assert to check if options are set
const JWT = require('jsonwebtoken'); // https://github.com/docdis/learn-json-web-tokens
const extract = require('./extract'); // extract token from Auth Header, URL or Coookie
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -47,15 +47,15 @@
},
"homepage": "https://github.com/dwyl/hapi-auth-jwt2",
"dependencies": {
"boom": "^7.1.1",
"@hapi/boom": "^7.4.2",
"cookie": "^0.3.1",
"jsonwebtoken": "^8.1.0"
},
"devDependencies": {
"aguid": "^2.0.0",
"eslint": "^5.9.0",
"eslint-plugin-prettier": "^3.0.0",
"hapi": "^18.0.0",
"@hapi/hapi": "^18.0.0",
"nyc": "^13.1.0",
"pre-commit": "^1.2.2",
"prettier": "^1.15.2",
Expand Down
2 changes: 1 addition & 1 deletion test/basic_server.js
@@ -1,4 +1,4 @@
const Hapi = require('hapi');
const Hapi = require('@hapi/hapi');
const secret = 'NeverShareYourSecret';

// for debug options see: http://hapijs.com/tutorials/logging
Expand Down
2 changes: 1 addition & 1 deletion test/complete_token.test.js
@@ -1,5 +1,5 @@
const test = require('tape');
const Hapi = require('hapi');
const Hapi = require('@hapi/hapi');
const JWT = require('jsonwebtoken');
const secret = 'NeverShareYourSecret';

Expand Down
2 changes: 1 addition & 1 deletion test/custom_parameters_server.js
@@ -1,4 +1,4 @@
const Hapi = require('hapi');
const Hapi = require('@hapi/hapi');
const secret = 'NeverShareYourSecret';

// for debug options see: http://hapijs.com/tutorials/logging
Expand Down
2 changes: 1 addition & 1 deletion test/dynamic_header_key.test.js
@@ -1,5 +1,5 @@
const test = require('tape');
const Hapi = require('hapi');
const Hapi = require('@hapi/hapi');
const JWT = require('jsonwebtoken');
const secret = 'NeverShareYourSecret';

Expand Down
4 changes: 2 additions & 2 deletions test/dynamic_key_server.js
@@ -1,5 +1,5 @@
const Hapi = require('hapi');
const Boom = require('boom');
const Hapi = require('@hapi/hapi');
const Boom = require('@hapi/boom');

// for debug options see: http://hapijs.com/tutorials/logging
const server = new Hapi.Server({ debug: false });
Expand Down
2 changes: 1 addition & 1 deletion test/error_func_server.js
@@ -1,4 +1,4 @@
const Hapi = require('hapi');
const Hapi = require('@hapi/hapi');
const secret = 'NeverShareYourSecret';

// for debug options see: http://hapijs.com/tutorials/logging
Expand Down
4 changes: 2 additions & 2 deletions test/multiple_key_server.js
@@ -1,5 +1,5 @@
const Hapi = require('hapi');
const Boom = require('boom');
const Hapi = require('@hapi/hapi');
const Boom = require('@hapi/boom');

// for debug options see: http://hapijs.com/tutorials/logging
const server = new Hapi.Server({ debug: false });
Expand Down
4 changes: 2 additions & 2 deletions test/options_payload_validation.js
@@ -1,6 +1,6 @@
var test = require('tape');
var Hapi = require('hapi');
var Boom = require('boom');
var Hapi = require('@hapi/hapi');
var Boom = require('@hapi/boom');
var JWT = require('jsonwebtoken');

var secret = 'NeverShareYourSecret';
Expand Down
4 changes: 2 additions & 2 deletions test/scheme-payload-server.js
@@ -1,6 +1,6 @@
const Hapi = require('hapi');
const Hapi = require('@hapi/hapi');
const secret = 'NeverShareYourSecret';
const Boom = require('boom');
const Boom = require('@hapi/boom');

// for debug options see: http://hapijs.com/tutorials/logging
const server = new Hapi.Server({ debug: false });
Expand Down
2 changes: 1 addition & 1 deletion test/scheme-payload.test.js
@@ -1,7 +1,7 @@
const test = require('tape');
const JWT = require('jsonwebtoken');
const secret = 'NeverShareYourSecret';
const Boom = require('boom');
const Boom = require('@hapi/boom');

const server = require('./scheme-payload-server');

Expand Down
2 changes: 1 addition & 1 deletion test/scheme-response-server.js
@@ -1,4 +1,4 @@
const Hapi = require('hapi');
const Hapi = require('@hapi/hapi');
const secret = 'NeverShareYourSecret';

// for debug options see: http://hapijs.com/tutorials/logging
Expand Down
2 changes: 1 addition & 1 deletion test/scopes_server.js
@@ -1,4 +1,4 @@
const Hapi = require('hapi');
const Hapi = require('@hapi/hapi');
const secret = 'NeverShareYourSecret';

// for debug options see: http://hapijs.com/tutorials/logging
Expand Down
2 changes: 1 addition & 1 deletion test/try_and_optional_auth_mode.test.js
@@ -1,5 +1,5 @@
const test = require('tape');
const Hapi = require('hapi');
const Hapi = require('@hapi/hapi');
const JWT = require('jsonwebtoken');
const secret = 'NeverShareYourSecret';

Expand Down
2 changes: 1 addition & 1 deletion test/validate_func.test.js
@@ -1,5 +1,5 @@
const test = require('tape');
const Hapi = require('hapi');
const Hapi = require('@hapi/hapi');
const JWT = require('jsonwebtoken');
const secret = 'NeverShareYourSecret';

Expand Down
2 changes: 1 addition & 1 deletion test/verify_func_server.js
@@ -1,4 +1,4 @@
const Hapi = require('hapi');
const Hapi = require('@hapi/hapi');
const secret = 'NeverShareYourSecret';

// for debug options see: http://hapijs.com/tutorials/logging
Expand Down

0 comments on commit 4e0d1c4

Please sign in to comment.