@basis-theory/basis-theory-js 4.20.0 → 4.21.0

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/BasisTheory.js CHANGED
@@ -71,7 +71,7 @@ class BasisTheory {
71
71
  baseUrlObject.protocol = 'https';
72
72
  }
73
73
 
74
- baseUrl = baseUrlObject.toString().replace(/\/$/u, '');
74
+ baseUrl = `${baseUrlObject.toString().replace(/\/$/u, '')}/`;
75
75
  } catch {
76
76
  throw new Error('Invalid format for the given API base url.');
77
77
  }
@@ -28,7 +28,7 @@ const DEFAULT_ELEMENTS_BASE_URL = `https://${"js.basistheory.com/hosted-elements
28
28
  exports.DEFAULT_ELEMENTS_BASE_URL = DEFAULT_ELEMENTS_BASE_URL;
29
29
  const DD_TOKEN = "pub5f53501515584007899577554c4aeda6";
30
30
  exports.DD_TOKEN = DD_TOKEN;
31
- const DD_GIT_SHA = "82687839b3e74ee9466184449c528d4f323b7c1f";
31
+ const DD_GIT_SHA = "4fe9c4a1cdb6e43934ba20dcc12b4587b9af8289";
32
32
  exports.DD_GIT_SHA = DD_GIT_SHA;
33
33
  const CLIENT_BASE_PATHS = {
34
34
  tokens: 'tokens',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basis-theory/basis-theory-js",
3
- "version": "4.20.0",
3
+ "version": "4.21.0",
4
4
  "repository": "https://github.com/Basis-Theory/basis-theory-js",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -8,6 +8,7 @@ interface ElementInternalOptions {
8
8
  baseUrl: string;
9
9
  type: ElementType;
10
10
  useNgApi: boolean | undefined;
11
+ useSameOriginApi: boolean | undefined;
11
12
  disableTelemetry?: boolean | undefined;
12
13
  }
13
14
  declare enum InputMode {