@imtbl/sdk 1.13.1 → 1.13.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.d.ts +1 -13
- package/dist/blockchain_data.js +4 -3
- package/dist/browser/checkout/sdk.js +7 -7
- package/dist/checkout.d.ts +1 -13
- package/dist/checkout.js +6 -5
- package/dist/config.d.ts +2 -17
- package/dist/config.js +3 -21
- package/dist/index.browser.js +7 -7
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +52 -54
- package/dist/index.d.ts +1 -22
- package/dist/index.js +53 -55
- package/dist/orderbook.d.ts +1 -13
- package/dist/orderbook.js +1 -1
- package/dist/passport.d.ts +1 -13
- package/dist/passport.js +48 -29
- package/dist/x.d.ts +1 -13
- package/dist/x.js +2 -2
- package/package.json +1 -1
|
@@ -7470,20 +7470,8 @@ declare class ImmutableConfiguration {
|
|
|
7470
7470
|
publishableKey?: string;
|
|
7471
7471
|
});
|
|
7472
7472
|
}
|
|
7473
|
-
type ImmutableConfigurationWithRequireableFields<T> = ImmutableConfiguration & (T extends {
|
|
7474
|
-
apiKey: 'required';
|
|
7475
|
-
} ? Required<{
|
|
7476
|
-
apiKey: string;
|
|
7477
|
-
}> : {}) & (T extends {
|
|
7478
|
-
publishableKey: 'required';
|
|
7479
|
-
} ? Required<{
|
|
7480
|
-
publishableKey: string;
|
|
7481
|
-
}> : {});
|
|
7482
|
-
type ImmutableConfigurationWithOmitableFields<T> = T extends {
|
|
7483
|
-
apiKey: 'omit';
|
|
7484
|
-
} ? Omit<ImmutableConfigurationWithRequireableFields<T>, 'apiKey'> : ImmutableConfigurationWithRequireableFields<T>;
|
|
7485
7473
|
interface ModuleConfiguration<T> {
|
|
7486
|
-
baseConfig:
|
|
7474
|
+
baseConfig: ImmutableConfiguration;
|
|
7487
7475
|
overrides?: T;
|
|
7488
7476
|
}
|
|
7489
7477
|
|
package/dist/blockchain_data.js
CHANGED
|
@@ -4814,7 +4814,7 @@ const flattenProperties = (properties) => {
|
|
|
4814
4814
|
};
|
|
4815
4815
|
|
|
4816
4816
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
4817
|
-
const SDK_VERSION = '1.13.
|
|
4817
|
+
const SDK_VERSION = '1.13.2';
|
|
4818
4818
|
const getReferrer = () => {
|
|
4819
4819
|
if (isNode()) {
|
|
4820
4820
|
return '';
|
|
@@ -4988,7 +4988,7 @@ errorBoundary(getGlobalisedValue('setPassportClientId', setPassportClientIdFn));
|
|
|
4988
4988
|
const setPublishableApiKeyFn = (publishableApiKey) => {
|
|
4989
4989
|
storeDetail(Detail.PUBLISHABLE_API_KEY, publishableApiKey);
|
|
4990
4990
|
};
|
|
4991
|
-
errorBoundary(getGlobalisedValue('setPublishableApiKey', setPublishableApiKeyFn));
|
|
4991
|
+
const setPublishableApiKey = errorBoundary(getGlobalisedValue('setPublishableApiKey', setPublishableApiKeyFn));
|
|
4992
4992
|
errorBoundary(getGlobalisedValue('getDetail', getDetail$1));
|
|
4993
4993
|
|
|
4994
4994
|
var Environment;
|
|
@@ -5015,6 +5015,7 @@ const addKeysToHeadersOverride = (baseConfig, overrides) => {
|
|
|
5015
5015
|
}
|
|
5016
5016
|
if (baseConfig.publishableKey) {
|
|
5017
5017
|
newHeaders[KeyHeaders.PUBLISHABLE_KEY] = baseConfig.publishableKey;
|
|
5018
|
+
setPublishableApiKey(baseConfig.publishableKey);
|
|
5018
5019
|
}
|
|
5019
5020
|
if (baseConfig.rateLimitingKey) {
|
|
5020
5021
|
newHeaders[KeyHeaders.RATE_LIMITING_KEY] = baseConfig.rateLimitingKey;
|
|
@@ -5054,7 +5055,7 @@ class APIError extends Error {
|
|
|
5054
5055
|
|
|
5055
5056
|
/* eslint-disable implicit-arrow-linebreak */
|
|
5056
5057
|
const defaultHeaders = {
|
|
5057
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.13.
|
|
5058
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.13.2',
|
|
5058
5059
|
};
|
|
5059
5060
|
/**
|
|
5060
5061
|
* createAPIConfiguration to create a custom Configuration
|