@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.
- package/dist/eyepop.index.js +17 -0
- package/dist/eyepop.index.js.map +1 -1
- package/dist/eyepop.index.mjs +17 -0
- package/dist/eyepop.index.mjs.map +1 -1
- package/dist/eyepop.min.js +1 -1
- package/package.json +1 -1
package/dist/eyepop.index.js
CHANGED
|
@@ -9695,6 +9695,22 @@ if ("document" in globalThis && "implementation" in globalThis.document) {
|
|
|
9695
9695
|
}
|
|
9696
9696
|
}
|
|
9697
9697
|
createHttpClient = async () => {
|
|
9698
|
+
console.debug("EyePop: creating HttpClient in browser");
|
|
9699
|
+
return new HttpClient2();
|
|
9700
|
+
};
|
|
9701
|
+
}
|
|
9702
|
+
if (typeof navigator !== "undefined" && navigator.product === "ReactNative") {
|
|
9703
|
+
class HttpClient2 {
|
|
9704
|
+
constructor() {
|
|
9705
|
+
}
|
|
9706
|
+
async fetch(input, init) {
|
|
9707
|
+
return await fetch(input, init);
|
|
9708
|
+
}
|
|
9709
|
+
async close() {
|
|
9710
|
+
}
|
|
9711
|
+
}
|
|
9712
|
+
createHttpClient = async () => {
|
|
9713
|
+
console.debug("EyePop: creating HttpClient in ReactNative");
|
|
9698
9714
|
return new HttpClient2();
|
|
9699
9715
|
};
|
|
9700
9716
|
} else {
|
|
@@ -9712,6 +9728,7 @@ if ("document" in globalThis && "implementation" in globalThis.document) {
|
|
|
9712
9728
|
}
|
|
9713
9729
|
}
|
|
9714
9730
|
createHttpClient = async () => {
|
|
9731
|
+
console.debug("EyePop: creating HttpClient with undici agent in Node");
|
|
9715
9732
|
const undici = require("undici");
|
|
9716
9733
|
const agent = new undici.Agent({
|
|
9717
9734
|
keepAliveTimeout: 1e4,
|