mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-19 14:41:24 +08:00
chore: update windows-system-proxy dependency and remove obsolete patch (#9108)
- Removed the patch for windows-system-proxy@npm:1.0.0 and updated the dependency to version 1.0.1 in package.json and yarn.lock. - Deleted the corresponding patch file to clean up the project.
This commit is contained in:
parent
df587fc61f
commit
d579872078
@ -1,23 +0,0 @@
|
||||
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}`);
|
||||
@ -286,7 +286,6 @@
|
||||
"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",
|
||||
"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",
|
||||
"openai@npm:^4.77.0": "patch:openai@npm%3A5.12.2#~/.yarn/patches/openai-npm-5.12.2-30b075401c.patch",
|
||||
"openai@npm:^4.87.3": "patch:openai@npm%3A5.12.2#~/.yarn/patches/openai-npm-5.12.2-30b075401c.patch"
|
||||
},
|
||||
|
||||
17
yarn.lock
17
yarn.lock
@ -22314,21 +22314,12 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"windows-system-proxy@npm:1.0.0":
|
||||
version: 1.0.0
|
||||
resolution: "windows-system-proxy@npm:1.0.0"
|
||||
"windows-system-proxy@npm:^1.0.0":
|
||||
version: 1.0.1
|
||||
resolution: "windows-system-proxy@npm:1.0.1"
|
||||
dependencies:
|
||||
registry-js: "npm:^1.15.1"
|
||||
checksum: 10c0/f3712938ce0786c359f171c40cc40df37448e06feeaaddd056312dcc93caff02c1eac9df6f0fac162ec99ac1f23dffb70bf19fe08fac097fed3c32b7ae95f6aa
|
||||
languageName: node
|
||||
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
|
||||
checksum: 10c0/662a9bb283ce1458a25e257a0cb4f81b7efd8e80fa14bf4b5af819f85396a5ad3c68674d9458014091ba6ce81da8f868a49dfad009330c5260f72f7afdea4fc2
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user