@omen.foundation/node-microservice-runtime 0.1.35 → 0.1.36
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/auth.cjs +97 -0
- package/dist/collector-manager.cjs +437 -0
- package/dist/collector-manager.d.ts.map +1 -1
- package/dist/collector-manager.js +6 -4
- package/dist/collector-manager.js.map +1 -1
- package/dist/decorators.cjs +181 -0
- package/dist/dependency.cjs +165 -0
- package/dist/dev.cjs +34 -0
- package/dist/discovery.cjs +79 -0
- package/dist/docs.cjs +206 -0
- package/dist/env.cjs +125 -0
- package/dist/errors.cjs +58 -0
- package/dist/federation.cjs +356 -0
- package/dist/index.cjs +48 -0
- package/dist/inventory.cjs +361 -0
- package/dist/logger.cjs +482 -0
- package/dist/message.cjs +19 -0
- package/dist/requester.cjs +100 -0
- package/dist/routing.cjs +39 -0
- package/dist/runtime.cjs +759 -0
- package/dist/services.cjs +346 -0
- package/dist/storage.cjs +147 -0
- package/dist/types.cjs +2 -0
- package/dist/utils/urls.cjs +55 -0
- package/dist/websocket.cjs +142 -0
- package/package.json +1 -1
- package/src/collector-manager.ts +6 -4
package/package.json
CHANGED
package/src/collector-manager.ts
CHANGED
|
@@ -211,11 +211,13 @@ async function downloadAndDecompressGzip(url: string, outputPath: string, makeEx
|
|
|
211
211
|
}
|
|
212
212
|
} catch (error) {
|
|
213
213
|
// Re-throw with more context
|
|
214
|
-
if (error instanceof Error
|
|
215
|
-
|
|
214
|
+
if (error instanceof Error) {
|
|
215
|
+
if (error.message.includes('Timeout') || error.message.includes('DNS') || error.message.includes('Connection')) {
|
|
216
|
+
throw error; // Already has good context
|
|
217
|
+
}
|
|
218
|
+
throw new Error(`Network error downloading ${url}: ${error.message}`);
|
|
216
219
|
}
|
|
217
|
-
|
|
218
|
-
throw new Error(`Network error downloading ${url}: ${errorMsg}`);
|
|
220
|
+
throw new Error(`Network error downloading ${url}: ${String(error)}`);
|
|
219
221
|
}
|
|
220
222
|
|
|
221
223
|
if (!response.ok) {
|