@hautechai/sdk 2.1.0 → 2.2.0
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.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -10296,9 +10296,9 @@ import { decodeJwt } from "jose";
|
|
|
10296
10296
|
|
|
10297
10297
|
// src/config.ts
|
|
10298
10298
|
var getConfig = (options) => ({
|
|
10299
|
+
...options,
|
|
10299
10300
|
baseUrl: options.baseUrl ?? "https://api.hautech.ai",
|
|
10300
|
-
baseWsUrl: options.baseWsUrl ?? options.baseUrl ?? "https://api.hautech.ai"
|
|
10301
|
-
authToken: options.authToken
|
|
10301
|
+
baseWsUrl: options.baseWsUrl ?? options.baseUrl ?? "https://api.hautech.ai"
|
|
10302
10302
|
});
|
|
10303
10303
|
|
|
10304
10304
|
// src/api-utils.ts
|
|
@@ -14042,7 +14042,7 @@ var WsClient = class {
|
|
|
14042
14042
|
getSocket() {
|
|
14043
14043
|
if (!this.socket) {
|
|
14044
14044
|
this.socket = io(this.config.baseWsUrl, {
|
|
14045
|
-
|
|
14045
|
+
...this.config.wsConfig || {},
|
|
14046
14046
|
auth: (cb) => {
|
|
14047
14047
|
Promise.resolve(this.config.authToken()).then((token) => {
|
|
14048
14048
|
cb({
|