@basis-theory/basis-theory-js 4.24.0 → 4.25.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
|
@@ -202,7 +202,8 @@ class BasisTheory {
|
|
|
202
202
|
const elementsUseNgApi = this.initOptions.elementsUseNgApi || false;
|
|
203
203
|
const elementsUseSameOriginApi = this.initOptions.elementsUseSameOriginApi || false;
|
|
204
204
|
const disableTelemetry = this.initOptions.disableTelemetry || false;
|
|
205
|
-
|
|
205
|
+
const debug = this.initOptions.debug || false;
|
|
206
|
+
await elements.init(apiKey, elementsBaseUrl.toString().replace(/\/$/u, ''), elementsUseNgApi, elementsUseSameOriginApi, disableTelemetry, debug);
|
|
206
207
|
this.elements = elements;
|
|
207
208
|
} // these should be set by the init call only.
|
|
208
209
|
|
package/common/constants.js
CHANGED
|
@@ -30,7 +30,7 @@ const DEFAULT_ELEMENTS_BASE_URL = `https://${"js.basistheory.com/hosted-elements
|
|
|
30
30
|
exports.DEFAULT_ELEMENTS_BASE_URL = DEFAULT_ELEMENTS_BASE_URL;
|
|
31
31
|
const DD_TOKEN = "pub5f53501515584007899577554c4aeda6";
|
|
32
32
|
exports.DD_TOKEN = DD_TOKEN;
|
|
33
|
-
const DD_GIT_SHA = "
|
|
33
|
+
const DD_GIT_SHA = "222b9733abb65640b4868eb0ffb5d9f234a04026";
|
|
34
34
|
exports.DD_GIT_SHA = DD_GIT_SHA;
|
|
35
35
|
const CLIENT_BASE_PATHS = {
|
|
36
36
|
tokens: 'tokens',
|
package/package.json
CHANGED
|
@@ -59,7 +59,7 @@ interface BasisTheoryElements extends Tokenize {
|
|
|
59
59
|
createElement(type: 'cardVerificationCode', options: CreateCardVerificationCodeElementOptions): CardVerificationCodeElement;
|
|
60
60
|
}
|
|
61
61
|
interface BasisTheoryElementsInternal extends BasisTheoryElements {
|
|
62
|
-
init: (apiKey: string | undefined, elementsBaseUrl: string, elementsUseNgApi: boolean | undefined, elementsUseSameOriginApi: boolean | undefined, disableTelemetry: boolean | undefined) => Promise<BasisTheoryElements>;
|
|
62
|
+
init: (apiKey: string | undefined, elementsBaseUrl: string, elementsUseNgApi: boolean | undefined, elementsUseSameOriginApi: boolean | undefined, disableTelemetry: boolean | undefined, debug: boolean | undefined) => Promise<BasisTheoryElements>;
|
|
63
63
|
hasElement: (payload: unknown) => boolean;
|
|
64
64
|
client: HttpClient;
|
|
65
65
|
}
|