@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/checkout.js CHANGED
@@ -20984,7 +20984,7 @@ class APIError extends Error {
20984
20984
 
20985
20985
  /* eslint-disable implicit-arrow-linebreak */
20986
20986
  const defaultHeaders = {
20987
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.32.0',
20987
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.33.0',
20988
20988
  };
20989
20989
  /**
20990
20990
  * createAPIConfiguration to create a custom Configuration
@@ -22261,7 +22261,7 @@ const GAS_OVERRIDES = {
22261
22261
  maxPriorityFeePerGas: BigNumber$1.from(101e9),
22262
22262
  };
22263
22263
 
22264
- const SDK_VERSION_MARKER = '0.32.0';
22264
+ const SDK_VERSION_MARKER = '0.33.0';
22265
22265
  // This SDK version is replaced by the `yarn build` command ran on the root level
22266
22266
  const globalPackageVersion = () => SDK_VERSION_MARKER;
22267
22267
 
package/dist/config.js CHANGED
@@ -16,7 +16,6 @@ class ImmutableConfiguration {
16
16
  }
17
17
  const API_KEY_PREFIX = 'sk_imapik-';
18
18
  const PUBLISHABLE_KEY_PREFIX = 'pk_imapik-';
19
- const PUBLISHABLE_KEY_LENGTH = 30;
20
19
  const addApiKeyToAxiosHeader = (apiKey) => {
21
20
  if (!apiKey.startsWith(API_KEY_PREFIX)) {
22
21
  throw new Error('Invalid API key. Create your api key in Immutable developer hub. https://hub.immutable.com');
@@ -24,7 +23,7 @@ const addApiKeyToAxiosHeader = (apiKey) => {
24
23
  axios.defaults.headers.common['x-immutable-api-key'] = apiKey;
25
24
  };
26
25
  const addPublishableKeyToAxiosHeader = (publishableKey) => {
27
- if (!publishableKey.startsWith(PUBLISHABLE_KEY_PREFIX) || publishableKey.length !== PUBLISHABLE_KEY_LENGTH) {
26
+ if (!publishableKey.startsWith(PUBLISHABLE_KEY_PREFIX)) {
28
27
  throw new Error('Invalid Publishable key. Create your Publishable key in Immutable developer hub.'
29
28
  + ' https://hub.immutable.com');
30
29
  }
@@ -17,7 +17,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
17
17
  chainID,
18
18
  coreContractAddress,
19
19
  registrationContractAddress,
20
- sdkVersion: 'ts-immutable-sdk-0.32.0',
20
+ sdkVersion: 'ts-immutable-sdk-0.33.0',
21
21
  });
22
22
  /**
23
23
  * Sets `sdkVersion` at the time of build