UNPKG

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