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.
@@ -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(() => `Chunk transferred from ${targetUrl} to downstream client size=${Buffer.byteLength(chunk)}bytes`))
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.135",
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",
@@ -1,5 +1,8 @@
1
1
  #!/bin/bash
2
2
 
3
+ eco "@@Deprecated@@"
4
+ eco "use yarn-install.ts instead!"
5
+
3
6
  # 启用严格模式,但移除 set -e,手动处理错误
4
7
  set -u # 未定义变量时退出
5
8
  set -o pipefail # 管道中任一命令失败时退出