com.jimuwd.xian.registry-proxy 1.1.3 → 1.1.4

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(Infinity);
16
+ const limiter = new ConcurrencyLimiter(10);
17
17
  function removeEndingSlashAndForceStartingSlash(str) {
18
18
  if (!str)
19
19
  return '/';
@@ -169,7 +169,7 @@ async function fetchFromRegistry(registry, targetUrl, reqFromDownstreamClient, l
169
169
  if (e instanceof Error) {
170
170
  logger.error(e.code === 'ECONNREFUSED'
171
171
  ? `Registry ${registry.normalizedRegistryUrl} unreachable [ECONNREFUSED]`
172
- : `Error from ${registry.normalizedRegistryUrl}: ${e.message}`);
172
+ : `Error from ${registry.normalizedRegistryUrl}: ${e.message}`, e);
173
173
  }
174
174
  else {
175
175
  logger.error("Unknown error", e);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "com.jimuwd.xian.registry-proxy",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "A lightweight npm registry proxy with fallback support",
5
5
  "type": "module",
6
6
  "main": "dist/server/index.js",