@fat-zebra/sdk 2.1.0-beta.3 → 2.1.1-beta.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/CHANGELOG.md CHANGED
@@ -5,7 +5,7 @@ All notable changes to the Fat Zebra JS SDK will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
- ## [2.1.0] - 2026-06-02
8
+ ## [2.1.0] - 2026-06-03
9
9
 
10
10
  > **Upgrade recommended.** This release fixes a critical issue where the React SDK could silently fall back to the legacy 3DS API, which is being decommissioned. Merchants should upgrade to avoid potential production failures.
11
11
 
@@ -6,6 +6,7 @@ export type LogOptions<A extends unknown[]> = {
6
6
  };
7
7
  type LoggerConfig = {
8
8
  baseUrl?: string;
9
+ defaultPath?: string;
9
10
  };
10
11
  export declare function configureLogger(config: LoggerConfig): void;
11
12
  export declare function instrumentFunction<A extends unknown[], R>(methodName: string, fn: (...args: A) => R, opts?: LogOptions<A>): (...args: A) => R;
@@ -6,8 +6,10 @@ export function configureLogger(config) {
6
6
  loggerConfig = config;
7
7
  }
8
8
  function defaultEndpoint() {
9
+ var _a;
10
+ const path = (_a = loggerConfig.defaultPath) !== null && _a !== void 0 ? _a : '/log_sdk';
9
11
  return loggerConfig.baseUrl
10
- ? `${loggerConfig.baseUrl}/log_sdk`
12
+ ? `${loggerConfig.baseUrl}${path}`
11
13
  : `${process.env.PAYNOW_BASE_URL}/log_sdk`;
12
14
  }
13
15
  function sendLog(endpoint, payload) {
package/dist/version.js CHANGED
@@ -1,6 +1,6 @@
1
- /*! fatzebra-sdk-commit: 5bc4f3388b7a97acd62478a9bfdfa340a80c3847 */
1
+ /*! fatzebra-sdk-commit: c1b695a332fc0d0aa1c735155290004e846d08bd */
2
2
  export const version = '1.5.9';
3
3
  // Placeholder replaced at build time by .github/scripts/stamp-version.js with the
4
4
  // deployed commit hash (`git rev-parse HEAD`). Stays as the placeholder for builds
5
5
  // that don't run the stamp step (e.g. local/package builds).
6
- export const commitHash = '5bc4f3388b7a97acd62478a9bfdfa340a80c3847';
6
+ export const commitHash = 'c1b695a332fc0d0aa1c735155290004e846d08bd';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fat-zebra/sdk",
3
- "version": "2.1.0-beta.3",
3
+ "version": "2.1.1-beta.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {