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.
- package/dist/server/index.js +2 -2
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -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(
|
|
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);
|