@imtbl/sdk 1.14.0-alpha → 1.14.0-alpha.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/dist/blockchain_data.js +2 -2
- package/dist/browser/checkout/sdk.js +4 -4
- package/dist/checkout.js +4 -4
- package/dist/config.js +1 -1
- package/dist/index.browser.js +4 -4
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +8 -8
- package/dist/index.js +9 -9
- package/dist/orderbook.js +1 -1
- package/dist/passport.js +4 -4
- package/dist/x.js +5 -5
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -181,7 +181,7 @@ const flattenProperties$1 = (properties) => {
|
|
|
181
181
|
};
|
|
182
182
|
|
|
183
183
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
184
|
-
const SDK_VERSION$1 = '1.14.0-alpha';
|
|
184
|
+
const SDK_VERSION$1 = '1.14.0-alpha.1';
|
|
185
185
|
const getReferrer$1 = () => {
|
|
186
186
|
if (isNode$1()) {
|
|
187
187
|
return '';
|
|
@@ -13557,7 +13557,7 @@ class MultiRollupApiClients {
|
|
|
13557
13557
|
}
|
|
13558
13558
|
|
|
13559
13559
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
13560
|
-
const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.14.0-alpha' };
|
|
13560
|
+
const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.14.0-alpha.1' };
|
|
13561
13561
|
const createConfig$1 = ({ basePath, headers, }) => {
|
|
13562
13562
|
if (!basePath.trim()) {
|
|
13563
13563
|
throw Error('basePath can not be empty');
|
|
@@ -13629,7 +13629,7 @@ class APIError extends Error {
|
|
|
13629
13629
|
|
|
13630
13630
|
/* eslint-disable implicit-arrow-linebreak */
|
|
13631
13631
|
const defaultHeaders$1 = {
|
|
13632
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.14.0-alpha',
|
|
13632
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.14.0-alpha.1',
|
|
13633
13633
|
};
|
|
13634
13634
|
/**
|
|
13635
13635
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -14105,7 +14105,7 @@ var blockchain_data = /*#__PURE__*/Object.freeze({
|
|
|
14105
14105
|
|
|
14106
14106
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
14107
14107
|
const ApiConfiguration = index$2.Configuration;
|
|
14108
|
-
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.14.0-alpha' };
|
|
14108
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.14.0-alpha.1' };
|
|
14109
14109
|
/**
|
|
14110
14110
|
* @dev Copied from Core SDK as a convenience for migrating away from Core SDK
|
|
14111
14111
|
*/
|
|
@@ -14164,7 +14164,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
14164
14164
|
chainID,
|
|
14165
14165
|
coreContractAddress,
|
|
14166
14166
|
registrationContractAddress,
|
|
14167
|
-
sdkVersion: 'ts-immutable-sdk-1.14.0-alpha',
|
|
14167
|
+
sdkVersion: 'ts-immutable-sdk-1.14.0-alpha.1',
|
|
14168
14168
|
});
|
|
14169
14169
|
/**
|
|
14170
14170
|
* Sets `sdkVersion` at the time of build
|
|
@@ -45468,7 +45468,7 @@ const flattenProperties = (properties) => {
|
|
|
45468
45468
|
};
|
|
45469
45469
|
|
|
45470
45470
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
45471
|
-
const SDK_VERSION = '1.14.0-alpha';
|
|
45471
|
+
const SDK_VERSION = '1.14.0-alpha.1';
|
|
45472
45472
|
const getReferrer = () => {
|
|
45473
45473
|
if (isNode()) {
|
|
45474
45474
|
return '';
|
|
@@ -50648,7 +50648,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
|
|
|
50648
50648
|
maxPriorityFeePerGas: ethers.BigNumber.from(10e9),
|
|
50649
50649
|
};
|
|
50650
50650
|
|
|
50651
|
-
const SDK_VERSION_MARKER = '1.14.0-alpha';
|
|
50651
|
+
const SDK_VERSION_MARKER = '1.14.0-alpha.1';
|
|
50652
50652
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
50653
50653
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
50654
50654
|
|
|
@@ -54963,7 +54963,7 @@ async function isRegisteredOffchain(ethAddress, config) {
|
|
|
54963
54963
|
return accounts?.length > 0;
|
|
54964
54964
|
}
|
|
54965
54965
|
catch (ex) {
|
|
54966
|
-
if (
|
|
54966
|
+
if (globalAxios$1.isAxiosError(ex) && ex.response?.status === 404) {
|
|
54967
54967
|
return false;
|
|
54968
54968
|
}
|
|
54969
54969
|
throw ex;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import globalAxios$1, { isAxiosError as isAxiosError$2, HttpStatusCode as HttpStatusCode$3
|
|
1
|
+
import globalAxios$1, { isAxiosError as isAxiosError$2, HttpStatusCode as HttpStatusCode$3 } from 'axios';
|
|
2
2
|
import { memorise as memorise$1 } from 'lru-memorise';
|
|
3
3
|
import { getGlobalisedValue as getGlobalisedValue$3 } from 'global-const';
|
|
4
4
|
import { keccak256 as keccak256$1 } from '@ethersproject/keccak256';
|
|
@@ -159,7 +159,7 @@ const flattenProperties$1 = (properties) => {
|
|
|
159
159
|
};
|
|
160
160
|
|
|
161
161
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
162
|
-
const SDK_VERSION$1 = '1.14.0-alpha';
|
|
162
|
+
const SDK_VERSION$1 = '1.14.0-alpha.1';
|
|
163
163
|
const getReferrer$1 = () => {
|
|
164
164
|
if (isNode$1()) {
|
|
165
165
|
return '';
|
|
@@ -13535,7 +13535,7 @@ class MultiRollupApiClients {
|
|
|
13535
13535
|
}
|
|
13536
13536
|
|
|
13537
13537
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
13538
|
-
const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.14.0-alpha' };
|
|
13538
|
+
const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.14.0-alpha.1' };
|
|
13539
13539
|
const createConfig$1 = ({ basePath, headers, }) => {
|
|
13540
13540
|
if (!basePath.trim()) {
|
|
13541
13541
|
throw Error('basePath can not be empty');
|
|
@@ -13607,7 +13607,7 @@ class APIError extends Error {
|
|
|
13607
13607
|
|
|
13608
13608
|
/* eslint-disable implicit-arrow-linebreak */
|
|
13609
13609
|
const defaultHeaders$1 = {
|
|
13610
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.14.0-alpha',
|
|
13610
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.14.0-alpha.1',
|
|
13611
13611
|
};
|
|
13612
13612
|
/**
|
|
13613
13613
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -14083,7 +14083,7 @@ var blockchain_data = /*#__PURE__*/Object.freeze({
|
|
|
14083
14083
|
|
|
14084
14084
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
14085
14085
|
const ApiConfiguration = index$2.Configuration;
|
|
14086
|
-
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.14.0-alpha' };
|
|
14086
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.14.0-alpha.1' };
|
|
14087
14087
|
/**
|
|
14088
14088
|
* @dev Copied from Core SDK as a convenience for migrating away from Core SDK
|
|
14089
14089
|
*/
|
|
@@ -14142,7 +14142,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
14142
14142
|
chainID,
|
|
14143
14143
|
coreContractAddress,
|
|
14144
14144
|
registrationContractAddress,
|
|
14145
|
-
sdkVersion: 'ts-immutable-sdk-1.14.0-alpha',
|
|
14145
|
+
sdkVersion: 'ts-immutable-sdk-1.14.0-alpha.1',
|
|
14146
14146
|
});
|
|
14147
14147
|
/**
|
|
14148
14148
|
* Sets `sdkVersion` at the time of build
|
|
@@ -45446,7 +45446,7 @@ const flattenProperties = (properties) => {
|
|
|
45446
45446
|
};
|
|
45447
45447
|
|
|
45448
45448
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
45449
|
-
const SDK_VERSION = '1.14.0-alpha';
|
|
45449
|
+
const SDK_VERSION = '1.14.0-alpha.1';
|
|
45450
45450
|
const getReferrer = () => {
|
|
45451
45451
|
if (isNode()) {
|
|
45452
45452
|
return '';
|
|
@@ -50626,7 +50626,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
|
|
|
50626
50626
|
maxPriorityFeePerGas: BigNumber$1.from(10e9),
|
|
50627
50627
|
};
|
|
50628
50628
|
|
|
50629
|
-
const SDK_VERSION_MARKER = '1.14.0-alpha';
|
|
50629
|
+
const SDK_VERSION_MARKER = '1.14.0-alpha.1';
|
|
50630
50630
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
50631
50631
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
50632
50632
|
|
|
@@ -54941,7 +54941,7 @@ async function isRegisteredOffchain(ethAddress, config) {
|
|
|
54941
54941
|
return accounts?.length > 0;
|
|
54942
54942
|
}
|
|
54943
54943
|
catch (ex) {
|
|
54944
|
-
if (
|
|
54944
|
+
if (isAxiosError$2(ex) && ex.response?.status === 404) {
|
|
54945
54945
|
return false;
|
|
54946
54946
|
}
|
|
54947
54947
|
throw ex;
|
package/dist/orderbook.js
CHANGED
|
@@ -131,7 +131,7 @@ const flattenProperties = (properties) => {
|
|
|
131
131
|
};
|
|
132
132
|
|
|
133
133
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
134
|
-
const SDK_VERSION = '1.14.0-alpha';
|
|
134
|
+
const SDK_VERSION = '1.14.0-alpha.1';
|
|
135
135
|
const getReferrer = () => {
|
|
136
136
|
if (isNode()) {
|
|
137
137
|
return '';
|
package/dist/passport.js
CHANGED
|
@@ -11350,7 +11350,7 @@ class MultiRollupApiClients {
|
|
|
11350
11350
|
}
|
|
11351
11351
|
|
|
11352
11352
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
11353
|
-
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.14.0-alpha' };
|
|
11353
|
+
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.14.0-alpha.1' };
|
|
11354
11354
|
const createConfig$1 = ({ basePath, headers, }) => {
|
|
11355
11355
|
if (!basePath.trim()) {
|
|
11356
11356
|
throw Error('basePath can not be empty');
|
|
@@ -11529,7 +11529,7 @@ const flattenProperties = (properties) => {
|
|
|
11529
11529
|
};
|
|
11530
11530
|
|
|
11531
11531
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
11532
|
-
const SDK_VERSION = '1.14.0-alpha';
|
|
11532
|
+
const SDK_VERSION = '1.14.0-alpha.1';
|
|
11533
11533
|
const getReferrer = () => {
|
|
11534
11534
|
if (isNode()) {
|
|
11535
11535
|
return '';
|
|
@@ -11745,7 +11745,7 @@ var KeyHeaders;
|
|
|
11745
11745
|
|
|
11746
11746
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
11747
11747
|
const ApiConfiguration = index$2.Configuration;
|
|
11748
|
-
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.14.0-alpha' };
|
|
11748
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.14.0-alpha.1' };
|
|
11749
11749
|
/**
|
|
11750
11750
|
* @dev Copied from Core SDK as a convenience for migrating away from Core SDK
|
|
11751
11751
|
*/
|
|
@@ -11780,7 +11780,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
11780
11780
|
chainID,
|
|
11781
11781
|
coreContractAddress,
|
|
11782
11782
|
registrationContractAddress,
|
|
11783
|
-
sdkVersion: 'ts-immutable-sdk-1.14.0-alpha',
|
|
11783
|
+
sdkVersion: 'ts-immutable-sdk-1.14.0-alpha.1',
|
|
11784
11784
|
});
|
|
11785
11785
|
/**
|
|
11786
11786
|
* Sets `sdkVersion` at the time of build
|
package/dist/x.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import globalAxios, {
|
|
1
|
+
import globalAxios, { isAxiosError } from 'axios';
|
|
2
2
|
import { memorise } from 'lru-memorise';
|
|
3
3
|
import { getGlobalisedValue as getGlobalisedValue$1 } from 'global-const';
|
|
4
4
|
import { keccak256 } from '@ethersproject/keccak256';
|
|
@@ -8954,7 +8954,7 @@ const flattenProperties = (properties) => {
|
|
|
8954
8954
|
};
|
|
8955
8955
|
|
|
8956
8956
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
8957
|
-
const SDK_VERSION = '1.14.0-alpha';
|
|
8957
|
+
const SDK_VERSION = '1.14.0-alpha.1';
|
|
8958
8958
|
const getReferrer = () => {
|
|
8959
8959
|
if (isNode()) {
|
|
8960
8960
|
return '';
|
|
@@ -9163,7 +9163,7 @@ class ImmutableConfiguration {
|
|
|
9163
9163
|
|
|
9164
9164
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
9165
9165
|
const ApiConfiguration = index$2.Configuration;
|
|
9166
|
-
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.14.0-alpha' };
|
|
9166
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.14.0-alpha.1' };
|
|
9167
9167
|
/**
|
|
9168
9168
|
* @dev Copied from Core SDK as a convenience for migrating away from Core SDK
|
|
9169
9169
|
*/
|
|
@@ -9222,7 +9222,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
9222
9222
|
chainID,
|
|
9223
9223
|
coreContractAddress,
|
|
9224
9224
|
registrationContractAddress,
|
|
9225
|
-
sdkVersion: 'ts-immutable-sdk-1.14.0-alpha',
|
|
9225
|
+
sdkVersion: 'ts-immutable-sdk-1.14.0-alpha.1',
|
|
9226
9226
|
});
|
|
9227
9227
|
/**
|
|
9228
9228
|
* Sets `sdkVersion` at the time of build
|
|
@@ -15519,7 +15519,7 @@ async function isRegisteredOffchain(ethAddress, config) {
|
|
|
15519
15519
|
return accounts?.length > 0;
|
|
15520
15520
|
}
|
|
15521
15521
|
catch (ex) {
|
|
15522
|
-
if (ex
|
|
15522
|
+
if (isAxiosError(ex) && ex.response?.status === 404) {
|
|
15523
15523
|
return false;
|
|
15524
15524
|
}
|
|
15525
15525
|
throw ex;
|
package/package.json
CHANGED