From 917d4764655470517685f77e252436b02f99d964 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 1 Feb 2023 08:33:21 -0800 Subject: [PATCH] chore(deps): update dependency serve-placeholder to v2 (2.x-dev) (#18674) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Daniel Roe --- packages/server/package.json | 2 +- packages/server/src/server.js | 2 +- packages/server/test/server.test.js | 2 +- yarn.lock | 10 +++++----- 4 files changed, 8 insertions(+), 8 deletions(-) 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"