@io-orkes/conductor-javascript 1.2.0-rc.3 → 1.2.0-rc.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/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -221,8 +221,14 @@ var require_fetchImplementation = __commonJS({
|
|
|
221
221
|
"use strict";
|
|
222
222
|
var fetchCatchDns2 = (init_fetchCatchDns2(), __toCommonJS(fetchCatchDns_exports)).fetchCatchDns;
|
|
223
223
|
var fetchImplementation = fetch;
|
|
224
|
-
var
|
|
225
|
-
|
|
224
|
+
var nodeFetchAvailable = false;
|
|
225
|
+
try {
|
|
226
|
+
require.resolve("node-fetch");
|
|
227
|
+
nodeFetchAvailable = true;
|
|
228
|
+
} catch (e) {
|
|
229
|
+
}
|
|
230
|
+
if (nodeFetchAvailable) {
|
|
231
|
+
const nodeFetch = require("node-fetch");
|
|
226
232
|
const nodeFetchWrapper = async (input, options = {}) => {
|
|
227
233
|
const res = await fetch(input.toString(), options);
|
|
228
234
|
return res;
|