@simonyea/holysheep-cli 1.7.44 → 1.7.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simonyea/holysheep-cli",
3
- "version": "1.7.44",
3
+ "version": "1.7.45",
4
4
  "description": "Claude Code/Cursor/Cline API relay for China \u2014 \u00a51=$1, WeChat/Alipay payment, no credit card, no VPN. One command setup for all AI coding tools.",
5
5
  "keywords": [
6
6
  "openai-china",
@@ -170,6 +170,10 @@ function createProcessProxyServer({ sessionId, configPath = CONFIG_PATH }) {
170
170
  path: target.pathname + target.search,
171
171
  headers: fwdHeaders,
172
172
  }, (res) => {
173
+ if (res.statusCode === 401 || res.statusCode === 403) {
174
+ res.resume()
175
+ return reject(new Error(`Auth error ${res.statusCode}`))
176
+ }
173
177
  clientRes.writeHead(res.statusCode || 502, res.headers)
174
178
  res.pipe(clientRes)
175
179
  resolve()