diff --git a/package-lock.json b/package-lock.json index 5b3fd82f9..ce312c673 100644 --- a/package-lock.json +++ b/package-lock.json @@ -676,19 +676,6 @@ "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-8.5.0.tgz", "integrity": "sha512-7XYT10CZfPsH7j9F1Jmg1+d0ezOux2oM2GfArAzLwWe4mE2Dr3hVjsAL6+TFY49RRJlCdJDMw3nJsLFroTc8Kw==" }, - "@hapi/inert": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/@hapi/inert/-/inert-5.2.2.tgz", - "integrity": "sha512-8IaGfAEF8SwZtpdaTq0G3aDPG35ZTfWKjnMNniG2N3kE+qioMsBuImIGxna8TNQ+sYMXYK78aqmvzbQHno8qSQ==", - "requires": { - "@hapi/ammo": "3.x.x", - "@hapi/boom": "7.x.x", - "@hapi/bounce": "1.x.x", - "@hapi/hoek": "8.x.x", - "@hapi/joi": "16.x.x", - "lru-cache": "4.1.x" - } - }, "@hapi/iron": { "version": "5.1.4", "resolved": "https://registry.npmjs.org/@hapi/iron/-/iron-5.1.4.tgz", @@ -8526,6 +8513,7 @@ "version": "4.1.5", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz", "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==", + "dev": true, "requires": { "pseudomap": "^1.0.2", "yallist": "^2.1.2" @@ -9611,7 +9599,8 @@ "pseudomap": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", - "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=" + "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=", + "dev": true }, "psl": { "version": "1.7.0", @@ -12567,7 +12556,8 @@ "yallist": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", - "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=" + "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=", + "dev": true }, "yaml": { "version": "1.7.2", diff --git a/package.json b/package.json index 11955fc12..f57452f4d 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/events/http/HttpServer.js b/src/events/http/HttpServer.js index 0001f7dfe..20bf454c1 100644 --- a/src/events/http/HttpServer.js +++ b/src/events/http/HttpServer.js @@ -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' @@ -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) }