@aui.io/aui-client 1.2.25 → 1.2.26
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/cjs/Client.js +2 -2
- package/dist/cjs/core/websocket/ws.js +2 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/core/websocket/ws.mjs +2 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
package/dist/cjs/Client.js
CHANGED
|
@@ -45,8 +45,8 @@ class ApolloClient {
|
|
|
45
45
|
"x-network-api-key": _options === null || _options === void 0 ? void 0 : _options.networkApiKey,
|
|
46
46
|
"X-Fern-Language": "JavaScript",
|
|
47
47
|
"X-Fern-SDK-Name": "@aui.io/aui-client",
|
|
48
|
-
"X-Fern-SDK-Version": "1.2.
|
|
49
|
-
"User-Agent": "@aui.io/aui-client/1.2.
|
|
48
|
+
"X-Fern-SDK-Version": "1.2.26",
|
|
49
|
+
"User-Agent": "@aui.io/aui-client/1.2.26",
|
|
50
50
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
51
51
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
52
52
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -377,10 +377,10 @@ class ReconnectingWebSocket {
|
|
|
377
377
|
if (isBrowser) {
|
|
378
378
|
// Browser: Can only pass URL and optionally protocols (string/array)
|
|
379
379
|
// Add API key to URL as query parameter for browser authentication
|
|
380
|
-
//
|
|
380
|
+
// Backend accepts 'network_api_key' query param (without x- prefix)
|
|
381
381
|
if (this._headers && this._headers["x-network-api-key"]) {
|
|
382
382
|
const separator = url.includes("?") ? "&" : "?";
|
|
383
|
-
url = `${url}${separator}
|
|
383
|
+
url = `${url}${separator}network_api_key=${encodeURIComponent(this._headers["x-network-api-key"])}`;
|
|
384
384
|
}
|
|
385
385
|
// FIX: Don't pass empty protocols array
|
|
386
386
|
if (this._protocols && this._protocols.length > 0) {
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.2.
|
|
1
|
+
export declare const SDK_VERSION = "1.2.26";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -9,8 +9,8 @@ export class ApolloClient {
|
|
|
9
9
|
"x-network-api-key": _options === null || _options === void 0 ? void 0 : _options.networkApiKey,
|
|
10
10
|
"X-Fern-Language": "JavaScript",
|
|
11
11
|
"X-Fern-SDK-Name": "@aui.io/aui-client",
|
|
12
|
-
"X-Fern-SDK-Version": "1.2.
|
|
13
|
-
"User-Agent": "@aui.io/aui-client/1.2.
|
|
12
|
+
"X-Fern-SDK-Version": "1.2.26",
|
|
13
|
+
"User-Agent": "@aui.io/aui-client/1.2.26",
|
|
14
14
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
15
15
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
16
16
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -341,10 +341,10 @@ export class ReconnectingWebSocket {
|
|
|
341
341
|
if (isBrowser) {
|
|
342
342
|
// Browser: Can only pass URL and optionally protocols (string/array)
|
|
343
343
|
// Add API key to URL as query parameter for browser authentication
|
|
344
|
-
//
|
|
344
|
+
// Backend accepts 'network_api_key' query param (without x- prefix)
|
|
345
345
|
if (this._headers && this._headers["x-network-api-key"]) {
|
|
346
346
|
const separator = url.includes("?") ? "&" : "?";
|
|
347
|
-
url = `${url}${separator}
|
|
347
|
+
url = `${url}${separator}network_api_key=${encodeURIComponent(this._headers["x-network-api-key"])}`;
|
|
348
348
|
}
|
|
349
349
|
// FIX: Don't pass empty protocols array
|
|
350
350
|
if (this._protocols && this._protocols.length > 0) {
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.2.
|
|
1
|
+
export declare const SDK_VERSION = "1.2.26";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.2.
|
|
1
|
+
export const SDK_VERSION = "1.2.26";
|