Skip to content

Commit

Permalink
Remove unused @hapi/inert module
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Jan 12, 2020
1 parent c2ac291 commit 80bf2a5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 18 deletions.
20 changes: 5 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Expand Up @@ -146,7 +146,6 @@
"@hapi/boom": "^7.4.11",
"@hapi/h2o2": "^8.3.2",
"@hapi/hapi": "^18.4.0",
"@hapi/inert": "^5.2.2",
"boxen": "^4.2.0",
"chalk": "^3.0.0",
"cuid": "^2.1.8",
Expand Down
3 changes: 1 addition & 2 deletions src/events/http/HttpServer.js
Expand Up @@ -3,7 +3,6 @@ import { readFileSync } from 'fs'
import { join, resolve } from 'path'
import h2o2 from '@hapi/h2o2'
import { Server } from '@hapi/hapi'
import inert from '@hapi/inert'
import authFunctionNameExtractor from './authFunctionNameExtractor.js'
import createAuthScheme from './createAuthScheme.js'
import Endpoint from './Endpoint.js'
Expand Down Expand Up @@ -154,7 +153,7 @@ export default class HttpServer {

async registerPlugins() {
try {
await this.#server.register([h2o2, inert])
await this.#server.register([h2o2])
} catch (err) {
serverlessLog(err)
}
Expand Down

0 comments on commit 80bf2a5

Please sign in to comment.