Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// fetch polyfill ---
import fetch from "node-fetch";
if (typeof root.fetch === "undefined") {
root.fetch = fetch;
// tslint:disable-next-line: no-var-requires
const https = require("https");
root.fetch.__agent = new https.Agent({
rejectUnauthorized: false
});
}
// btoa polyfill ---
import { Buffer } from "safe-buffer";
if (typeof root.btoa === "undefined") {
root.btoa = function (str: string) {
return Buffer.from(str || "", "utf8").toString("base64");
};
}
export * from "./index-common";
// Client Tools ---
export * from "./clienttools/eclcc";
export * from "./clienttools/eclMeta";
// fetch polyfill ---
import fetch from "node-fetch";
if (typeof root.fetch === "undefined") {
root.fetch = fetch;
// tslint:disable-next-line: no-var-requires
const https = require("https");
root.fetch.__agent = new https.Agent({
rejectUnauthorized: false
});
}
// btoa polyfill ---
import { Buffer } from "safe-buffer";
if (typeof root.btoa === "undefined") {
root.btoa = function (str: string) {
return Buffer.from(str || "", "utf8").toString("base64");
};
}
export * from "./index-common";
// Client Tools ---
export * from "./clienttools/eclcc";
export * from "./clienttools/eclMeta";