diff --git a/packages/vite/LICENSE.md b/packages/vite/LICENSE.md index 7ef2c0cd106f69..346c32951f32c7 100644 --- a/packages/vite/LICENSE.md +++ b/packages/vite/LICENSE.md @@ -401,23 +401,6 @@ Repository: rollup/plugins --------------------------------------- -## ansi-regex, bundle-name, default-browser, default-browser-id, define-lazy-prop, is-docker, is-inside-container, is-wsl, open, run-applescript, strip-ansi -License: MIT -By: Sindre Sorhus -Repositories: chalk/ansi-regex, sindresorhus/bundle-name, sindresorhus/default-browser, sindresorhus/default-browser-id, sindresorhus/define-lazy-prop, sindresorhus/is-docker, sindresorhus/is-inside-container, sindresorhus/is-wsl, sindresorhus/open, sindresorhus/run-applescript, chalk/strip-ansi - -> MIT License -> -> Copyright (c) Sindre Sorhus (https://sindresorhus.com) -> -> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ---------------------------------------- - ## artichokie License: MIT By: sapphi-red, Evan You @@ -448,6 +431,23 @@ Repository: git+https://github.com/sapphi-red/artichokie.git --------------------------------------- +## bundle-name, default-browser, default-browser-id, define-lazy-prop, is-docker, is-inside-container, is-wsl, open, run-applescript +License: MIT +By: Sindre Sorhus +Repositories: sindresorhus/bundle-name, sindresorhus/default-browser, sindresorhus/default-browser-id, sindresorhus/define-lazy-prop, sindresorhus/is-docker, sindresorhus/is-inside-container, sindresorhus/is-wsl, sindresorhus/open, sindresorhus/run-applescript + +> MIT License +> +> Copyright (c) Sindre Sorhus (https://sindresorhus.com) +> +> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +> +> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +> +> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +--------------------------------------- + ## cac License: MIT By: egoist diff --git a/packages/vite/package.json b/packages/vite/package.json index f96614bdc0194b..7afaaeffbbab28 100644 --- a/packages/vite/package.json +++ b/packages/vite/package.json @@ -142,7 +142,6 @@ "sass-embedded": "^1.80.6", "sirv": "^3.0.0", "source-map-support": "^0.5.21", - "strip-ansi": "^7.1.0", "strip-literal": "^2.1.0", "tinyglobby": "^0.2.10", "tsconfck": "^3.1.4", diff --git a/packages/vite/src/node/server/middlewares/error.ts b/packages/vite/src/node/server/middlewares/error.ts index 2ef608ce8b8670..8b9487d36b4b1b 100644 --- a/packages/vite/src/node/server/middlewares/error.ts +++ b/packages/vite/src/node/server/middlewares/error.ts @@ -1,8 +1,8 @@ import path from 'node:path' +import { stripVTControlCharacters as strip } from 'node:util' import colors from 'picocolors' import type { RollupError } from 'rollup' import type { Connect } from 'dep-types/connect' -import strip from 'strip-ansi' import type { ErrorPayload } from 'types/hmrPayload' import { pad } from '../../utils' import type { ViteDevServer } from '../..' diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c0a285792f54f3..d7b4f5e5ebe245 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -383,9 +383,6 @@ importers: source-map-support: specifier: ^0.5.21 version: 0.5.21 - strip-ansi: - specifier: ^7.1.0 - version: 7.1.0 strip-literal: specifier: ^2.1.0 version: 2.1.0