@fat-zebra/sdk 2.1.0 → 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.
@@ -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: 47f460a7ca4b047b2113c95bce2349aebd7c2ab4 */
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 = '47f460a7ca4b047b2113c95bce2349aebd7c2ab4';
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",
3
+ "version": "2.1.1-beta.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {