UNPKG

816 BJavaScriptView Raw
1// DOM Parser polyfill ---
2import { root } from "@hpcc-js/util";
3import { DOMParser } from "xmldom";
4root.DOMParser = DOMParser;
5// fetch polyfill ---
6import fetch from "node-fetch";
7if (typeof root.fetch === "undefined") {
8 root.fetch = fetch;
9 // eslint-disable-next-line @typescript-eslint/no-var-requires
10 var https = require("https");
11 root.fetch.__agent = new https.Agent({
12 rejectUnauthorized: false
13 });
14}
15// btoa polyfill ---
16import { Buffer } from "safe-buffer";
17if (typeof root.btoa === "undefined") {
18 root.btoa = function (str) {
19 return Buffer.from(str || "", "utf8").toString("base64");
20 };
21}
22export * from "./index-common";
23// Client Tools ---
24export * from "./clienttools/eclcc";
25export * from "./clienttools/eclMeta";
26//# sourceMappingURL=index.node.js.map
\No newline at end of file