mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-19 14:41:24 +08:00
feat(package): add patch for windows-system-proxy to improve http proxy (#8957)
This commit is contained in:
parent
d84c9e3230
commit
2a5869dd80
23
.yarn/patches/windows-system-proxy-npm-1.0.0-ff2a828eec.patch
vendored
Normal file
23
.yarn/patches/windows-system-proxy-npm-1.0.0-ff2a828eec.patch
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
diff --git a/dist/index.js b/dist/index.js
|
||||||
|
index b54962b2d332c1a3affadbdb37d39fdf90ab9f82..7906b4ea3bf9dffe60d74c279e9cfe885489c9f9 100644
|
||||||
|
--- a/dist/index.js
|
||||||
|
+++ b/dist/index.js
|
||||||
|
@@ -36,12 +36,12 @@ async function getWindowsSystemProxy() {
|
||||||
|
const proxies = Object.fromEntries(proxyConfigString
|
||||||
|
.split(';')
|
||||||
|
.map((proxyPair) => proxyPair.split('=')));
|
||||||
|
- const proxyUrl = proxies['https']
|
||||||
|
- ? `https://${proxies['https']}`
|
||||||
|
- : proxies['http']
|
||||||
|
- ? `http://${proxies['http']}`
|
||||||
|
- : proxies['socks']
|
||||||
|
- ? `socks://${proxies['socks']}`
|
||||||
|
+ const proxyUrl = proxies['http']
|
||||||
|
+ ? `http://${proxies['http']}`
|
||||||
|
+ : proxies['socks']
|
||||||
|
+ ? `socks://${proxies['socks']}`
|
||||||
|
+ : proxies['https']
|
||||||
|
+ ? `https://${proxies['https']}`
|
||||||
|
: undefined;
|
||||||
|
if (!proxyUrl) {
|
||||||
|
throw new Error(`Could not get usable proxy URL from ${proxyConfigString}`);
|
||||||
@ -284,7 +284,8 @@
|
|||||||
"undici": "6.21.2",
|
"undici": "6.21.2",
|
||||||
"vite": "npm:rolldown-vite@latest",
|
"vite": "npm:rolldown-vite@latest",
|
||||||
"atomically@npm:^1.7.0": "patch:atomically@npm%3A1.7.0#~/.yarn/patches/atomically-npm-1.7.0-e742e5293b.patch",
|
"atomically@npm:^1.7.0": "patch:atomically@npm%3A1.7.0#~/.yarn/patches/atomically-npm-1.7.0-e742e5293b.patch",
|
||||||
"file-stream-rotator@npm:^0.6.1": "patch:file-stream-rotator@npm%3A0.6.1#~/.yarn/patches/file-stream-rotator-npm-0.6.1-eab45fb13d.patch"
|
"file-stream-rotator@npm:^0.6.1": "patch:file-stream-rotator@npm%3A0.6.1#~/.yarn/patches/file-stream-rotator-npm-0.6.1-eab45fb13d.patch",
|
||||||
|
"windows-system-proxy@npm:^1.0.0": "patch:windows-system-proxy@npm%3A1.0.0#~/.yarn/patches/windows-system-proxy-npm-1.0.0-ff2a828eec.patch"
|
||||||
},
|
},
|
||||||
"packageManager": "yarn@4.9.1",
|
"packageManager": "yarn@4.9.1",
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
|
|||||||
11
yarn.lock
11
yarn.lock
@ -21468,7 +21468,7 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"windows-system-proxy@npm:^1.0.0":
|
"windows-system-proxy@npm:1.0.0":
|
||||||
version: 1.0.0
|
version: 1.0.0
|
||||||
resolution: "windows-system-proxy@npm:1.0.0"
|
resolution: "windows-system-proxy@npm:1.0.0"
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -21477,6 +21477,15 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
"windows-system-proxy@patch:windows-system-proxy@npm%3A1.0.0#~/.yarn/patches/windows-system-proxy-npm-1.0.0-ff2a828eec.patch":
|
||||||
|
version: 1.0.0
|
||||||
|
resolution: "windows-system-proxy@patch:windows-system-proxy@npm%3A1.0.0#~/.yarn/patches/windows-system-proxy-npm-1.0.0-ff2a828eec.patch::version=1.0.0&hash=bc3cd7"
|
||||||
|
dependencies:
|
||||||
|
registry-js: "npm:^1.15.1"
|
||||||
|
checksum: 10c0/4941a22109ced18bece1aa7eacb828a1b4364d031c8528fc76a0a76509ef431f70886574d8629d5086ef7dbfb9595815996489acaa9468c63b337551847761fd
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
"winston-daily-rotate-file@npm:^5.0.0":
|
"winston-daily-rotate-file@npm:^5.0.0":
|
||||||
version: 5.0.0
|
version: 5.0.0
|
||||||
resolution: "winston-daily-rotate-file@npm:5.0.0"
|
resolution: "winston-daily-rotate-file@npm:5.0.0"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user