diff --git a/package.json b/package.json index ec45dafb867be..321416e8cef0b 100644 --- a/package.json +++ b/package.json @@ -20206,7 +20206,7 @@ "css-loader": "7.1.2", "css-minimizer-webpack-plugin": "7.0.0", "cssnano-preset-advanced": "7.0.6", - "esbuild": "0.24.2", + "esbuild": "0.25.0", "esbuild-loader": "4.2.2", "esbuild-node-externals": "1.16.0", "esbuild-sass-plugin": "3.3.1", @@ -20246,7 +20246,7 @@ "webpack-require-from": "1.8.6" }, "resolutions": { - "esbuild": "0.24.2", + "esbuild": "0.25.0", "iconv-lite": "0.6.3", "node-fetch": "2.7.0", "semver-regex": "4.0.5" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1f3d0a30dc7ed..7253722b78c77 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5,7 +5,7 @@ settings: excludeLinksFromLockfile: false overrides: - esbuild: 0.24.2 + esbuild: 0.25.0 iconv-lite: 0.6.3 node-fetch: 2.7.0 semver-regex: 4.0.5 @@ -113,7 +113,7 @@ importers: devDependencies: '@eamodio/eslint-lite-webpack-plugin': specifier: 0.2.0 - version: 0.2.0(@swc/core@1.10.4)(esbuild@0.24.2)(eslint@9.19.0(jiti@2.4.0))(webpack-cli@6.0.1)(webpack@5.97.1) + version: 0.2.0(@swc/core@1.10.4)(esbuild@0.25.0)(eslint@9.19.0(jiti@2.4.0))(webpack-cli@6.0.1)(webpack@5.97.1) '@eslint/js': specifier: 9.19.0 version: 9.19.0 @@ -185,22 +185,22 @@ importers: version: 7.1.2(webpack@5.97.1) css-minimizer-webpack-plugin: specifier: 7.0.0 - version: 7.0.0(esbuild@0.24.2)(webpack@5.97.1) + version: 7.0.0(esbuild@0.25.0)(webpack@5.97.1) cssnano-preset-advanced: specifier: 7.0.6 version: 7.0.6(postcss@8.5.1) esbuild: - specifier: 0.24.2 - version: 0.24.2 + specifier: 0.25.0 + version: 0.25.0 esbuild-loader: specifier: 4.2.2 version: 4.2.2(webpack@5.97.1) esbuild-node-externals: specifier: 1.16.0 - version: 1.16.0(esbuild@0.24.2) + version: 1.16.0(esbuild@0.25.0) esbuild-sass-plugin: specifier: 3.3.1 - version: 3.3.1(esbuild@0.24.2)(sass-embedded@1.77.8) + version: 3.3.1(esbuild@0.25.0)(sass-embedded@1.77.8) eslint: specifier: 9.19.0 version: 9.19.0(jiti@2.4.0) @@ -278,7 +278,7 @@ importers: version: 3.3.2 terser-webpack-plugin: specifier: 5.3.11 - version: 5.3.11(@swc/core@1.10.4)(esbuild@0.24.2)(webpack@5.97.1) + version: 5.3.11(@swc/core@1.10.4)(esbuild@0.25.0)(webpack@5.97.1) ts-loader: specifier: 9.5.2 version: 9.5.2(typescript@5.7.3)(webpack@5.97.1) @@ -290,7 +290,7 @@ importers: version: 8.22.0(eslint@9.19.0(jiti@2.4.0))(typescript@5.7.3) webpack: specifier: 5.97.1 - version: 5.97.1(@swc/core@1.10.4)(esbuild@0.24.2)(webpack-cli@6.0.1) + version: 5.97.1(@swc/core@1.10.4)(esbuild@0.25.0)(webpack-cli@6.0.1) webpack-bundle-analyzer: specifier: 4.10.2 version: 4.10.2 @@ -410,152 +410,152 @@ packages: '@emnapi/wasi-threads@1.0.1': resolution: {integrity: sha512-iIBu7mwkq4UQGeMEM8bLwNK962nXdhodeScX4slfQnRhEMMzvYivHhutCIk8uojvmASXXPC2WNEjwxFWk72Oqw==} - '@esbuild/aix-ppc64@0.24.2': - resolution: {integrity: sha512-thpVCb/rhxE/BnMLQ7GReQLLN8q9qbHmI55F4489/ByVg2aQaQ6kbcLb6FHkocZzQhxc4gx0sCk0tJkKBFzDhA==} + '@esbuild/aix-ppc64@0.25.0': + resolution: {integrity: sha512-O7vun9Sf8DFjH2UtqK8Ku3LkquL9SZL8OLY1T5NZkA34+wG3OQF7cl4Ql8vdNzM6fzBbYfLaiRLIOZ+2FOCgBQ==} engines: {node: '>=18'} cpu: [ppc64] os: [aix] - '@esbuild/android-arm64@0.24.2': - resolution: {integrity: sha512-cNLgeqCqV8WxfcTIOeL4OAtSmL8JjcN6m09XIgro1Wi7cF4t/THaWEa7eL5CMoMBdjoHOTh/vwTO/o2TRXIyzg==} + '@esbuild/android-arm64@0.25.0': + resolution: {integrity: sha512-grvv8WncGjDSyUBjN9yHXNt+cq0snxXbDxy5pJtzMKGmmpPxeAmAhWxXI+01lU5rwZomDgD3kJwulEnhTRUd6g==} engines: {node: '>=18'} cpu: [arm64] os: [android] - '@esbuild/android-arm@0.24.2': - resolution: {integrity: sha512-tmwl4hJkCfNHwFB3nBa8z1Uy3ypZpxqxfTQOcHX+xRByyYgunVbZ9MzUUfb0RxaHIMnbHagwAxuTL+tnNM+1/Q==} + '@esbuild/android-arm@0.25.0': + resolution: {integrity: sha512-PTyWCYYiU0+1eJKmw21lWtC+d08JDZPQ5g+kFyxP0V+es6VPPSUhM6zk8iImp2jbV6GwjX4pap0JFbUQN65X1g==} engines: {node: '>=18'} cpu: [arm] os: [android] - '@esbuild/android-x64@0.24.2': - resolution: {integrity: sha512-B6Q0YQDqMx9D7rvIcsXfmJfvUYLoP722bgfBlO5cGvNVb5V/+Y7nhBE3mHV9OpxBf4eAS2S68KZztiPaWq4XYw==} + '@esbuild/android-x64@0.25.0': + resolution: {integrity: sha512-m/ix7SfKG5buCnxasr52+LI78SQ+wgdENi9CqyCXwjVR2X4Jkz+BpC3le3AoBPYTC9NHklwngVXvbJ9/Akhrfg==} engines: {node: '>=18'} cpu: [x64] os: [android] - '@esbuild/darwin-arm64@0.24.2': - resolution: {integrity: sha512-kj3AnYWc+CekmZnS5IPu9D+HWtUI49hbnyqk0FLEJDbzCIQt7hg7ucF1SQAilhtYpIujfaHr6O0UHlzzSPdOeA==} + '@esbuild/darwin-arm64@0.25.0': + resolution: {integrity: sha512-mVwdUb5SRkPayVadIOI78K7aAnPamoeFR2bT5nszFUZ9P8UpK4ratOdYbZZXYSqPKMHfS1wdHCJk1P1EZpRdvw==} engines: {node: '>=18'} cpu: [arm64] os: [darwin] - '@esbuild/darwin-x64@0.24.2': - resolution: {integrity: sha512-WeSrmwwHaPkNR5H3yYfowhZcbriGqooyu3zI/3GGpF8AyUdsrrP0X6KumITGA9WOyiJavnGZUwPGvxvwfWPHIA==} + '@esbuild/darwin-x64@0.25.0': + resolution: {integrity: sha512-DgDaYsPWFTS4S3nWpFcMn/33ZZwAAeAFKNHNa1QN0rI4pUjgqf0f7ONmXf6d22tqTY+H9FNdgeaAa+YIFUn2Rg==} engines: {node: '>=18'} cpu: [x64] os: [darwin] - '@esbuild/freebsd-arm64@0.24.2': - resolution: {integrity: sha512-UN8HXjtJ0k/Mj6a9+5u6+2eZ2ERD7Edt1Q9IZiB5UZAIdPnVKDoG7mdTVGhHJIeEml60JteamR3qhsr1r8gXvg==} + '@esbuild/freebsd-arm64@0.25.0': + resolution: {integrity: sha512-VN4ocxy6dxefN1MepBx/iD1dH5K8qNtNe227I0mnTRjry8tj5MRk4zprLEdG8WPyAPb93/e4pSgi1SoHdgOa4w==} engines: {node: '>=18'} cpu: [arm64] os: [freebsd] - '@esbuild/freebsd-x64@0.24.2': - resolution: {integrity: sha512-TvW7wE/89PYW+IevEJXZ5sF6gJRDY/14hyIGFXdIucxCsbRmLUcjseQu1SyTko+2idmCw94TgyaEZi9HUSOe3Q==} + '@esbuild/freebsd-x64@0.25.0': + resolution: {integrity: sha512-mrSgt7lCh07FY+hDD1TxiTyIHyttn6vnjesnPoVDNmDfOmggTLXRv8Id5fNZey1gl/V2dyVK1VXXqVsQIiAk+A==} engines: {node: '>=18'} cpu: [x64] os: [freebsd] - '@esbuild/linux-arm64@0.24.2': - resolution: {integrity: sha512-7HnAD6074BW43YvvUmE/35Id9/NB7BeX5EoNkK9obndmZBUk8xmJJeU7DwmUeN7tkysslb2eSl6CTrYz6oEMQg==} + '@esbuild/linux-arm64@0.25.0': + resolution: {integrity: sha512-9QAQjTWNDM/Vk2bgBl17yWuZxZNQIF0OUUuPZRKoDtqF2k4EtYbpyiG5/Dk7nqeK6kIJWPYldkOcBqjXjrUlmg==} engines: {node: '>=18'} cpu: [arm64] os: [linux] - '@esbuild/linux-arm@0.24.2': - resolution: {integrity: sha512-n0WRM/gWIdU29J57hJyUdIsk0WarGd6To0s+Y+LwvlC55wt+GT/OgkwoXCXvIue1i1sSNWblHEig00GBWiJgfA==} + '@esbuild/linux-arm@0.25.0': + resolution: {integrity: sha512-vkB3IYj2IDo3g9xX7HqhPYxVkNQe8qTK55fraQyTzTX/fxaDtXiEnavv9geOsonh2Fd2RMB+i5cbhu2zMNWJwg==} engines: {node: '>=18'} cpu: [arm] os: [linux] - '@esbuild/linux-ia32@0.24.2': - resolution: {integrity: sha512-sfv0tGPQhcZOgTKO3oBE9xpHuUqguHvSo4jl+wjnKwFpapx+vUDcawbwPNuBIAYdRAvIDBfZVvXprIj3HA+Ugw==} + '@esbuild/linux-ia32@0.25.0': + resolution: {integrity: sha512-43ET5bHbphBegyeqLb7I1eYn2P/JYGNmzzdidq/w0T8E2SsYL1U6un2NFROFRg1JZLTzdCoRomg8Rvf9M6W6Gg==} engines: {node: '>=18'} cpu: [ia32] os: [linux] - '@esbuild/linux-loong64@0.24.2': - resolution: {integrity: sha512-CN9AZr8kEndGooS35ntToZLTQLHEjtVB5n7dl8ZcTZMonJ7CCfStrYhrzF97eAecqVbVJ7APOEe18RPI4KLhwQ==} + '@esbuild/linux-loong64@0.25.0': + resolution: {integrity: sha512-fC95c/xyNFueMhClxJmeRIj2yrSMdDfmqJnyOY4ZqsALkDrrKJfIg5NTMSzVBr5YW1jf+l7/cndBfP3MSDpoHw==} engines: {node: '>=18'} cpu: [loong64] os: [linux] - '@esbuild/linux-mips64el@0.24.2': - resolution: {integrity: sha512-iMkk7qr/wl3exJATwkISxI7kTcmHKE+BlymIAbHO8xanq/TjHaaVThFF6ipWzPHryoFsesNQJPE/3wFJw4+huw==} + '@esbuild/linux-mips64el@0.25.0': + resolution: {integrity: sha512-nkAMFju7KDW73T1DdH7glcyIptm95a7Le8irTQNO/qtkoyypZAnjchQgooFUDQhNAy4iu08N79W4T4pMBwhPwQ==} engines: {node: '>=18'} cpu: [mips64el] os: [linux] - '@esbuild/linux-ppc64@0.24.2': - resolution: {integrity: sha512-shsVrgCZ57Vr2L8mm39kO5PPIb+843FStGt7sGGoqiiWYconSxwTiuswC1VJZLCjNiMLAMh34jg4VSEQb+iEbw==} + '@esbuild/linux-ppc64@0.25.0': + resolution: {integrity: sha512-NhyOejdhRGS8Iwv+KKR2zTq2PpysF9XqY+Zk77vQHqNbo/PwZCzB5/h7VGuREZm1fixhs4Q/qWRSi5zmAiO4Fw==} engines: {node: '>=18'} cpu: [ppc64] os: [linux] - '@esbuild/linux-riscv64@0.24.2': - resolution: {integrity: sha512-4eSFWnU9Hhd68fW16GD0TINewo1L6dRrB+oLNNbYyMUAeOD2yCK5KXGK1GH4qD/kT+bTEXjsyTCiJGHPZ3eM9Q==} + '@esbuild/linux-riscv64@0.25.0': + resolution: {integrity: sha512-5S/rbP5OY+GHLC5qXp1y/Mx//e92L1YDqkiBbO9TQOvuFXM+iDqUNG5XopAnXoRH3FjIUDkeGcY1cgNvnXp/kA==} engines: {node: '>=18'} cpu: [riscv64] os: [linux] - '@esbuild/linux-s390x@0.24.2': - resolution: {integrity: sha512-S0Bh0A53b0YHL2XEXC20bHLuGMOhFDO6GN4b3YjRLK//Ep3ql3erpNcPlEFed93hsQAjAQDNsvcK+hV90FubSw==} + '@esbuild/linux-s390x@0.25.0': + resolution: {integrity: sha512-XM2BFsEBz0Fw37V0zU4CXfcfuACMrppsMFKdYY2WuTS3yi8O1nFOhil/xhKTmE1nPmVyvQJjJivgDT+xh8pXJA==} engines: {node: '>=18'} cpu: [s390x] os: [linux] - '@esbuild/linux-x64@0.24.2': - resolution: {integrity: sha512-8Qi4nQcCTbLnK9WoMjdC9NiTG6/E38RNICU6sUNqK0QFxCYgoARqVqxdFmWkdonVsvGqWhmm7MO0jyTqLqwj0Q==} + '@esbuild/linux-x64@0.25.0': + resolution: {integrity: sha512-9yl91rHw/cpwMCNytUDxwj2XjFpxML0y9HAOH9pNVQDpQrBxHy01Dx+vaMu0N1CKa/RzBD2hB4u//nfc+Sd3Cw==} engines: {node: '>=18'} cpu: [x64] os: [linux] - '@esbuild/netbsd-arm64@0.24.2': - resolution: {integrity: sha512-wuLK/VztRRpMt9zyHSazyCVdCXlpHkKm34WUyinD2lzK07FAHTq0KQvZZlXikNWkDGoT6x3TD51jKQ7gMVpopw==} + '@esbuild/netbsd-arm64@0.25.0': + resolution: {integrity: sha512-RuG4PSMPFfrkH6UwCAqBzauBWTygTvb1nxWasEJooGSJ/NwRw7b2HOwyRTQIU97Hq37l3npXoZGYMy3b3xYvPw==} engines: {node: '>=18'} cpu: [arm64] os: [netbsd] - '@esbuild/netbsd-x64@0.24.2': - resolution: {integrity: sha512-VefFaQUc4FMmJuAxmIHgUmfNiLXY438XrL4GDNV1Y1H/RW3qow68xTwjZKfj/+Plp9NANmzbH5R40Meudu8mmw==} + '@esbuild/netbsd-x64@0.25.0': + resolution: {integrity: sha512-jl+qisSB5jk01N5f7sPCsBENCOlPiS/xptD5yxOx2oqQfyourJwIKLRA2yqWdifj3owQZCL2sn6o08dBzZGQzA==} engines: {node: '>=18'} cpu: [x64] os: [netbsd] - '@esbuild/openbsd-arm64@0.24.2': - resolution: {integrity: sha512-YQbi46SBct6iKnszhSvdluqDmxCJA+Pu280Av9WICNwQmMxV7nLRHZfjQzwbPs3jeWnuAhE9Jy0NrnJ12Oz+0A==} + '@esbuild/openbsd-arm64@0.25.0': + resolution: {integrity: sha512-21sUNbq2r84YE+SJDfaQRvdgznTD8Xc0oc3p3iW/a1EVWeNj/SdUCbm5U0itZPQYRuRTW20fPMWMpcrciH2EJw==} engines: {node: '>=18'} cpu: [arm64] os: [openbsd] - '@esbuild/openbsd-x64@0.24.2': - resolution: {integrity: sha512-+iDS6zpNM6EnJyWv0bMGLWSWeXGN/HTaF/LXHXHwejGsVi+ooqDfMCCTerNFxEkM3wYVcExkeGXNqshc9iMaOA==} + '@esbuild/openbsd-x64@0.25.0': + resolution: {integrity: sha512-2gwwriSMPcCFRlPlKx3zLQhfN/2WjJ2NSlg5TKLQOJdV0mSxIcYNTMhk3H3ulL/cak+Xj0lY1Ym9ysDV1igceg==} engines: {node: '>=18'} cpu: [x64] os: [openbsd] - '@esbuild/sunos-x64@0.24.2': - resolution: {integrity: sha512-hTdsW27jcktEvpwNHJU4ZwWFGkz2zRJUz8pvddmXPtXDzVKTTINmlmga3ZzwcuMpUvLw7JkLy9QLKyGpD2Yxig==} + '@esbuild/sunos-x64@0.25.0': + resolution: {integrity: sha512-bxI7ThgLzPrPz484/S9jLlvUAHYMzy6I0XiU1ZMeAEOBcS0VePBFxh1JjTQt3Xiat5b6Oh4x7UC7IwKQKIJRIg==} engines: {node: '>=18'} cpu: [x64] os: [sunos] - '@esbuild/win32-arm64@0.24.2': - resolution: {integrity: sha512-LihEQ2BBKVFLOC9ZItT9iFprsE9tqjDjnbulhHoFxYQtQfai7qfluVODIYxt1PgdoyQkz23+01rzwNwYfutxUQ==} + '@esbuild/win32-arm64@0.25.0': + resolution: {integrity: sha512-ZUAc2YK6JW89xTbXvftxdnYy3m4iHIkDtK3CLce8wg8M2L+YZhIvO1DKpxrd0Yr59AeNNkTiic9YLf6FTtXWMw==} engines: {node: '>=18'} cpu: [arm64] os: [win32] - '@esbuild/win32-ia32@0.24.2': - resolution: {integrity: sha512-q+iGUwfs8tncmFC9pcnD5IvRHAzmbwQ3GPS5/ceCyHdjXubwQWI12MKWSNSMYLJMq23/IUCvJMS76PDqXe1fxA==} + '@esbuild/win32-ia32@0.25.0': + resolution: {integrity: sha512-eSNxISBu8XweVEWG31/JzjkIGbGIJN/TrRoiSVZwZ6pkC6VX4Im/WV2cz559/TXLcYbcrDN8JtKgd9DJVIo8GA==} engines: {node: '>=18'} cpu: [ia32] os: [win32] - '@esbuild/win32-x64@0.24.2': - resolution: {integrity: sha512-7VTgWzgMGvup6aSqDPLiW5zHaxYJGTO4OokMjIlrCtf+VpEL+cXKtCvg723iguPYI5oaUNdS+/V7OU2gvXVWEg==} + '@esbuild/win32-x64@0.25.0': + resolution: {integrity: sha512-ZENoHJBxA20C2zFzh6AI4fT6RraMzjYw4xKWemRTRmRVtN9c5DcH9r/f2ihEkMjOW5eGgrwCslG/+Y/3bL+DHQ==} engines: {node: '>=18'} cpu: [x64] os: [win32] @@ -2524,16 +2524,16 @@ packages: resolution: {integrity: sha512-g16pp/yDFqBJ9/9D+UIWPj5uC8MPslMK62HmAXW+ZomZWJifOFTuJgado86UUiMeBrk03z2uvdS6cIGi0OTRcg==} engines: {node: '>=12'} peerDependencies: - esbuild: 0.24.2 + esbuild: 0.25.0 esbuild-sass-plugin@3.3.1: resolution: {integrity: sha512-SnO1ls+d52n6j8gRRpjexXI8MsHEaumS0IdDHaYM29Y6gakzZYMls6i9ql9+AWMSQk/eryndmUpXEgT34QrX1A==} peerDependencies: - esbuild: 0.24.2 + esbuild: 0.25.0 sass-embedded: ^1.71.1 - esbuild@0.24.2: - resolution: {integrity: sha512-+9egpBW8I3CD5XPe0n6BfT5fxLzxrlDzqydF3aviG+9ni1lDC/OvMHcxqEFV0+LANZG5R1bFMWfUrjVsdwxJvA==} + esbuild@0.25.0: + resolution: {integrity: sha512-BXq5mqc8ltbaN34cDqWuYKyNhX8D/Z0J1xdtdQ8UcIIIyJyz+ZMKUt58tF3SrZ85jcfN/PZYhjR5uDQAYNVbuw==} engines: {node: '>=18'} hasBin: true @@ -3187,8 +3187,8 @@ packages: resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} engines: {node: '>=8'} - is-boolean-object@1.2.1: - resolution: {integrity: sha512-l9qO6eFlUETHtuihLcYOaLKByJ1f+N4kthcU9YjHy3N+B3hWv0y/2Nd0mu/7lTFnRQHTrSdXF50HQ3bl5fEnng==} + is-boolean-object@1.2.2: + resolution: {integrity: sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A==} engines: {node: '>= 0.4'} is-callable@1.2.7: @@ -3328,8 +3328,8 @@ packages: resolution: {integrity: sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==} engines: {node: '>= 0.4'} - is-weakref@1.1.0: - resolution: {integrity: sha512-SXM8Nwyys6nT5WP6pltOwKytLV7FqQ4UiibxVmW+EIosHcmCqkkjViTb5SNssDlkCiEYRP1/pdWUKVvZBmsR2Q==} + is-weakref@1.1.1: + resolution: {integrity: sha512-6i9mGWSlqzNMEqpCp93KwRS1uUOodk2OJ6b+sq7ZPDSy2WuI5NFIxp/254TytR8ftefexkWn5xNiHUNpPOfSew==} engines: {node: '>= 0.4'} is-weakset@2.0.4: @@ -3914,6 +3914,10 @@ packages: resolution: {integrity: sha512-kDCGIbxkDSXE3euJZZXzc6to7fCrKHNI/hSRQnRuQ+BWjFNzZwiFF8fj/6o2t2G9/jTj8PSIYTfCLelLZEeRpA==} engines: {node: '>= 0.4'} + object-inspect@1.13.4: + resolution: {integrity: sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==} + engines: {node: '>= 0.4'} + object-keys@1.1.1: resolution: {integrity: sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==} engines: {node: '>= 0.4'} @@ -4146,8 +4150,8 @@ packages: engines: {node: '>=18'} hasBin: true - possible-typed-array-names@1.0.0: - resolution: {integrity: sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==} + possible-typed-array-names@1.1.0: + resolution: {integrity: sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==} engines: {node: '>= 0.4'} postcss-calc@10.1.1: @@ -5690,14 +5694,14 @@ snapshots: '@discoveryjs/json-ext@0.6.3': {} - '@eamodio/eslint-lite-webpack-plugin@0.2.0(@swc/core@1.10.4)(esbuild@0.24.2)(eslint@9.19.0(jiti@2.4.0))(webpack-cli@6.0.1)(webpack@5.97.1)': + '@eamodio/eslint-lite-webpack-plugin@0.2.0(@swc/core@1.10.4)(esbuild@0.25.0)(eslint@9.19.0(jiti@2.4.0))(webpack-cli@6.0.1)(webpack@5.97.1)': dependencies: '@types/eslint': 9.6.1 - '@types/webpack': 5.28.5(@swc/core@1.10.4)(esbuild@0.24.2)(webpack-cli@6.0.1) + '@types/webpack': 5.28.5(@swc/core@1.10.4)(esbuild@0.25.0)(webpack-cli@6.0.1) eslint: 9.19.0(jiti@2.4.0) fast-glob: 3.3.3 minimatch: 10.0.1 - webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.24.2)(webpack-cli@6.0.1) + webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.25.0)(webpack-cli@6.0.1) transitivePeerDependencies: - '@swc/core' - esbuild @@ -5720,79 +5724,79 @@ snapshots: tslib: 2.8.1 optional: true - '@esbuild/aix-ppc64@0.24.2': + '@esbuild/aix-ppc64@0.25.0': optional: true - '@esbuild/android-arm64@0.24.2': + '@esbuild/android-arm64@0.25.0': optional: true - '@esbuild/android-arm@0.24.2': + '@esbuild/android-arm@0.25.0': optional: true - '@esbuild/android-x64@0.24.2': + '@esbuild/android-x64@0.25.0': optional: true - '@esbuild/darwin-arm64@0.24.2': + '@esbuild/darwin-arm64@0.25.0': optional: true - '@esbuild/darwin-x64@0.24.2': + '@esbuild/darwin-x64@0.25.0': optional: true - '@esbuild/freebsd-arm64@0.24.2': + '@esbuild/freebsd-arm64@0.25.0': optional: true - '@esbuild/freebsd-x64@0.24.2': + '@esbuild/freebsd-x64@0.25.0': optional: true - '@esbuild/linux-arm64@0.24.2': + '@esbuild/linux-arm64@0.25.0': optional: true - '@esbuild/linux-arm@0.24.2': + '@esbuild/linux-arm@0.25.0': optional: true - '@esbuild/linux-ia32@0.24.2': + '@esbuild/linux-ia32@0.25.0': optional: true - '@esbuild/linux-loong64@0.24.2': + '@esbuild/linux-loong64@0.25.0': optional: true - '@esbuild/linux-mips64el@0.24.2': + '@esbuild/linux-mips64el@0.25.0': optional: true - '@esbuild/linux-ppc64@0.24.2': + '@esbuild/linux-ppc64@0.25.0': optional: true - '@esbuild/linux-riscv64@0.24.2': + '@esbuild/linux-riscv64@0.25.0': optional: true - '@esbuild/linux-s390x@0.24.2': + '@esbuild/linux-s390x@0.25.0': optional: true - '@esbuild/linux-x64@0.24.2': + '@esbuild/linux-x64@0.25.0': optional: true - '@esbuild/netbsd-arm64@0.24.2': + '@esbuild/netbsd-arm64@0.25.0': optional: true - '@esbuild/netbsd-x64@0.24.2': + '@esbuild/netbsd-x64@0.25.0': optional: true - '@esbuild/openbsd-arm64@0.24.2': + '@esbuild/openbsd-arm64@0.25.0': optional: true - '@esbuild/openbsd-x64@0.24.2': + '@esbuild/openbsd-x64@0.25.0': optional: true - '@esbuild/sunos-x64@0.24.2': + '@esbuild/sunos-x64@0.25.0': optional: true - '@esbuild/win32-arm64@0.24.2': + '@esbuild/win32-arm64@0.25.0': optional: true - '@esbuild/win32-ia32@0.24.2': + '@esbuild/win32-ia32@0.25.0': optional: true - '@esbuild/win32-x64@0.24.2': + '@esbuild/win32-x64@0.25.0': optional: true '@eslint-community/eslint-utils@4.4.1(eslint@9.19.0(jiti@2.4.0))': @@ -6480,11 +6484,11 @@ snapshots: '@types/vscode@1.82.0': {} - '@types/webpack@5.28.5(@swc/core@1.10.4)(esbuild@0.24.2)(webpack-cli@6.0.1)': + '@types/webpack@5.28.5(@swc/core@1.10.4)(esbuild@0.25.0)(webpack-cli@6.0.1)': dependencies: '@types/node': 18.15.13 tapable: 2.2.1 - webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.24.2)(webpack-cli@6.0.1) + webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.25.0)(webpack-cli@6.0.1) transitivePeerDependencies: - '@swc/core' - esbuild @@ -6767,17 +6771,17 @@ snapshots: '@webpack-cli/configtest@3.0.1(webpack-cli@6.0.1)(webpack@5.97.1)': dependencies: - webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.24.2)(webpack-cli@6.0.1) + webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.25.0)(webpack-cli@6.0.1) webpack-cli: 6.0.1(webpack-bundle-analyzer@4.10.2)(webpack@5.97.1) '@webpack-cli/info@3.0.1(webpack-cli@6.0.1)(webpack@5.97.1)': dependencies: - webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.24.2)(webpack-cli@6.0.1) + webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.25.0)(webpack-cli@6.0.1) webpack-cli: 6.0.1(webpack-bundle-analyzer@4.10.2)(webpack@5.97.1) '@webpack-cli/serve@3.0.1(webpack-cli@6.0.1)(webpack@5.97.1)': dependencies: - webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.24.2)(webpack-cli@6.0.1) + webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.25.0)(webpack-cli@6.0.1) webpack-cli: 6.0.1(webpack-bundle-analyzer@4.10.2)(webpack@5.97.1) '@xmldom/xmldom@0.7.13': {} @@ -6968,7 +6972,7 @@ snapshots: available-typed-arrays@1.0.7: dependencies: - possible-typed-array-names: 1.0.0 + possible-typed-array-names: 1.1.0 optional: true azure-devops-node-api@12.5.0: @@ -7251,7 +7255,7 @@ snapshots: circular-dependency-plugin@5.2.2(webpack@5.97.1): dependencies: - webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.24.2)(webpack-cli@6.0.1) + webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.25.0)(webpack-cli@6.0.1) classnames@2.5.1: {} @@ -7264,7 +7268,7 @@ snapshots: clean-webpack-plugin@4.0.0(webpack@5.97.1): dependencies: del: 4.1.1 - webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.24.2)(webpack-cli@6.0.1) + webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.25.0)(webpack-cli@6.0.1) cli-cursor@4.0.0: dependencies: @@ -7378,7 +7382,7 @@ snapshots: normalize-path: 3.0.0 schema-utils: 4.3.0 serialize-javascript: 6.0.2 - webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.24.2)(webpack-cli@6.0.1) + webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.25.0)(webpack-cli@6.0.1) core-js@2.6.12: {} @@ -7408,7 +7412,7 @@ snapshots: cheerio: 1.0.0-rc.12 html-webpack-plugin: 5.6.3(webpack@5.97.1) lodash: 4.17.21 - webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.24.2)(webpack-cli@6.0.1) + webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.25.0)(webpack-cli@6.0.1) css-declaration-sorter@7.2.0(postcss@8.5.1): dependencies: @@ -7425,9 +7429,9 @@ snapshots: postcss-value-parser: 4.2.0 semver: 7.7.0 optionalDependencies: - webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.24.2)(webpack-cli@6.0.1) + webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.25.0)(webpack-cli@6.0.1) - css-minimizer-webpack-plugin@7.0.0(esbuild@0.24.2)(webpack@5.97.1): + css-minimizer-webpack-plugin@7.0.0(esbuild@0.25.0)(webpack@5.97.1): dependencies: '@jridgewell/trace-mapping': 0.3.25 cssnano: 7.0.6(postcss@8.5.1) @@ -7435,9 +7439,9 @@ snapshots: postcss: 8.5.1 schema-utils: 4.3.0 serialize-javascript: 6.0.2 - webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.24.2)(webpack-cli@6.0.1) + webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.25.0)(webpack-cli@6.0.1) optionalDependencies: - esbuild: 0.24.2 + esbuild: 0.25.0 css-select@4.3.0: dependencies: @@ -7887,9 +7891,9 @@ snapshots: is-shared-array-buffer: 1.0.4 is-string: 1.1.1 is-typed-array: 1.1.15 - is-weakref: 1.1.0 + is-weakref: 1.1.1 math-intrinsics: 1.1.0 - object-inspect: 1.13.3 + object-inspect: 1.13.4 object-keys: 1.1.1 object.assign: 4.1.7 own-keys: 1.0.1 @@ -7941,53 +7945,53 @@ snapshots: esbuild-loader@4.2.2(webpack@5.97.1): dependencies: - esbuild: 0.24.2 + esbuild: 0.25.0 get-tsconfig: 4.10.0 loader-utils: 2.0.4 - webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.24.2)(webpack-cli@6.0.1) + webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.25.0)(webpack-cli@6.0.1) webpack-sources: 1.4.3 - esbuild-node-externals@1.16.0(esbuild@0.24.2): + esbuild-node-externals@1.16.0(esbuild@0.25.0): dependencies: - esbuild: 0.24.2 + esbuild: 0.25.0 find-up: 5.0.0 tslib: 2.8.1 - esbuild-sass-plugin@3.3.1(esbuild@0.24.2)(sass-embedded@1.77.8): + esbuild-sass-plugin@3.3.1(esbuild@0.25.0)(sass-embedded@1.77.8): dependencies: - esbuild: 0.24.2 + esbuild: 0.25.0 resolve: 1.22.10 safe-identifier: 0.4.2 sass: 1.83.4 sass-embedded: 1.77.8 - esbuild@0.24.2: + esbuild@0.25.0: optionalDependencies: - '@esbuild/aix-ppc64': 0.24.2 - '@esbuild/android-arm': 0.24.2 - '@esbuild/android-arm64': 0.24.2 - '@esbuild/android-x64': 0.24.2 - '@esbuild/darwin-arm64': 0.24.2 - '@esbuild/darwin-x64': 0.24.2 - '@esbuild/freebsd-arm64': 0.24.2 - '@esbuild/freebsd-x64': 0.24.2 - '@esbuild/linux-arm': 0.24.2 - '@esbuild/linux-arm64': 0.24.2 - '@esbuild/linux-ia32': 0.24.2 - '@esbuild/linux-loong64': 0.24.2 - '@esbuild/linux-mips64el': 0.24.2 - '@esbuild/linux-ppc64': 0.24.2 - '@esbuild/linux-riscv64': 0.24.2 - '@esbuild/linux-s390x': 0.24.2 - '@esbuild/linux-x64': 0.24.2 - '@esbuild/netbsd-arm64': 0.24.2 - '@esbuild/netbsd-x64': 0.24.2 - '@esbuild/openbsd-arm64': 0.24.2 - '@esbuild/openbsd-x64': 0.24.2 - '@esbuild/sunos-x64': 0.24.2 - '@esbuild/win32-arm64': 0.24.2 - '@esbuild/win32-ia32': 0.24.2 - '@esbuild/win32-x64': 0.24.2 + '@esbuild/aix-ppc64': 0.25.0 + '@esbuild/android-arm': 0.25.0 + '@esbuild/android-arm64': 0.25.0 + '@esbuild/android-x64': 0.25.0 + '@esbuild/darwin-arm64': 0.25.0 + '@esbuild/darwin-x64': 0.25.0 + '@esbuild/freebsd-arm64': 0.25.0 + '@esbuild/freebsd-x64': 0.25.0 + '@esbuild/linux-arm': 0.25.0 + '@esbuild/linux-arm64': 0.25.0 + '@esbuild/linux-ia32': 0.25.0 + '@esbuild/linux-loong64': 0.25.0 + '@esbuild/linux-mips64el': 0.25.0 + '@esbuild/linux-ppc64': 0.25.0 + '@esbuild/linux-riscv64': 0.25.0 + '@esbuild/linux-s390x': 0.25.0 + '@esbuild/linux-x64': 0.25.0 + '@esbuild/netbsd-arm64': 0.25.0 + '@esbuild/netbsd-x64': 0.25.0 + '@esbuild/openbsd-arm64': 0.25.0 + '@esbuild/openbsd-x64': 0.25.0 + '@esbuild/sunos-x64': 0.25.0 + '@esbuild/win32-arm64': 0.25.0 + '@esbuild/win32-ia32': 0.25.0 + '@esbuild/win32-x64': 0.25.0 escalade@3.2.0: {} @@ -8012,7 +8016,7 @@ snapshots: optionalDependencies: eslint-plugin-import: 2.29.1(@typescript-eslint/parser@8.22.0(eslint@9.19.0(jiti@2.4.0))(typescript@5.7.3))(eslint@9.19.0(jiti@2.4.0)) eslint-plugin-import-x: 4.6.1(eslint@9.19.0(jiti@2.4.0))(typescript@5.7.3) - webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.24.2)(webpack-cli@6.0.1) + webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.25.0)(webpack-cli@6.0.1) webpack-cli: 6.0.1(webpack-bundle-analyzer@4.10.2)(webpack@5.97.1) webpack-merge: 6.0.1 @@ -8264,7 +8268,7 @@ snapshots: semver: 7.7.0 tapable: 2.2.1 typescript: 5.7.3 - webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.24.2)(webpack-cli@6.0.1) + webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.25.0)(webpack-cli@6.0.1) form-data@4.0.1: dependencies: @@ -8515,7 +8519,7 @@ snapshots: dependencies: html-minifier-terser: 7.2.0 parse5: 7.2.1 - webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.24.2)(webpack-cli@6.0.1) + webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.25.0)(webpack-cli@6.0.1) html-minifier-terser@6.1.0: dependencies: @@ -8545,7 +8549,7 @@ snapshots: pretty-error: 4.0.0 tapable: 2.2.1 optionalDependencies: - webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.24.2)(webpack-cli@6.0.1) + webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.25.0)(webpack-cli@6.0.1) htmlparser2@6.1.0: dependencies: @@ -8640,7 +8644,7 @@ snapshots: dependencies: schema-utils: 4.3.0 serialize-javascript: 6.0.2 - webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.24.2)(webpack-cli@6.0.1) + webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.25.0)(webpack-cli@6.0.1) optionalDependencies: sharp: 0.33.5 svgo: 3.3.2 @@ -8730,7 +8734,7 @@ snapshots: dependencies: binary-extensions: 2.3.0 - is-boolean-object@1.2.1: + is-boolean-object@1.2.2: dependencies: call-bound: 1.0.3 has-tostringtag: 1.0.2 @@ -8865,7 +8869,7 @@ snapshots: is-weakmap@2.0.2: optional: true - is-weakref@1.1.0: + is-weakref@1.1.1: dependencies: call-bound: 1.0.3 optional: true @@ -9322,7 +9326,7 @@ snapshots: dependencies: schema-utils: 4.3.0 tapable: 2.2.1 - webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.24.2)(webpack-cli@6.0.1) + webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.25.0)(webpack-cli@6.0.1) minimatch@10.0.1: dependencies: @@ -9536,6 +9540,9 @@ snapshots: object-inspect@1.13.3: {} + object-inspect@1.13.4: + optional: true + object-keys@1.1.1: optional: true @@ -9798,7 +9805,7 @@ snapshots: optionalDependencies: fsevents: 2.3.2 - possible-typed-array-names@1.0.0: + possible-typed-array-names@1.1.0: optional: true postcss-calc@10.1.1(postcss@8.5.1): @@ -10464,7 +10471,7 @@ snapshots: optionalDependencies: sass: 1.83.4 sass-embedded: 1.77.8 - webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.24.2)(webpack-cli@6.0.1) + webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.25.0)(webpack-cli@6.0.1) sass@1.83.4: dependencies: @@ -10895,17 +10902,17 @@ snapshots: mkdirp: 1.0.4 yallist: 4.0.0 - terser-webpack-plugin@5.3.11(@swc/core@1.10.4)(esbuild@0.24.2)(webpack@5.97.1): + terser-webpack-plugin@5.3.11(@swc/core@1.10.4)(esbuild@0.25.0)(webpack@5.97.1): dependencies: '@jridgewell/trace-mapping': 0.3.25 jest-worker: 27.5.1 schema-utils: 4.3.0 serialize-javascript: 6.0.2 terser: 5.37.0 - webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.24.2)(webpack-cli@6.0.1) + webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.25.0)(webpack-cli@6.0.1) optionalDependencies: '@swc/core': 1.10.4 - esbuild: 0.24.2 + esbuild: 0.25.0 terser@5.37.0: dependencies: @@ -10959,7 +10966,7 @@ snapshots: semver: 7.7.0 source-map: 0.7.4 typescript: 5.7.3 - webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.24.2)(webpack-cli@6.0.1) + webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.25.0)(webpack-cli@6.0.1) tsconfig-paths@3.15.0: dependencies: @@ -11043,7 +11050,7 @@ snapshots: for-each: 0.3.4 gopd: 1.2.0 is-typed-array: 1.1.15 - possible-typed-array-names: 1.0.0 + possible-typed-array-names: 1.1.0 reflect.getprototypeof: 1.0.10 optional: true @@ -11183,7 +11190,7 @@ snapshots: import-local: 3.2.0 interpret: 3.1.1 rechoir: 0.8.0 - webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.24.2)(webpack-cli@6.0.1) + webpack: 5.97.1(@swc/core@1.10.4)(esbuild@0.25.0)(webpack-cli@6.0.1) webpack-merge: 6.0.1 optionalDependencies: webpack-bundle-analyzer: 4.10.2 @@ -11207,7 +11214,7 @@ snapshots: webpack-sources@3.2.3: {} - webpack@5.97.1(@swc/core@1.10.4)(esbuild@0.24.2)(webpack-cli@6.0.1): + webpack@5.97.1(@swc/core@1.10.4)(esbuild@0.25.0)(webpack-cli@6.0.1): dependencies: '@types/eslint-scope': 3.7.7 '@types/estree': 1.0.6 @@ -11229,7 +11236,7 @@ snapshots: neo-async: 2.6.2 schema-utils: 3.3.0 tapable: 2.2.1 - terser-webpack-plugin: 5.3.11(@swc/core@1.10.4)(esbuild@0.24.2)(webpack@5.97.1) + terser-webpack-plugin: 5.3.11(@swc/core@1.10.4)(esbuild@0.25.0)(webpack@5.97.1) watchpack: 2.4.2 webpack-sources: 3.2.3 optionalDependencies: @@ -11247,7 +11254,7 @@ snapshots: which-boxed-primitive@1.1.1: dependencies: is-bigint: 1.1.0 - is-boolean-object: 1.2.1 + is-boolean-object: 1.2.2 is-number-object: 1.1.1 is-string: 1.1.1 is-symbol: 1.1.1 @@ -11263,7 +11270,7 @@ snapshots: is-finalizationregistry: 1.1.1 is-generator-function: 1.1.0 is-regex: 1.2.1 - is-weakref: 1.1.0 + is-weakref: 1.1.1 isarray: 2.0.5 which-boxed-primitive: 1.1.1 which-collection: 1.0.2 diff --git a/src/ai/openaiProvider.ts b/src/ai/openaiProvider.ts index 0fb05b2a9b4e5..05e435a08e1f1 100644 --- a/src/ai/openaiProvider.ts +++ b/src/ai/openaiProvider.ts @@ -1,6 +1,7 @@ import { configuration } from '../system/-webview/configuration'; import type { AIModel } from './aiProviderService'; import { OpenAICompatibleProvider } from './openAICompatibleProvider'; +import * as urlLib from 'url'; const provider = { id: 'openai', name: 'OpenAI' } as const; @@ -209,7 +210,8 @@ export class OpenAIProvider extends OpenAICompatibleProvider url: string, apiKey: string, ): Record { - if (url.includes('.azure.com')) { + const parsedUrl = urlLib.parse(url); + if (this.isAllowedHost(parsedUrl.host)) { return { Accept: 'application/json', 'Content-Type': 'application/json', @@ -219,4 +221,16 @@ export class OpenAIProvider extends OpenAICompatibleProvider return super.getHeaders(model, url, apiKey); } + + private isAllowedHost(host: string | null): boolean { + if (!host) return false; + const allowedHosts = [ + 'azure.com', + '*.azure.com' + ]; + return allowedHosts.some(allowedHost => { + const regex = new RegExp(`^${allowedHost.replace('*.', '.*\\.')}$`); + return regex.test(host); + }); + } } diff --git a/src/autolinks/autolinks.ts b/src/autolinks/autolinks.ts index a539ae6576cb0..59dea7488a503 100644 --- a/src/autolinks/autolinks.ts +++ b/src/autolinks/autolinks.ts @@ -395,7 +395,7 @@ export class Autolinks implements Disposable { } else { const issue = issueResult.value; const issueTitle = escapeMarkdown(issue.title.trim()); - const issueTitleQuoteEscaped = issueTitle.replace(/"/g, '\\"'); + const issueTitleQuoteEscaped = issueTitle.replace(/(["\\])/g, '\\$1'); if (footnotes != null && !prs?.has(num)) { footnoteIndex = footnotes.size + 1; diff --git a/src/env/node/fetch.ts b/src/env/node/fetch.ts index a3bb6b6e8120a..985ccff8aa48f 100644 --- a/src/env/node/fetch.ts +++ b/src/env/node/fetch.ts @@ -49,12 +49,12 @@ export async function wrapForForcedInsecureSSL( ): Promise { if (ignoreSSLErrors !== 'force') return fetchFn(); - const previousRejectUnauthorized = process.env.NODE_TLS_REJECT_UNAUTHORIZED; - process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'; + const https = require('https'); + const agent = new https.Agent(); try { - return await fetchFn(); + return await fetchFn({ agent }); } finally { - process.env.NODE_TLS_REJECT_UNAUTHORIZED = previousRejectUnauthorized; + // No need to restore global state } } diff --git a/src/git/formatters/commitFormatter.ts b/src/git/formatters/commitFormatter.ts index 4dc674ca210c7..9f831c73516ec 100644 --- a/src/git/formatters/commitFormatter.ts +++ b/src/git/formatters/commitFormatter.ts @@ -514,7 +514,7 @@ export class CommitFormatter extends Formatter { pullRequest: { id: pr.id, url: pr.url }, })} "Open Pull Request \\#${pr.id}${ Container.instance.actionRunners.count('openPullRequest') === 1 ? ` on ${pr.provider.name}` : '...' - }\n${GlyphChars.Dash.repeat(2)}\n${escapeMarkdown(pr.title).replace(/"/g, '\\"')}\n${ + }\n${GlyphChars.Dash.repeat(2)}\n${escapeMarkdown(pr.title).replace(/\\/g, '\\\\').replace(/"/g, '\\"')}\n${ pr.state }, ${pr.formatDateFromNow()}")`; } else if (isPromise(pr)) { @@ -783,12 +783,12 @@ export class CommitFormatter extends Formatter { pullRequest: { id: pr.id, url: pr.url }, })} "Open Pull Request \\#${pr.id}${ Container.instance.actionRunners.count('openPullRequest') === 1 ? ` on ${pr.provider.name}` : '...' - }\n${GlyphChars.Dash.repeat(2)}\n${escapeMarkdown(pr.title).replace(/"/g, '\\"')}\n${ + }\n${GlyphChars.Dash.repeat(2)}\n${escapeMarkdown(pr.title).replace(/\\/g, '\\\\').replace(/"/g, '\\"')}\n${ pr.state }, ${pr.formatDateFromNow()}")`; if (this._options.footnotes != null) { - const prTitle = escapeMarkdown(pr.title).replace(/"/g, '\\"').trim(); + const prTitle = escapeMarkdown(pr.title).replace(/\\/g, '\\\\').replace(/"/g, '\\"').trim(); const index = this._options.footnotes.size + 1; this._options.footnotes.set( diff --git a/src/git/remotes/bitbucket-server.ts b/src/git/remotes/bitbucket-server.ts index a6f5171649f1f..b3ddaa12e8a15 100644 --- a/src/git/remotes/bitbucket-server.ts +++ b/src/git/remotes/bitbucket-server.ts @@ -158,7 +158,7 @@ export class BitbucketServerRemote extends RemoteProvider { } protected override getUrlForComparison(base: string, compare: string, _notation: '..' | '...'): string { - return this.encodeUrl(`${this.baseUrl}/branches/compare/${base}%0D${compare}`).replace('%250D', '%0D'); + return this.encodeUrl(`${this.baseUrl}/branches/compare/${base}%0D${compare}`).replace(/%250D/g, '%0D'); } protected getUrlForFile(fileName: string, branch?: string, sha?: string, range?: Range): string { diff --git a/src/git/remotes/bitbucket.ts b/src/git/remotes/bitbucket.ts index f2a85d8e6e1c8..aa46114b24f75 100644 --- a/src/git/remotes/bitbucket.ts +++ b/src/git/remotes/bitbucket.ts @@ -143,7 +143,7 @@ export class BitbucketRemote extends RemoteProvider { } protected override getUrlForComparison(base: string, compare: string, _notation: '..' | '...'): string { - return this.encodeUrl(`${this.baseUrl}/branches/compare/${base}%0D${compare}`).replace('%250D', '%0D'); + return this.encodeUrl(`${this.baseUrl}/branches/compare/${base}%0D${compare}`).replace(/%250D/g, '%0D'); } protected getUrlForFile(fileName: string, branch?: string, sha?: string, range?: Range): string { diff --git a/src/system/-webview/vscode.ts b/src/system/-webview/vscode.ts index 48d283c57e005..81474078f84d1 100644 --- a/src/system/-webview/vscode.ts +++ b/src/system/-webview/vscode.ts @@ -147,7 +147,7 @@ export async function getHostExecutablePath(): Promise { } export async function getHostEditorCommand(): Promise { - const path = normalizePath(await getHostExecutablePath()).replace(/ /g, '\\ '); + const path = normalizePath(await getHostExecutablePath()).replace(/\\/g, '\\\\').replace(/ /g, '\\ '); return `${path} --wait --reuse-window`; } diff --git a/src/system/commands.ts b/src/system/commands.ts index 014ab815874b3..ec496107c9e78 100644 --- a/src/system/commands.ts +++ b/src/system/commands.ts @@ -10,8 +10,7 @@ export function createMarkdownCommandLink(command: Commands, args: T): string if (args == null) return `command:${command}`; // Since we are using the command in a markdown link, we need to escape ()'s so they don't get interpreted as markdown - return `command:${command}?${encodeURIComponent(typeof args === 'string' ? args : JSON.stringify(args)).replace( - /([()])/g, - '\\$1', - )}`; + return `command:${command}?${encodeURIComponent(typeof args === 'string' ? args : JSON.stringify(args)) + .replace(/\\/g, '\\\\') + .replace(/([()])/g, '\\$1')}`; }