@imtbl/sdk 1.7.1 → 1.7.2
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 +63 -63
- package/dist/checkout.d.ts +11 -0
- package/dist/checkout.js +10 -8
- 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 +30 -13
- package/dist/index.d.ts +11 -0
- package/dist/index.js +30 -13
- package/dist/orderbook.js +4 -3
- package/dist/passport.js +24 -8
- package/dist/x.js +5 -4
- package/package.json +1 -1
package/dist/blockchain_data.js
CHANGED
|
@@ -4552,7 +4552,7 @@ const storeDetail = (key, value) => {
|
|
|
4552
4552
|
};
|
|
4553
4553
|
setItem(Store.RUNTIME, RUNTIME_DETAILS);
|
|
4554
4554
|
};
|
|
4555
|
-
const getDetail = (key) => {
|
|
4555
|
+
const getDetail$1 = (key) => {
|
|
4556
4556
|
// Handle the scenario where detail is a falsy value
|
|
4557
4557
|
if (RUNTIME_DETAILS[key] === undefined) {
|
|
4558
4558
|
return undefined;
|
|
@@ -4584,7 +4584,7 @@ const flattenProperties = (properties) => {
|
|
|
4584
4584
|
};
|
|
4585
4585
|
|
|
4586
4586
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
4587
|
-
const SDK_VERSION = '1.7.
|
|
4587
|
+
const SDK_VERSION = '1.7.2';
|
|
4588
4588
|
const getReferrer = () => {
|
|
4589
4589
|
if (isNode()) {
|
|
4590
4590
|
return '';
|
|
@@ -4627,7 +4627,7 @@ const initialise = async () => {
|
|
|
4627
4627
|
initialised = true;
|
|
4628
4628
|
try {
|
|
4629
4629
|
const runtimeDetails = flattenProperties(getRuntimeDetails());
|
|
4630
|
-
const existingRuntimeId = getDetail(Detail.RUNTIME_ID);
|
|
4630
|
+
const existingRuntimeId = getDetail$1(Detail.RUNTIME_ID);
|
|
4631
4631
|
const body = {
|
|
4632
4632
|
version: 1,
|
|
4633
4633
|
data: {
|
|
@@ -4759,6 +4759,7 @@ const setPublishableApiKeyFn = (publishableApiKey) => {
|
|
|
4759
4759
|
storeDetail(Detail.PUBLISHABLE_API_KEY, publishableApiKey);
|
|
4760
4760
|
};
|
|
4761
4761
|
errorBoundary(getGlobalisedValue('setPublishableApiKey', setPublishableApiKeyFn));
|
|
4762
|
+
errorBoundary(getGlobalisedValue('getDetail', getDetail$1));
|
|
4762
4763
|
|
|
4763
4764
|
var Environment;
|
|
4764
4765
|
(function (Environment) {
|
|
@@ -4785,7 +4786,7 @@ class APIError extends Error {
|
|
|
4785
4786
|
|
|
4786
4787
|
/* eslint-disable implicit-arrow-linebreak */
|
|
4787
4788
|
const defaultHeaders = {
|
|
4788
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.7.
|
|
4789
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.7.2',
|
|
4789
4790
|
};
|
|
4790
4791
|
/**
|
|
4791
4792
|
* createAPIConfiguration to create a custom Configuration
|