@imtbl/sdk 0.31.3 → 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/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.31.3',
20
+ sdkVersion: 'ts-immutable-sdk-0.33.0',
21
21
  });
22
22
  /**
23
23
  * Sets `sdkVersion` at the time of build