@imtbl/sdk 1.6.1 → 1.7.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/dist/blockchain_data.js +5 -4
- package/dist/browser/checkout/sdk.js +7 -7
- package/dist/browser/checkout/widgets.js +62 -62
- package/dist/checkout.d.ts +2 -0
- package/dist/checkout.js +18 -9
- package/dist/config.js +4 -3
- package/dist/index.browser.js +13 -13
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +363 -358
- package/dist/index.d.ts +2 -0
- package/dist/index.js +363 -358
- package/dist/orderbook.js +4 -3
- package/dist/passport.d.ts +1 -0
- package/dist/passport.js +386 -389
- package/dist/x.js +5 -4
- package/package.json +1 -1
package/dist/x.js
CHANGED
|
@@ -104,7 +104,7 @@ const storeDetail = (key, value) => {
|
|
|
104
104
|
};
|
|
105
105
|
setItem(Store.RUNTIME, RUNTIME_DETAILS);
|
|
106
106
|
};
|
|
107
|
-
const getDetail = (key) => {
|
|
107
|
+
const getDetail$1 = (key) => {
|
|
108
108
|
// Handle the scenario where detail is a falsy value
|
|
109
109
|
if (RUNTIME_DETAILS[key] === undefined) {
|
|
110
110
|
return undefined;
|
|
@@ -136,7 +136,7 @@ const flattenProperties = (properties) => {
|
|
|
136
136
|
};
|
|
137
137
|
|
|
138
138
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
139
|
-
const SDK_VERSION = '1.
|
|
139
|
+
const SDK_VERSION = '1.7.0';
|
|
140
140
|
const getReferrer = () => {
|
|
141
141
|
if (isNode()) {
|
|
142
142
|
return '';
|
|
@@ -179,7 +179,7 @@ const initialise = async () => {
|
|
|
179
179
|
initialised = true;
|
|
180
180
|
try {
|
|
181
181
|
const runtimeDetails = flattenProperties(getRuntimeDetails());
|
|
182
|
-
const existingRuntimeId = getDetail(Detail.RUNTIME_ID);
|
|
182
|
+
const existingRuntimeId = getDetail$1(Detail.RUNTIME_ID);
|
|
183
183
|
const body = {
|
|
184
184
|
version: 1,
|
|
185
185
|
data: {
|
|
@@ -311,6 +311,7 @@ const setPublishableApiKeyFn = (publishableApiKey) => {
|
|
|
311
311
|
storeDetail(Detail.PUBLISHABLE_API_KEY, publishableApiKey);
|
|
312
312
|
};
|
|
313
313
|
errorBoundary(getGlobalisedValue('setPublishableApiKey', setPublishableApiKeyFn));
|
|
314
|
+
errorBoundary(getGlobalisedValue('getDetail', getDetail$1));
|
|
314
315
|
|
|
315
316
|
var Environment;
|
|
316
317
|
(function (Environment) {
|
|
@@ -327,7 +328,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
327
328
|
chainID,
|
|
328
329
|
coreContractAddress,
|
|
329
330
|
registrationContractAddress,
|
|
330
|
-
sdkVersion: 'ts-immutable-sdk-1.
|
|
331
|
+
sdkVersion: 'ts-immutable-sdk-1.7.0',
|
|
331
332
|
});
|
|
332
333
|
/**
|
|
333
334
|
* Sets `sdkVersion` at the time of build
|
package/package.json
CHANGED