com.jimuwd.xian.registry-proxy 1.1.11 → 1.1.12

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.
@@ -301,7 +301,7 @@ async function writeResponseToDownstreamClient(registryInfo, targetUrl, resToDow
301
301
  // pipe upstream body-stream to downstream stream and automatically ends the stream to downstream when upstream stream is ended.
302
302
  upstreamResponse.body.pipe(resToDownstreamClient, { end: true });
303
303
  upstreamResponse.body
304
- .on('data', (chunk) => logger.info(`Chunk transferred from ${targetUrl} to downstream client size=${Buffer.byteLength(chunk)}bytes`))
304
+ .on('data', (chunk) => logger.debug(() => `Chunk transferred from ${targetUrl} to downstream client size=${Buffer.byteLength(chunk)}bytes`))
305
305
  .on('end', () => logger.info(`Upstream server ${targetUrl} response.body stream ended.`))
306
306
  // connection will be closed automatically when all chunk data is transferred (after stream ends).
307
307
  .on('close', () => logger.debug(() => `Upstream ${targetUrl} closed stream.`))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "com.jimuwd.xian.registry-proxy",
3
- "version": "1.1.11",
3
+ "version": "1.1.12",
4
4
  "description": "A lightweight npm registry proxy with fallback support",
5
5
  "type": "module",
6
6
  "main": "dist/server/index.js",