From c3316a46bf202baf0f3a71e7006668026f5a3e48 Mon Sep 17 00:00:00 2001 From: woodser Date: Sun, 29 Dec 2024 08:08:43 -0500 Subject: [PATCH] update dist --- dist/index.js | 14 ++++++++++++++ dist/index.js.map | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index a3d32bd7..d7ab8b79 100644 --- a/dist/index.js +++ b/dist/index.js @@ -18,6 +18,20 @@ var __importDefault = (this && this.__importDefault) || function (mod) { }; Object.defineProperty(exports, "__esModule", { value: true }); exports.HavenoUtils = exports.HavenoError = exports.HavenoClient = void 0; +try { + new XMLHttpRequest(); +} +catch { + const xhr = require('node-xmlhttprequest'); + //@ts-ignore + global.ProgressEvent = xhr.ProgressEvent; + //@ts-ignore + global.XMLHttpRequestEventTarget = xhr.XMLHttpRequestEventTarget; + //@ts-ignore + global.XMLHttpRequestUpload = xhr.XMLHttpRequestUpload; + //@ts-ignore + global.XMLHttpRequest = xhr.XMLHttpRequest; +} const HavenoClient_1 = __importDefault(require("./HavenoClient")); exports.HavenoClient = HavenoClient_1.default; const HavenoError_1 = __importDefault(require("./types/HavenoError")); diff --git a/dist/index.js.map b/dist/index.js.map index 3c8edc64..7f7b195f 100644 --- a/dist/index.js.map +++ b/dist/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,kEAA0C;AAIjC,uBAJF,sBAAY,CAIE;AAHrB,sEAA8C;AAIrC,sBAJF,qBAAW,CAIE;AAHpB,sEAA8C;AAIrC,sBAJF,qBAAW,CAIE;AACpB,qDAAmC;AACnC,mDAAiC"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,IAAI;IACA,IAAI,cAAc,EAAE,CAAC;CACxB;AACD,MAAM;IACF,MAAM,GAAG,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAE3C,YAAY;IACZ,MAAM,CAAC,aAAa,GAAG,GAAG,CAAC,aAAa,CAAC;IACzC,YAAY;IACZ,MAAM,CAAC,yBAAyB,GAAG,GAAG,CAAC,yBAAyB,CAAC;IACjE,YAAY;IACZ,MAAM,CAAC,oBAAoB,GAAG,GAAG,CAAC,oBAAoB,CAAC;IACvD,YAAY;IACZ,MAAM,CAAC,cAAc,GAAG,GAAG,CAAC,cAAc,CAAC;CAC9C;AAED,kEAA0C;AAIjC,uBAJF,sBAAY,CAIE;AAHrB,sEAA8C;AAIrC,sBAJF,qBAAW,CAIE;AAHpB,sEAA8C;AAIrC,sBAJF,qBAAW,CAIE;AACpB,qDAAmC;AACnC,mDAAiC"} \ No newline at end of file