@imtbl/sdk 0.32.0 → 0.33.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 +1 -1
- package/dist/browser/checkout/sdk.js +2 -2
- package/dist/checkout.js +2 -2
- package/dist/config.js +1 -2
- package/dist/immutablex_client.js +1 -1
- package/dist/index.browser.js +3 -3
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +5 -6
- package/dist/index.js +5 -6
- package/dist/passport.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -62,7 +62,6 @@ class ImmutableConfiguration {
|
|
|
62
62
|
}
|
|
63
63
|
const API_KEY_PREFIX = 'sk_imapik-';
|
|
64
64
|
const PUBLISHABLE_KEY_PREFIX = 'pk_imapik-';
|
|
65
|
-
const PUBLISHABLE_KEY_LENGTH = 30;
|
|
66
65
|
const addApiKeyToAxiosHeader = (apiKey) => {
|
|
67
66
|
if (!apiKey.startsWith(API_KEY_PREFIX)) {
|
|
68
67
|
throw new Error('Invalid API key. Create your api key in Immutable developer hub. https://hub.immutable.com');
|
|
@@ -70,7 +69,7 @@ const addApiKeyToAxiosHeader = (apiKey) => {
|
|
|
70
69
|
globalAxios$1.defaults.headers.common['x-immutable-api-key'] = apiKey;
|
|
71
70
|
};
|
|
72
71
|
const addPublishableKeyToAxiosHeader = (publishableKey) => {
|
|
73
|
-
if (!publishableKey.startsWith(PUBLISHABLE_KEY_PREFIX)
|
|
72
|
+
if (!publishableKey.startsWith(PUBLISHABLE_KEY_PREFIX)) {
|
|
74
73
|
throw new Error('Invalid Publishable key. Create your Publishable key in Immutable developer hub.'
|
|
75
74
|
+ ' https://hub.immutable.com');
|
|
76
75
|
}
|
|
@@ -3792,7 +3791,7 @@ class MultiRollupApiClients {
|
|
|
3792
3791
|
}
|
|
3793
3792
|
|
|
3794
3793
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
3795
|
-
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.
|
|
3794
|
+
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.33.0' };
|
|
3796
3795
|
const createConfig = ({ basePath, headers, }) => {
|
|
3797
3796
|
if (!basePath.trim()) {
|
|
3798
3797
|
throw Error('basePath can not be empty');
|
|
@@ -3852,7 +3851,7 @@ class APIError extends Error {
|
|
|
3852
3851
|
|
|
3853
3852
|
/* eslint-disable implicit-arrow-linebreak */
|
|
3854
3853
|
const defaultHeaders = {
|
|
3855
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.
|
|
3854
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.33.0',
|
|
3856
3855
|
};
|
|
3857
3856
|
/**
|
|
3858
3857
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -4263,7 +4262,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
4263
4262
|
chainID,
|
|
4264
4263
|
coreContractAddress,
|
|
4265
4264
|
registrationContractAddress,
|
|
4266
|
-
sdkVersion: 'ts-immutable-sdk-0.
|
|
4265
|
+
sdkVersion: 'ts-immutable-sdk-0.33.0',
|
|
4267
4266
|
});
|
|
4268
4267
|
/**
|
|
4269
4268
|
* Sets `sdkVersion` at the time of build
|
|
@@ -30673,7 +30672,7 @@ const GAS_OVERRIDES = {
|
|
|
30673
30672
|
maxPriorityFeePerGas: ethers.BigNumber.from(101e9),
|
|
30674
30673
|
};
|
|
30675
30674
|
|
|
30676
|
-
const SDK_VERSION_MARKER = '0.
|
|
30675
|
+
const SDK_VERSION_MARKER = '0.33.0';
|
|
30677
30676
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
30678
30677
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
30679
30678
|
|
package/dist/index.js
CHANGED
|
@@ -40,7 +40,6 @@ class ImmutableConfiguration {
|
|
|
40
40
|
}
|
|
41
41
|
const API_KEY_PREFIX = 'sk_imapik-';
|
|
42
42
|
const PUBLISHABLE_KEY_PREFIX = 'pk_imapik-';
|
|
43
|
-
const PUBLISHABLE_KEY_LENGTH = 30;
|
|
44
43
|
const addApiKeyToAxiosHeader = (apiKey) => {
|
|
45
44
|
if (!apiKey.startsWith(API_KEY_PREFIX)) {
|
|
46
45
|
throw new Error('Invalid API key. Create your api key in Immutable developer hub. https://hub.immutable.com');
|
|
@@ -48,7 +47,7 @@ const addApiKeyToAxiosHeader = (apiKey) => {
|
|
|
48
47
|
globalAxios$1.defaults.headers.common['x-immutable-api-key'] = apiKey;
|
|
49
48
|
};
|
|
50
49
|
const addPublishableKeyToAxiosHeader = (publishableKey) => {
|
|
51
|
-
if (!publishableKey.startsWith(PUBLISHABLE_KEY_PREFIX)
|
|
50
|
+
if (!publishableKey.startsWith(PUBLISHABLE_KEY_PREFIX)) {
|
|
52
51
|
throw new Error('Invalid Publishable key. Create your Publishable key in Immutable developer hub.'
|
|
53
52
|
+ ' https://hub.immutable.com');
|
|
54
53
|
}
|
|
@@ -3770,7 +3769,7 @@ class MultiRollupApiClients {
|
|
|
3770
3769
|
}
|
|
3771
3770
|
|
|
3772
3771
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
3773
|
-
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.
|
|
3772
|
+
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.33.0' };
|
|
3774
3773
|
const createConfig = ({ basePath, headers, }) => {
|
|
3775
3774
|
if (!basePath.trim()) {
|
|
3776
3775
|
throw Error('basePath can not be empty');
|
|
@@ -3830,7 +3829,7 @@ class APIError extends Error {
|
|
|
3830
3829
|
|
|
3831
3830
|
/* eslint-disable implicit-arrow-linebreak */
|
|
3832
3831
|
const defaultHeaders = {
|
|
3833
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.
|
|
3832
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.33.0',
|
|
3834
3833
|
};
|
|
3835
3834
|
/**
|
|
3836
3835
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -4241,7 +4240,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
4241
4240
|
chainID,
|
|
4242
4241
|
coreContractAddress,
|
|
4243
4242
|
registrationContractAddress,
|
|
4244
|
-
sdkVersion: 'ts-immutable-sdk-0.
|
|
4243
|
+
sdkVersion: 'ts-immutable-sdk-0.33.0',
|
|
4245
4244
|
});
|
|
4246
4245
|
/**
|
|
4247
4246
|
* Sets `sdkVersion` at the time of build
|
|
@@ -30651,7 +30650,7 @@ const GAS_OVERRIDES = {
|
|
|
30651
30650
|
maxPriorityFeePerGas: BigNumber$1.from(101e9),
|
|
30652
30651
|
};
|
|
30653
30652
|
|
|
30654
|
-
const SDK_VERSION_MARKER = '0.
|
|
30653
|
+
const SDK_VERSION_MARKER = '0.33.0';
|
|
30655
30654
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
30656
30655
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
30657
30656
|
|
package/dist/passport.js
CHANGED
|
@@ -2191,7 +2191,7 @@ class MultiRollupApiClients {
|
|
|
2191
2191
|
}
|
|
2192
2192
|
|
|
2193
2193
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
2194
|
-
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.
|
|
2194
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.33.0' };
|
|
2195
2195
|
const createConfig = ({ basePath, headers, }) => {
|
|
2196
2196
|
if (!basePath.trim()) {
|
|
2197
2197
|
throw Error('basePath can not be empty');
|
|
@@ -2247,7 +2247,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
2247
2247
|
chainID,
|
|
2248
2248
|
coreContractAddress,
|
|
2249
2249
|
registrationContractAddress,
|
|
2250
|
-
sdkVersion: 'ts-immutable-sdk-0.
|
|
2250
|
+
sdkVersion: 'ts-immutable-sdk-0.33.0',
|
|
2251
2251
|
});
|
|
2252
2252
|
/**
|
|
2253
2253
|
* Sets `sdkVersion` at the time of build
|
package/package.json
CHANGED