@basis-theory/basis-theory-js 4.26.0 → 4.27.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/common/constants.js +1 -1
- package/elements/load.js +3 -3
- package/package.json +1 -1
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 = "9f1a922124544cd316d7a263f6ac3fa94448a8e7";
|
|
34
34
|
exports.DD_GIT_SHA = DD_GIT_SHA;
|
|
35
35
|
const CLIENT_BASE_PATHS = {
|
|
36
36
|
tokens: 'tokens',
|
package/elements/load.js
CHANGED
|
@@ -130,13 +130,13 @@ const loadScript = (url, retryCount) => new Promise((resolve, reject) => {
|
|
|
130
130
|
reject(new Error(_constants.ELEMENTS_SCRIPT_UNKNOWN_ERROR_MESSAGE));
|
|
131
131
|
return;
|
|
132
132
|
} catch (error) {
|
|
133
|
-
// fetch also failed
|
|
133
|
+
// fetch also failed to make the request; most likely a browser/network error
|
|
134
134
|
await _logging.logger.log.error('Second attempt failed to load elements script failed, fetch network error.', {
|
|
135
135
|
logType: 'elementsScriptFetchError',
|
|
136
136
|
logOrigin: 'loadScript',
|
|
137
137
|
retryCount,
|
|
138
138
|
fetchResult: 'error',
|
|
139
|
-
fetchError: error
|
|
139
|
+
fetchError: JSON.stringify(error !== null && error !== void 0 ? error : 'Unknown Error')
|
|
140
140
|
});
|
|
141
141
|
reject(new Error(_constants.ELEMENTS_SCRIPT_UNKNOWN_ERROR_MESSAGE));
|
|
142
142
|
return;
|
|
@@ -164,7 +164,7 @@ const loadElements = elementsClientUrl => {
|
|
|
164
164
|
return;
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
let url = `https://${"js.basistheory.com"}/elements`;
|
|
167
|
+
let url = `https://${"js.basistheory.com"}/web-elements/1.7.2/client/index.js`;
|
|
168
168
|
|
|
169
169
|
if (typeof elementsClientUrl !== 'undefined') {
|
|
170
170
|
try {
|