Skip to content

Commit 5cca4bf

Browse files
niklasmhsapphi-red
andauthored
fix(deps): update open dependency to 10.1.0 (#18349)
Co-authored-by: null <null> Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com>
1 parent e9c9767 commit 5cca4bf

5 files changed

Lines changed: 151 additions & 30 deletions

File tree

packages/vite/LICENSE.md

Lines changed: 87 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,23 @@ Repository: micromatch/braces
730730
731731
---------------------------------------
732732

733+
## bundle-name
734+
License: MIT
735+
By: Sindre Sorhus
736+
Repository: sindresorhus/bundle-name
737+
738+
> MIT License
739+
>
740+
> Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
741+
>
742+
> 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:
743+
>
744+
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
745+
>
746+
> 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.
747+
748+
---------------------------------------
749+
733750
## cac
734751
License: MIT
735752
By: egoist
@@ -998,14 +1015,48 @@ Repository: git://github.com/debug-js/debug.git
9981015
9991016
---------------------------------------
10001017

1018+
## default-browser
1019+
License: MIT
1020+
By: Sindre Sorhus
1021+
Repository: sindresorhus/default-browser
1022+
1023+
> MIT License
1024+
>
1025+
> Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
1026+
>
1027+
> 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:
1028+
>
1029+
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
1030+
>
1031+
> 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.
1032+
1033+
---------------------------------------
1034+
1035+
## default-browser-id
1036+
License: MIT
1037+
By: Sindre Sorhus
1038+
Repository: sindresorhus/default-browser-id
1039+
1040+
> MIT License
1041+
>
1042+
> Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
1043+
>
1044+
> 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:
1045+
>
1046+
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
1047+
>
1048+
> 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.
1049+
1050+
---------------------------------------
1051+
10011052
## define-lazy-prop
10021053
License: MIT
10031054
By: Sindre Sorhus
10041055
Repository: sindresorhus/define-lazy-prop
10051056

10061057
> MIT License
10071058
>
1008-
> Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
1059+
> Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
10091060
>
10101061
> 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:
10111062
>
@@ -1615,6 +1666,23 @@ Repository: micromatch/is-glob
16151666
16161667
---------------------------------------
16171668

1669+
## is-inside-container
1670+
License: MIT
1671+
By: Sindre Sorhus
1672+
Repository: sindresorhus/is-inside-container
1673+
1674+
> MIT License
1675+
>
1676+
> Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
1677+
>
1678+
> 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:
1679+
>
1680+
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
1681+
>
1682+
> 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.
1683+
1684+
---------------------------------------
1685+
16181686
## is-number
16191687
License: MIT
16201688
By: Jon Schlinkert, Olsten Larck, Rouven Weßling
@@ -1658,7 +1726,7 @@ Repository: sindresorhus/is-wsl
16581726

16591727
> MIT License
16601728
>
1661-
> Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
1729+
> Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
16621730
>
16631731
> 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:
16641732
>
@@ -2710,6 +2778,23 @@ Repository: git+https://github.com/mcollina/reusify.git
27102778
27112779
---------------------------------------
27122780

2781+
## run-applescript
2782+
License: MIT
2783+
By: Sindre Sorhus
2784+
Repository: sindresorhus/run-applescript
2785+
2786+
> MIT License
2787+
>
2788+
> Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
2789+
>
2790+
> 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:
2791+
>
2792+
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
2793+
>
2794+
> 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.
2795+
2796+
---------------------------------------
2797+
27132798
## run-parallel
27142799
License: MIT
27152800
By: Feross Aboukhadijeh

packages/vite/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
"mlly": "^1.7.2",
130130
"mrmime": "^2.0.0",
131131
"nanoid": "^5.0.7",
132-
"open": "^8.4.2",
132+
"open": "^10.1.0",
133133
"parse5": "^7.2.0",
134134
"pathe": "^1.1.2",
135135
"periscopic": "^4.0.2",

packages/vite/rollup.config.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -261,12 +261,8 @@ function shimDepsPlugin(deps: Record<string, ShimOptions>): Plugin {
261261
*/
262262
function cjsPatchPlugin(): Plugin {
263263
const cjsPatch = `
264-
import { fileURLToPath as __cjs_fileURLToPath } from 'node:url';
265-
import { dirname as __cjs_dirname } from 'node:path';
266264
import { createRequire as __cjs_createRequire } from 'node:module';
267265
268-
const __filename = __cjs_fileURLToPath(import.meta.url);
269-
const __dirname = __cjs_dirname(__filename);
270266
const require = __cjs_createRequire(import.meta.url);
271267
const __require = require;
272268
`.trimStart()

packages/vite/src/node/server/openBrowser.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { join } from 'node:path'
1212
import { exec } from 'node:child_process'
1313
import type { ExecOptions } from 'node:child_process'
1414
import open from 'open'
15+
import type { Options } from 'open'
1516
import spawn from 'cross-spawn'
1617
import colors from 'picocolors'
1718
import type { Logger } from '../logger'
@@ -120,7 +121,7 @@ async function startBrowserProcess(
120121
// Fallback to open
121122
// (It will always open new tab)
122123
try {
123-
const options: open.Options = browser
124+
const options: Options = browser
124125
? { app: { name: browser, arguments: browserArgs } }
125126
: {}
126127

pnpm-lock.yaml

Lines changed: 61 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)