@eyepop.ai/eyepop 1.11.0 → 1.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9633,6 +9633,22 @@ if ("document" in globalThis && "implementation" in globalThis.document) {
9633
9633
  }
9634
9634
  }
9635
9635
  createHttpClient = async () => {
9636
+ console.debug("EyePop: creating HttpClient in browser");
9637
+ return new HttpClient2();
9638
+ };
9639
+ }
9640
+ if (typeof navigator !== "undefined" && navigator.product === "ReactNative") {
9641
+ class HttpClient2 {
9642
+ constructor() {
9643
+ }
9644
+ async fetch(input, init) {
9645
+ return await fetch(input, init);
9646
+ }
9647
+ async close() {
9648
+ }
9649
+ }
9650
+ createHttpClient = async () => {
9651
+ console.debug("EyePop: creating HttpClient in ReactNative");
9636
9652
  return new HttpClient2();
9637
9653
  };
9638
9654
  } else {
@@ -9650,6 +9666,7 @@ if ("document" in globalThis && "implementation" in globalThis.document) {
9650
9666
  }
9651
9667
  }
9652
9668
  createHttpClient = async () => {
9669
+ console.debug("EyePop: creating HttpClient with undici agent in Node");
9653
9670
  const undici = __require("undici");
9654
9671
  const agent = new undici.Agent({
9655
9672
  keepAliveTimeout: 1e4,