@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
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as AthenaJsonValue, a as AthenaGatewayCallOptions, g as AthenaJsonObject, j as AthenaRpcCallOptions, b as AthenaGatewayConnectionOptions, c as AthenaGatewayConnectionResult, t as AthenaFetchPayload, u as AthenaGatewayResponse, v as AthenaInsertPayload, w as AthenaUpdatePayload, s as AthenaDeletePayload, n as AthenaRpcPayload, z as AthenaQueryPayload, x as AthenaGatewayEndpointPath, y as AthenaGatewayMethod, C as AthenaGatewayBaseOptions, D as AthenaConditionValue, E as AthenaConditionArrayValue, F as AthenaGatewayCondition, G as AthenaSortBy, k as AthenaRpcFilter, o as BackendConfig, p as BackendType, e as AthenaGatewayErrorDetails, A as AthenaConditionCastType, H as AthenaConditionOperator } from './types-
|
|
2
|
-
import { A as AthenaModelTarget, n as RowOf, a as InsertOf, U as UpdateOf, R as RegistryDef, D as DatabaseDef, o as SchemaDef, r as AnyModelDef, j as ModelDef, m as ModelRelationMetadata } from './types-
|
|
1
|
+
import { i as AthenaJsonValue, a as AthenaGatewayCallOptions, g as AthenaJsonObject, j as AthenaRpcCallOptions, b as AthenaGatewayConnectionOptions, c as AthenaGatewayConnectionResult, t as AthenaFetchPayload, u as AthenaGatewayResponse, v as AthenaInsertPayload, w as AthenaUpdatePayload, s as AthenaDeletePayload, n as AthenaRpcPayload, z as AthenaQueryPayload, x as AthenaGatewayEndpointPath, y as AthenaGatewayMethod, C as AthenaGatewayBaseOptions, D as AthenaConditionValue, E as AthenaConditionArrayValue, F as AthenaGatewayCondition, G as AthenaSortBy, k as AthenaRpcFilter, o as BackendConfig, p as BackendType, e as AthenaGatewayErrorDetails, A as AthenaConditionCastType, H as AthenaConditionOperator } from './types-BRUHGXo2.cjs';
|
|
2
|
+
import { A as AthenaModelTarget, n as RowOf, a as InsertOf, U as UpdateOf, R as RegistryDef, D as DatabaseDef, o as SchemaDef, r as AnyModelDef, j as ModelDef, m as ModelRelationMetadata } from './types-Bez4HSbI.cjs';
|
|
3
3
|
|
|
4
4
|
type AthenaAuthMethod = 'GET' | 'POST';
|
|
5
5
|
type AthenaAuthCredentials = 'omit' | 'same-origin' | 'include';
|
|
@@ -3732,7 +3732,7 @@ interface AthenaRequestOptions {
|
|
|
3732
3732
|
path?: string;
|
|
3733
3733
|
method?: AthenaRequestMethod;
|
|
3734
3734
|
headers?: Record<string, string>;
|
|
3735
|
-
/** Per-request override for `apikey` / `x-api-key`. */
|
|
3735
|
+
/** Per-request override for `apikey` / `x-api-key` / `X-Api-Key`. */
|
|
3736
3736
|
apiKey?: string | null;
|
|
3737
3737
|
/** Per-request override for `X-Athena-Key` only. */
|
|
3738
3738
|
athenaKey?: string | null;
|
|
@@ -3998,7 +3998,7 @@ interface AthenaCreateClientOptions {
|
|
|
3998
3998
|
pgUri?: string | null | undefined;
|
|
3999
3999
|
/** JDBC/PostgreSQL URI mirrored to `x-athena-jdbc-url` and `x-jdbc-url`. */
|
|
4000
4000
|
jdbcUrl?: string | null | undefined;
|
|
4001
|
-
/** Client-wide override for `X-Athena-Key` while `key` continues to set `apikey` / `x-api-key`. */
|
|
4001
|
+
/** Client-wide override for `X-Athena-Key` while `key` continues to set `apikey` / `x-api-key` / `X-Api-Key`. */
|
|
4002
4002
|
athenaKey?: string | null | undefined;
|
|
4003
4003
|
backend?: BackendConfig | BackendType;
|
|
4004
4004
|
db?: AthenaCreateClientServiceUrlConfig;
|
|
@@ -4096,7 +4096,7 @@ interface AthenaClientBuilder<StorageEnabled extends boolean = false, TStrict ex
|
|
|
4096
4096
|
pgUri(pgUri: string | null | undefined): AthenaClientBuilder<StorageEnabled, TStrict>;
|
|
4097
4097
|
/** Forward a JDBC/PostgreSQL URI to compatibility JDBC headers. */
|
|
4098
4098
|
jdbcUrl(jdbcUrl: string | null | undefined): AthenaClientBuilder<StorageEnabled, TStrict>;
|
|
4099
|
-
/** Override `X-Athena-Key` for this client while `key()` sets `apikey` / `x-api-key`. */
|
|
4099
|
+
/** Override `X-Athena-Key` for this client while `key()` sets `apikey` / `x-api-key` / `X-Api-Key`. */
|
|
4100
4100
|
athenaKey(athenaKey: string | null | undefined): AthenaClientBuilder<StorageEnabled, TStrict>;
|
|
4101
4101
|
/** Configure Athena Auth client behavior for `client.auth.*` methods. */
|
|
4102
4102
|
auth(config: AthenaCreateClientAuthOptions): AthenaClientBuilder<StorageEnabled, TStrict>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as AthenaJsonValue, a as AthenaGatewayCallOptions, g as AthenaJsonObject, j as AthenaRpcCallOptions, b as AthenaGatewayConnectionOptions, c as AthenaGatewayConnectionResult, t as AthenaFetchPayload, u as AthenaGatewayResponse, v as AthenaInsertPayload, w as AthenaUpdatePayload, s as AthenaDeletePayload, n as AthenaRpcPayload, z as AthenaQueryPayload, x as AthenaGatewayEndpointPath, y as AthenaGatewayMethod, C as AthenaGatewayBaseOptions, D as AthenaConditionValue, E as AthenaConditionArrayValue, F as AthenaGatewayCondition, G as AthenaSortBy, k as AthenaRpcFilter, o as BackendConfig, p as BackendType, e as AthenaGatewayErrorDetails, A as AthenaConditionCastType, H as AthenaConditionOperator } from './types-
|
|
2
|
-
import { A as AthenaModelTarget, n as RowOf, a as InsertOf, U as UpdateOf, R as RegistryDef, D as DatabaseDef, o as SchemaDef, r as AnyModelDef, j as ModelDef, m as ModelRelationMetadata } from './types-
|
|
1
|
+
import { i as AthenaJsonValue, a as AthenaGatewayCallOptions, g as AthenaJsonObject, j as AthenaRpcCallOptions, b as AthenaGatewayConnectionOptions, c as AthenaGatewayConnectionResult, t as AthenaFetchPayload, u as AthenaGatewayResponse, v as AthenaInsertPayload, w as AthenaUpdatePayload, s as AthenaDeletePayload, n as AthenaRpcPayload, z as AthenaQueryPayload, x as AthenaGatewayEndpointPath, y as AthenaGatewayMethod, C as AthenaGatewayBaseOptions, D as AthenaConditionValue, E as AthenaConditionArrayValue, F as AthenaGatewayCondition, G as AthenaSortBy, k as AthenaRpcFilter, o as BackendConfig, p as BackendType, e as AthenaGatewayErrorDetails, A as AthenaConditionCastType, H as AthenaConditionOperator } from './types-BRUHGXo2.js';
|
|
2
|
+
import { A as AthenaModelTarget, n as RowOf, a as InsertOf, U as UpdateOf, R as RegistryDef, D as DatabaseDef, o as SchemaDef, r as AnyModelDef, j as ModelDef, m as ModelRelationMetadata } from './types-kPaHUqUa.js';
|
|
3
3
|
|
|
4
4
|
type AthenaAuthMethod = 'GET' | 'POST';
|
|
5
5
|
type AthenaAuthCredentials = 'omit' | 'same-origin' | 'include';
|
|
@@ -3732,7 +3732,7 @@ interface AthenaRequestOptions {
|
|
|
3732
3732
|
path?: string;
|
|
3733
3733
|
method?: AthenaRequestMethod;
|
|
3734
3734
|
headers?: Record<string, string>;
|
|
3735
|
-
/** Per-request override for `apikey` / `x-api-key`. */
|
|
3735
|
+
/** Per-request override for `apikey` / `x-api-key` / `X-Api-Key`. */
|
|
3736
3736
|
apiKey?: string | null;
|
|
3737
3737
|
/** Per-request override for `X-Athena-Key` only. */
|
|
3738
3738
|
athenaKey?: string | null;
|
|
@@ -3998,7 +3998,7 @@ interface AthenaCreateClientOptions {
|
|
|
3998
3998
|
pgUri?: string | null | undefined;
|
|
3999
3999
|
/** JDBC/PostgreSQL URI mirrored to `x-athena-jdbc-url` and `x-jdbc-url`. */
|
|
4000
4000
|
jdbcUrl?: string | null | undefined;
|
|
4001
|
-
/** Client-wide override for `X-Athena-Key` while `key` continues to set `apikey` / `x-api-key`. */
|
|
4001
|
+
/** Client-wide override for `X-Athena-Key` while `key` continues to set `apikey` / `x-api-key` / `X-Api-Key`. */
|
|
4002
4002
|
athenaKey?: string | null | undefined;
|
|
4003
4003
|
backend?: BackendConfig | BackendType;
|
|
4004
4004
|
db?: AthenaCreateClientServiceUrlConfig;
|
|
@@ -4096,7 +4096,7 @@ interface AthenaClientBuilder<StorageEnabled extends boolean = false, TStrict ex
|
|
|
4096
4096
|
pgUri(pgUri: string | null | undefined): AthenaClientBuilder<StorageEnabled, TStrict>;
|
|
4097
4097
|
/** Forward a JDBC/PostgreSQL URI to compatibility JDBC headers. */
|
|
4098
4098
|
jdbcUrl(jdbcUrl: string | null | undefined): AthenaClientBuilder<StorageEnabled, TStrict>;
|
|
4099
|
-
/** Override `X-Athena-Key` for this client while `key()` sets `apikey` / `x-api-key`. */
|
|
4099
|
+
/** Override `X-Athena-Key` for this client while `key()` sets `apikey` / `x-api-key` / `X-Api-Key`. */
|
|
4100
4100
|
athenaKey(athenaKey: string | null | undefined): AthenaClientBuilder<StorageEnabled, TStrict>;
|
|
4101
4101
|
/** Configure Athena Auth client behavior for `client.auth.*` methods. */
|
|
4102
4102
|
auth(config: AthenaCreateClientAuthOptions): AthenaClientBuilder<StorageEnabled, TStrict>;
|
package/dist/index.cjs
CHANGED
|
@@ -806,7 +806,7 @@ var getCookieCache = async (request2, config) => {
|
|
|
806
806
|
|
|
807
807
|
// src/utils/athena-request-headers.ts
|
|
808
808
|
var NO_CACHE_HEADER_VALUE = "no-cache";
|
|
809
|
-
var API_KEY_HEADER_CANDIDATES = ["x-api-key", "apikey"];
|
|
809
|
+
var API_KEY_HEADER_CANDIDATES = ["X-Api-Key", "x-api-key", "apikey"];
|
|
810
810
|
var ATHENA_KEY_HEADER_CANDIDATES = ["X-Athena-Key", "x-athena-key"];
|
|
811
811
|
var SESSION_TOKEN_HEADER_CANDIDATES = ["X-Athena-Auth-Session-Token"];
|
|
812
812
|
var BEARER_MIRROR_HEADER_CANDIDATES = ["X-Athena-Auth-Bearer-Token"];
|
|
@@ -912,9 +912,12 @@ function applyAthenaApiKeyHeaders(headers, apiKey, athenaKey) {
|
|
|
912
912
|
if (!hasHeaderIgnoreCase(headers, "apikey")) {
|
|
913
913
|
headers.apikey = apiKey;
|
|
914
914
|
}
|
|
915
|
-
if (!
|
|
915
|
+
if (!Object.hasOwn(headers, "x-api-key")) {
|
|
916
916
|
headers["x-api-key"] = apiKey;
|
|
917
917
|
}
|
|
918
|
+
if (!Object.hasOwn(headers, "X-Api-Key")) {
|
|
919
|
+
headers["X-Api-Key"] = apiKey;
|
|
920
|
+
}
|
|
918
921
|
}
|
|
919
922
|
const resolvedAthenaKey = normalizeHeaderValue(athenaKey) ?? normalizeHeaderValue(apiKey);
|
|
920
923
|
if (resolvedAthenaKey && !hasHeaderIgnoreCase(headers, "X-Athena-Key")) {
|
|
@@ -1041,7 +1044,7 @@ function buildAthenaRequestHeaders(input) {
|
|
|
1041
1044
|
|
|
1042
1045
|
// package.json
|
|
1043
1046
|
var package_default = {
|
|
1044
|
-
version: "2.12.
|
|
1047
|
+
version: "2.12.1"
|
|
1045
1048
|
};
|
|
1046
1049
|
|
|
1047
1050
|
// src/sdk-version.ts
|