@xylex-group/athena 2.12.0 → 2.12.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/README.md +1 -1
- package/dist/browser.cjs +6 -3
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +9 -9
- package/dist/browser.d.ts +9 -9
- package/dist/browser.js +6 -3
- package/dist/browser.js.map +1 -1
- package/dist/cli/index.cjs +6 -3
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.d.cts +4 -4
- package/dist/cli/index.d.ts +4 -4
- package/dist/cli/index.js +6 -3
- package/dist/cli/index.js.map +1 -1
- package/dist/{client-QUbAs7E8.d.ts → client-CMtx5P4D.d.cts} +5 -5
- package/dist/{client-C3x75Zgn.d.cts → client-Dre8H24u.d.ts} +5 -5
- package/dist/index.cjs +6 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/{model-form-Dm69I-oO.d.ts → model-form-CU0mWrF9.d.ts} +2 -2
- package/dist/{model-form-CD1uhWSh.d.cts → model-form-DfTi8-D1.d.cts} +2 -2
- package/dist/{module-CW3tWJ10.d.ts → module-DBGmbIuh.d.ts} +5 -5
- package/dist/{module-Cxcurfes.d.cts → module-GoijrBXV.d.cts} +5 -5
- package/dist/next/client.cjs +6 -3
- package/dist/next/client.cjs.map +1 -1
- package/dist/next/client.d.cts +4 -4
- package/dist/next/client.d.ts +4 -4
- package/dist/next/client.js +6 -3
- package/dist/next/client.js.map +1 -1
- package/dist/next/server.cjs +6 -3
- package/dist/next/server.cjs.map +1 -1
- package/dist/next/server.d.cts +4 -4
- package/dist/next/server.d.ts +4 -4
- package/dist/next/server.js +6 -3
- package/dist/next/server.js.map +1 -1
- package/dist/{pipeline-BAwb6Vzm.d.ts → pipeline-DrjU2vNA.d.ts} +1 -1
- package/dist/{pipeline-B14jVK7J.d.cts → pipeline-c7Gdm0qv.d.cts} +1 -1
- package/dist/react.cjs +6 -3
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +5 -5
- package/dist/react.d.ts +5 -5
- package/dist/react.js +6 -3
- package/dist/react.js.map +1 -1
- package/dist/{shared-C0wVICRv.d.cts → shared-DZSGAmXs.d.cts} +2 -2
- package/dist/{shared-0Kdc74lu.d.ts → shared-MMnVBBfy.d.ts} +2 -2
- package/dist/{types-DMOoYnPS.d.cts → types-BLizCLd1.d.cts} +2 -2
- package/dist/{types-CwJCPpLD.d.ts → types-BRUHGXo2.d.cts} +1 -1
- package/dist/{types-CwJCPpLD.d.cts → types-BRUHGXo2.d.ts} +1 -1
- package/dist/{types-Dr849HD6.d.cts → types-Bez4HSbI.d.cts} +1 -1
- package/dist/{types-BcVmPBP-.d.ts → types-DRRb0Fd0.d.ts} +2 -2
- package/dist/{types-Cq4-NoB4.d.ts → types-kPaHUqUa.d.ts} +1 -1
- package/dist/utils.cjs +5 -2
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.cts +2 -2
- package/dist/utils.d.ts +2 -2
- package/dist/utils.js +5 -2
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
package/dist/next/server.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { an as AthenaAuthSessionResponse, bI as AthenaClientSessionLike, cA as AthenaSdkClientWithStorage, cz as AthenaSdkClientWithAuth } from '../client-
|
|
2
|
-
import { A as AthenaAdapterBaseOptions, b as AthenaServerRequestOptions, a as AthenaAdapterExperimentalOptions } from '../shared-
|
|
3
|
-
import '../types-
|
|
4
|
-
import '../types-
|
|
1
|
+
import { an as AthenaAuthSessionResponse, bI as AthenaClientSessionLike, cA as AthenaSdkClientWithStorage, cz as AthenaSdkClientWithAuth } from '../client-CMtx5P4D.cjs';
|
|
2
|
+
import { A as AthenaAdapterBaseOptions, b as AthenaServerRequestOptions, a as AthenaAdapterExperimentalOptions } from '../shared-DZSGAmXs.cjs';
|
|
3
|
+
import '../types-BRUHGXo2.cjs';
|
|
4
|
+
import '../types-Bez4HSbI.cjs';
|
|
5
5
|
|
|
6
6
|
interface AthenaServerClientOptions extends AthenaAdapterBaseOptions, AthenaServerRequestOptions {
|
|
7
7
|
session?: AthenaClientSessionLike | AthenaAuthSessionResponse | null;
|
package/dist/next/server.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { an as AthenaAuthSessionResponse, bI as AthenaClientSessionLike, cA as AthenaSdkClientWithStorage, cz as AthenaSdkClientWithAuth } from '../client-
|
|
2
|
-
import { A as AthenaAdapterBaseOptions, b as AthenaServerRequestOptions, a as AthenaAdapterExperimentalOptions } from '../shared-
|
|
3
|
-
import '../types-
|
|
4
|
-
import '../types-
|
|
1
|
+
import { an as AthenaAuthSessionResponse, bI as AthenaClientSessionLike, cA as AthenaSdkClientWithStorage, cz as AthenaSdkClientWithAuth } from '../client-Dre8H24u.js';
|
|
2
|
+
import { A as AthenaAdapterBaseOptions, b as AthenaServerRequestOptions, a as AthenaAdapterExperimentalOptions } from '../shared-MMnVBBfy.js';
|
|
3
|
+
import '../types-BRUHGXo2.js';
|
|
4
|
+
import '../types-kPaHUqUa.js';
|
|
5
5
|
|
|
6
6
|
interface AthenaServerClientOptions extends AthenaAdapterBaseOptions, AthenaServerRequestOptions {
|
|
7
7
|
session?: AthenaClientSessionLike | AthenaAuthSessionResponse | null;
|
package/dist/next/server.js
CHANGED
|
@@ -160,7 +160,7 @@ var getSessionCookie = (request2, config) => {
|
|
|
160
160
|
|
|
161
161
|
// src/utils/athena-request-headers.ts
|
|
162
162
|
var NO_CACHE_HEADER_VALUE = "no-cache";
|
|
163
|
-
var API_KEY_HEADER_CANDIDATES = ["x-api-key", "apikey"];
|
|
163
|
+
var API_KEY_HEADER_CANDIDATES = ["X-Api-Key", "x-api-key", "apikey"];
|
|
164
164
|
var ATHENA_KEY_HEADER_CANDIDATES = ["X-Athena-Key", "x-athena-key"];
|
|
165
165
|
var SESSION_TOKEN_HEADER_CANDIDATES = ["X-Athena-Auth-Session-Token"];
|
|
166
166
|
var BEARER_MIRROR_HEADER_CANDIDATES = ["X-Athena-Auth-Bearer-Token"];
|
|
@@ -266,9 +266,12 @@ function applyAthenaApiKeyHeaders(headers, apiKey, athenaKey) {
|
|
|
266
266
|
if (!hasHeaderIgnoreCase(headers, "apikey")) {
|
|
267
267
|
headers.apikey = apiKey;
|
|
268
268
|
}
|
|
269
|
-
if (!
|
|
269
|
+
if (!Object.hasOwn(headers, "x-api-key")) {
|
|
270
270
|
headers["x-api-key"] = apiKey;
|
|
271
271
|
}
|
|
272
|
+
if (!Object.hasOwn(headers, "X-Api-Key")) {
|
|
273
|
+
headers["X-Api-Key"] = apiKey;
|
|
274
|
+
}
|
|
272
275
|
}
|
|
273
276
|
const resolvedAthenaKey = normalizeHeaderValue(athenaKey) ?? normalizeHeaderValue(apiKey);
|
|
274
277
|
if (resolvedAthenaKey && !hasHeaderIgnoreCase(headers, "X-Athena-Key")) {
|
|
@@ -395,7 +398,7 @@ function buildAthenaRequestHeaders(input) {
|
|
|
395
398
|
|
|
396
399
|
// package.json
|
|
397
400
|
var package_default = {
|
|
398
|
-
version: "2.12.
|
|
401
|
+
version: "2.12.1"
|
|
399
402
|
};
|
|
400
403
|
|
|
401
404
|
// src/sdk-version.ts
|