com.jimuwd.xian.registry-proxy 1.1.5 → 1.1.7

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.
@@ -13,7 +13,7 @@ import { gracefulShutdown, registerProcessShutdownHook } from "./gracefullShutdo
13
13
  import { writePortFile } from "../port.js";
14
14
  import resolveEnvValue from "../utils/resolveEnvValue.js";
15
15
  const { readFile } = fsPromises;
16
- const limiter = new ConcurrencyLimiter(10);
16
+ const limiter = new ConcurrencyLimiter(5);
17
17
  function removeEndingSlashAndForceStartingSlash(str) {
18
18
  if (!str)
19
19
  return '/';
@@ -294,7 +294,7 @@ async function writeResponseToDownstreamClient(registryInfo, targetUrl, resToDow
294
294
  }
295
295
  }
296
296
  catch (err) {
297
- logger.error('Failed to write upstreamResponse:', err);
297
+ logger.error('Failed to transfer upstream response to downstream client', err);
298
298
  if (!resToDownstreamClient.headersSent) {
299
299
  resToDownstreamClient.writeHead(502).end('Internal Server Error');
300
300
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "com.jimuwd.xian.registry-proxy",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "description": "A lightweight npm registry proxy with fallback support",
5
5
  "type": "module",
6
6
  "main": "dist/server/index.js",