@stackup-fi/sdk 1.0.13 → 1.0.14

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.
@@ -8,7 +8,7 @@ export class StackupCheckout {
8
8
  constructor(sessionId, options) {
9
9
  this.sessionId = sessionId;
10
10
  this.options = options;
11
- this.origin = options?.baseUrl ?? window.location.origin;
11
+ this.origin = process.env.STACKUP_BASE_URL ?? window.location.origin;
12
12
  }
13
13
  mount(selector) {
14
14
  if (this.iframe)
@@ -5,7 +5,6 @@ export interface CheckoutTheme {
5
5
  font?: string;
6
6
  }
7
7
  export interface CheckoutOptions {
8
- baseUrl?: string;
9
8
  theme?: Partial<CheckoutTheme>;
10
9
  }
11
10
  export interface CompleteEvent {
package/dist/index.d.ts CHANGED
@@ -2,7 +2,6 @@ export * from "./client.js";
2
2
  export * from "./notify/notify.js";
3
3
  export interface Options {
4
4
  accessToken: string;
5
- baseUrl?: string;
6
5
  }
7
6
  export declare function createStackup(options: Options): {
8
7
  client: import("./client.js").StackupClient;
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ export function createStackup(options) {
6
6
  headers: {
7
7
  Authorization: `Bearer ${options.accessToken}`,
8
8
  },
9
- baseUrl: options.baseUrl ?? process.env.STACKUP_BASE_URL ?? "https://api.stackup.finance",
9
+ baseUrl: process.env.STACKUP_BASE_URL ?? "https://api.stackup.finance",
10
10
  });
11
11
  return {
12
12
  client,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackup-fi/sdk",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "exports": {