@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.
@@ -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.25",
49
- "User-Agent": "@aui.io/aui-client/1.2.25",
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
- // NOTE: Backend must also accept x-network-api-key from query params for this to work
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}x-network-api-key=${encodeURIComponent(this._headers["x-network-api-key"])}`;
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) {
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.2.25";
1
+ export declare const SDK_VERSION = "1.2.26";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.2.25";
4
+ exports.SDK_VERSION = "1.2.26";
@@ -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.25",
13
- "User-Agent": "@aui.io/aui-client/1.2.25",
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
- // NOTE: Backend must also accept x-network-api-key from query params for this to work
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}x-network-api-key=${encodeURIComponent(this._headers["x-network-api-key"])}`;
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) {
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.2.25";
1
+ export declare const SDK_VERSION = "1.2.26";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.2.25";
1
+ export const SDK_VERSION = "1.2.26";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aui.io/aui-client",
3
- "version": "1.2.25",
3
+ "version": "1.2.26",
4
4
  "private": false,
5
5
  "repository": "github:aui-io/aui-client-typescript",
6
6
  "type": "commonjs",