com.jimuwd.xian.registry-proxy 1.0.72 → 1.0.74

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 +1 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -198,9 +198,7 @@ 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();
201
+ resToDownstreamClient.writeHead(upstreamResponse.status, { "content-type": contentType }).end(JSON.stringify(data));
204
202
  reqFromDownstreamClient.destroy();
205
203
  }
206
204
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "com.jimuwd.xian.registry-proxy",
3
- "version": "1.0.72",
3
+ "version": "1.0.74",
4
4
  "description": "A lightweight npm registry proxy with fallback support",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",