提交 2259a7ec 编写于 作者: E Eduardo P. Rivero 提交者: Tim Neutkens

Updating hapijs package name (#7664)

* Updating hapijs package name

Hapi was moved to a new module under the name @hapijs/hapi.

Right now installing just as hapi is giving you this warning:

```bash
npm WARN deprecated hapi@18.1.0: This module has moved and is now available at @hapi/hapi. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
```
This change does not affect the integration with next and it continues to work great.

* Update package.json
上级 bf04031f
......@@ -7,7 +7,7 @@
"start": "NODE_ENV=production node server.js"
},
"dependencies": {
"hapi": "^18.1.0",
"@hapi/hapi": "^18.3.1",
"next": "latest",
"react": "^16.7.0",
"react-dom": "^16.7.0"
......
const next = require('next')
const Hapi = require('hapi')
const Hapi = require('@hapi/hapi')
const {
pathWrapper,
defaultHandlerWrapper,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册