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

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.
@@ -167,9 +167,8 @@ async function fetchFromRegistry(registry, targetUrl, reqFromDownstreamClient, l
167
167
  }
168
168
  catch (e) {
169
169
  if (e instanceof Error) {
170
- logger.error(e.code === 'ECONNREFUSED'
171
- ? `Registry ${registry.normalizedRegistryUrl} unreachable [ECONNREFUSED]`
172
- : `Error from ${registry.normalizedRegistryUrl}: ${e.message}`, e);
170
+ logger.error(e.code === 'ECONNREFUSED' ? `Upstream ${targetUrl} unreachable [ECONNREFUSED]`
171
+ : `Error fetching from ${targetUrl}, ${e.message}`, e);
173
172
  }
174
173
  else {
175
174
  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.4",
3
+ "version": "1.1.5",
4
4
  "description": "A lightweight npm registry proxy with fallback support",
5
5
  "type": "module",
6
6
  "main": "dist/server/index.js",