diff --git a/packages/server/package.json b/packages/server/package.json index 0dcde18db8..a916a7d893 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -21,7 +21,7 @@ "launch-editor-middleware": "^2.6.0", "on-headers": "^1.0.2", "pify": "^5.0.0", - "serve-placeholder": "^1.2.4", + "serve-placeholder": "^2.0.1", "serve-static": "^1.15.0", "server-destroy": "^1.0.1", "ufo": "^1.0.1" diff --git a/packages/server/src/server.js b/packages/server/src/server.js index 40ff8ab0f4..9ea08ecc9c 100644 --- a/packages/server/src/server.js +++ b/packages/server/src/server.js @@ -2,7 +2,7 @@ import path from 'path' import consola from 'consola' import launchMiddleware from 'launch-editor-middleware' import serveStatic from 'serve-static' -import servePlaceholder from 'serve-placeholder' +import { servePlaceholder } from 'serve-placeholder' import connect from 'connect' import compression from 'compression' import { determineGlobals, isUrl, urlJoin } from '@nuxt/utils' diff --git a/packages/server/test/server.test.js b/packages/server/test/server.test.js index 86c672c7c5..59d0618d67 100644 --- a/packages/server/test/server.test.js +++ b/packages/server/test/server.test.js @@ -3,7 +3,7 @@ import compression from 'compression' import connect from 'connect' import consola from 'consola' import serveStatic from 'serve-static' -import servePlaceholder from 'serve-placeholder' +import { servePlaceholder } from 'serve-placeholder' import launchMiddleware from 'launch-editor-middleware' import { determineGlobals, isUrl } from '@nuxt/utils' import { VueRenderer } from '@nuxt/vue-renderer' diff --git a/yarn.lock b/yarn.lock index c634990c96..89e7b51b36 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12847,12 +12847,12 @@ serialize-javascript@^6.0.0, serialize-javascript@^6.0.1: dependencies: randombytes "^2.1.0" -serve-placeholder@^1.2.4: - version "1.2.4" - resolved "https://registry.npmjs.org/serve-placeholder/-/serve-placeholder-1.2.4.tgz#513eac9c435272c7fe9a86612c852ae9b1467fd4" - integrity sha512-jWD9cZXLcr4vHTTL5KEPIUBUYyOWN/z6v/tn0l6XxFhi9iqV3Fc5Y1aFeduUyz+cx8sALzGCUczkPfeOlrq9jg== +serve-placeholder@^2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/serve-placeholder/-/serve-placeholder-2.0.1.tgz#dfa741812f49dfea472a68c4f292dbc40d28389a" + integrity sha512-rUzLlXk4uPFnbEaIz3SW8VISTxMuONas88nYWjAWaM2W9VDbt9tyFOr3lq8RhVOFrT3XISoBw8vni5una8qMnQ== dependencies: - defu "^5.0.0" + defu "^6.0.0" serve-static@1.15.0, serve-static@^1.14.1, serve-static@^1.15.0: version "1.15.0"