1 |
|
2 | import { root } from "@hpcc-js/util";
|
3 | import { DOMParser } from "xmldom";
|
4 | root.DOMParser = DOMParser;
|
5 |
|
6 |
|
7 | import fetch from "node-fetch";
|
8 | if (typeof root.fetch === "undefined") {
|
9 | root.fetch = fetch;
|
10 |
|
11 |
|
12 | const https = require("https");
|
13 | root.fetch.__agent = new https.Agent({
|
14 | rejectUnauthorized: false
|
15 | });
|
16 | }
|
17 |
|
18 |
|
19 | import { Buffer } from "safe-buffer";
|
20 | if (typeof root.btoa === "undefined") {
|
21 | root.btoa = function (str: string) {
|
22 | return Buffer.from(str || "", "utf8").toString("base64");
|
23 | };
|
24 | }
|
25 |
|
26 | export * from "./index-common";
|
27 |
|
28 |
|
29 | export * from "./clienttools/eclcc";
|
30 | export * from "./clienttools/eclMeta";
|