Skip to content

Commit

Permalink
Fix hapi dependencies to use new scoped @Hapi packages (#77)
Browse files Browse the repository at this point in the history
* Fix hapi dependencies to use new scoped @Hapi packages

* remove unintentional adding of package.json script for standard

* Restore old formatting
  • Loading branch information
Andreas Zeuch authored and mcollina committed May 11, 2019
1 parent e5530ee commit fbb8367
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion benchmarks/hapi-pino-extreme.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require('make-promises-safe')

const Hapi = require('hapi')
const Hapi = require('@hapi/hapi')

async function start () {
const server = Hapi.server({ port: 3000 })
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/hapi-pino-merge-hapi-log.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require('make-promises-safe')

const Hapi = require('hapi')
const Hapi = require('@hapi/hapi')

async function start () {
const server = Hapi.server({ port: 3000 })
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/hapi-pino-no-merge-hapi-log.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require('make-promises-safe')

const Hapi = require('hapi')
const Hapi = require('@hapi/hapi')

async function start () {
const server = Hapi.server({ port: 3000 })
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/hapi-pino.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require('make-promises-safe')

const Hapi = require('hapi')
const Hapi = require('@hapi/hapi')

async function start () {
const server = Hapi.server({ port: 3000 })
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/hapi-pure.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require('make-promises-safe')

const Hapi = require('hapi')
const Hapi = require('@hapi/hapi')

async function start () {
const server = Hapi.server({ port: 3000 })
Expand Down
2 changes: 1 addition & 1 deletion example.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require('make-promises-safe')

const Hapi = require('hapi')
const Hapi = require('@hapi/hapi')

async function start () {
// Create a server with a host and port
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const Hoek = require('hoek')
const Hoek = require('@hapi/hoek')
const pino = require('pino')
const { stdSerializers } = pino
const { serializersSym } = pino.symbols
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@
],
"license": "MIT",
"devDependencies": {
"code": "^5.2.4",
"@hapi/code": "^5.3.0",
"coveralls": "^3.0.2",
"flush-write-stream": "^1.0.3",
"hapi": "^18.0.0",
"lab": "^18.0.0",
"@hapi/hapi": "^18.2.0",
"@hapi/lab": "^18.1.0",
"make-promises-safe": "^4.0.0",
"pre-commit": "^1.1.2",
"split2": "^3.0.0",
"standard": "^12.0.0"
},
"dependencies": {
"abstract-logging": "^1.0.0",
"hoek": "^6.1.2",
"@hapi/hoek": "^6.2.0",
"pino": "^5.12.3",
"pino-pretty": "^2.5.0"
},
Expand Down
8 changes: 4 additions & 4 deletions test.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict'

const Code = require('code')
const Lab = require('lab')
const Hoek = require('hoek')
const Code = require('@hapi/code')
const Lab = require('@hapi/lab')
const Hoek = require('@hapi/hoek')
const split = require('split2')
const writeStream = require('flush-write-stream')
const promisify = require('util').promisify
Expand All @@ -17,7 +17,7 @@ const after = lab.after
const afterEach = lab.afterEach
const expect = Code.expect

const Hapi = require('hapi')
const Hapi = require('@hapi/hapi')
const Pino = require('.')

function getServer () {
Expand Down

0 comments on commit fbb8367

Please sign in to comment.