npm package diff
Package: @forge/api
Versions: 5.1.0-next.5-experimental-edac07a - 5.1.0-next.6
File: package/out/api/runtime.js
Index: package/out/api/runtime.js
===================================================================
--- package/out/api/runtime.js
+++ package/out/api/runtime.js
@@ -1,8 +1,9 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.bindInvocationContext = exports.wrapInMetrics = exports.getAppContext = exports.__getRuntime = void 0;
const errors_1 = require("./errors");
+const node_fetch_1 = require("node-fetch");
const ari_1 = require("./ari");
function __getRuntime() {
const runtime = global.__forge_runtime__;
if (!runtime) {
@@ -43,8 +44,9 @@
}
catch (e) {
const undiciError = global.__forge_undici_error__;
if (e instanceof errors_1.ProxyRequestError ||
+ e instanceof node_fetch_1.FetchError ||
(undiciError && typeof undiciError === 'function' && e instanceof undiciError)) {
success = false;
}
throw e;