@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omen.foundation/node-microservice-runtime",
3
- "version": "0.1.35",
3
+ "version": "0.1.36",
4
4
  "description": "Beamable microservice runtime for Node.js/TypeScript services.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -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 && error.message.includes('Timeout') || error.message.includes('DNS') || error.message.includes('Connection')) {
215
- throw error; // Already has good context
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
- const errorMsg = error instanceof Error ? error.message : String(error);
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) {