@chatsystem/client 1.1.51 → 1.1.52
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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -17574,7 +17574,7 @@ function ng(e, {
|
|
|
17574
17574
|
class Fn {
|
|
17575
17575
|
constructor() {
|
|
17576
17576
|
}
|
|
17577
|
-
static getApiUrl = () => "https://www.api.chatsystem.ai";
|
|
17577
|
+
static getApiUrl = () => typeof document < "u" && new URL(document.URL)?.hostname.includes("localhost") ? "http://localhost:3001" : "https://www.api.chatsystem.ai";
|
|
17578
17578
|
static getHeaders = ({ contentType: t = "text/plain" }) => ({
|
|
17579
17579
|
"Content-Type": t
|
|
17580
17580
|
});
|