com.jimuwd.xian.registry-proxy 1.0.73 → 1.0.75

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -198,10 +198,8 @@ async function writeResponseToDownstreamClient(registryInfo, targetUrl, resToDow
198
198
  }
199
199
  }
200
200
  }
201
- resToDownstreamClient.writeHead(upstreamResponse.status, { "content-type": contentType })
202
- .end(JSON.stringify(data))
203
- .destroy();
204
- // reqFromDownstreamClient.destroy();
201
+ resToDownstreamClient.writeHead(upstreamResponse.status, { "content-type": contentType }).end(JSON.stringify(data));
202
+ reqFromDownstreamClient.destroy();
205
203
  }
206
204
  else {
207
205
  // 二进制流处理
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "com.jimuwd.xian.registry-proxy",
3
- "version": "1.0.73",
3
+ "version": "1.0.75",
4
4
  "description": "A lightweight npm registry proxy with fallback support",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",