com.jimuwd.xian.registry-proxy 1.0.135 → 1.1.0
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/dist/server/index.js
CHANGED
|
@@ -249,7 +249,7 @@ async function writeResponseToDownstreamClient(registryInfo, targetUrl, resToDow
|
|
|
249
249
|
// pipe upstream body-stream to downstream stream and automatically ends the stream to downstream when upstream stream is ended.
|
|
250
250
|
upstreamResponse.body.pipe(resToDownstreamClient, { end: true });
|
|
251
251
|
upstreamResponse.body
|
|
252
|
-
.on('data', (chunk) => logger.info(
|
|
252
|
+
.on('data', (chunk) => logger.info(`Chunk transferred from ${targetUrl} to downstream client size=${Buffer.byteLength(chunk)}bytes`))
|
|
253
253
|
.on('end', () => logger.info(`Upstream server ${targetUrl} response.body stream ended.`))
|
|
254
254
|
// connection will be closed automatically when all chunk data is transferred (after stream ends).
|
|
255
255
|
.on('close', () => logger.debug(() => `Upstream ${targetUrl} closed stream.`))
|
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "com.jimuwd.xian.registry-proxy",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "A lightweight npm registry proxy with fallback support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/server/index.js",
|
|
7
7
|
"bin": {
|
|
8
8
|
"registry-proxy": "dist/server/index.js",
|
|
9
|
-
"yarn-install": "dist/client/yarn-install.js"
|
|
10
|
-
"yarn-install-bash": "src/client/yarn-install.sh"
|
|
9
|
+
"yarn-install": "dist/client/yarn-install.js"
|
|
11
10
|
},
|
|
12
11
|
"files": [
|
|
13
12
|
"dist",
|