@imtbl/sdk 1.7.0 → 1.7.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/index.cjs CHANGED
@@ -142,7 +142,7 @@ const storeDetail$1 = (key, value) => {
142
142
  };
143
143
  setItem$1(Store$1.RUNTIME, RUNTIME_DETAILS$1);
144
144
  };
145
- const getDetail$1$1 = (key) => {
145
+ const getDetail$1 = (key) => {
146
146
  // Handle the scenario where detail is a falsy value
147
147
  if (RUNTIME_DETAILS$1[key] === undefined) {
148
148
  return undefined;
@@ -174,7 +174,7 @@ const flattenProperties$1 = (properties) => {
174
174
  };
175
175
 
176
176
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
177
- const SDK_VERSION$1 = '1.7.0';
177
+ const SDK_VERSION$1 = '1.7.1';
178
178
  const getReferrer$1 = () => {
179
179
  if (isNode$1()) {
180
180
  return '';
@@ -217,7 +217,7 @@ const initialise$2 = async () => {
217
217
  initialised$1 = true;
218
218
  try {
219
219
  const runtimeDetails = flattenProperties$1(getRuntimeDetails$1());
220
- const existingRuntimeId = getDetail$1$1(Detail$1.RUNTIME_ID);
220
+ const existingRuntimeId = getDetail$1(Detail$1.RUNTIME_ID);
221
221
  const body = {
222
222
  version: 1,
223
223
  data: {
@@ -370,7 +370,6 @@ const setPublishableApiKeyFn$1 = (publishableApiKey) => {
370
370
  storeDetail$1(Detail$1.PUBLISHABLE_API_KEY, publishableApiKey);
371
371
  };
372
372
  const setPublishableApiKey = errorBoundary$1(getGlobalisedValue$2('setPublishableApiKey', setPublishableApiKeyFn$1));
373
- const getDetail = errorBoundary$1(getGlobalisedValue$2('getDetail', getDetail$1$1));
374
373
 
375
374
  var Environment$1;
376
375
  (function (Environment) {
@@ -11298,7 +11297,7 @@ class MultiRollupApiClients {
11298
11297
  }
11299
11298
 
11300
11299
  // eslint-disable-next-line @typescript-eslint/naming-convention
11301
- const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.7.0' };
11300
+ const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.7.1' };
11302
11301
  const createConfig = ({ basePath, headers, }) => {
11303
11302
  if (!basePath.trim()) {
11304
11303
  throw Error('basePath can not be empty');
@@ -11370,7 +11369,7 @@ class APIError extends Error {
11370
11369
 
11371
11370
  /* eslint-disable implicit-arrow-linebreak */
11372
11371
  const defaultHeaders = {
11373
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.7.0',
11372
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.7.1',
11374
11373
  };
11375
11374
  /**
11376
11375
  * createAPIConfiguration to create a custom Configuration
@@ -11803,7 +11802,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
11803
11802
  chainID,
11804
11803
  coreContractAddress,
11805
11804
  registrationContractAddress,
11806
- sdkVersion: 'ts-immutable-sdk-1.7.0',
11805
+ sdkVersion: 'ts-immutable-sdk-1.7.1',
11807
11806
  });
11808
11807
  /**
11809
11808
  * Sets `sdkVersion` at the time of build
@@ -16537,19 +16536,10 @@ class AuthManager {
16537
16536
  },
16538
16537
  });
16539
16538
  };
16540
- /**
16541
- * login
16542
- * @param anonymousId Caller can pass an anonymousId if they want to associate their user's identity with immutable's internal instrumentation.
16543
- */
16544
- async login(anonymousId) {
16539
+ async login() {
16545
16540
  return withPassportError(async () => {
16546
- const rid = getDetail(Detail$1.RUNTIME_ID);
16547
16541
  const popupWindowFeatures = { width: 410, height: 450 };
16548
16542
  const oidcUser = await this.userManager.signinPopup({
16549
- extraQueryParams: {
16550
- rid: rid || '',
16551
- third_party_a_id: anonymousId || '',
16552
- },
16553
16543
  popupWindowFeatures,
16554
16544
  });
16555
16545
  return AuthManager.mapOidcUserToDomainModel(oidcUser);
@@ -16569,22 +16559,17 @@ class AuthManager {
16569
16559
  async loginCallback() {
16570
16560
  return withPassportError(async () => this.userManager.signinPopupCallback(), PassportErrorType.AUTHENTICATION_ERROR);
16571
16561
  }
16572
- /**
16573
- * loginWithDeviceFlow
16574
- * @param anonymousId Caller can pass an anonymousId if they want to associate their user's identity with immutable's internal instrumentation.
16575
- */
16576
- async loginWithDeviceFlow(anonymousId) {
16562
+ async loginWithDeviceFlow() {
16577
16563
  return withPassportError(async () => {
16578
16564
  const response = await globalAxios$1.post(`${this.config.authenticationDomain}/oauth/device/code`, {
16579
16565
  client_id: this.config.oidcConfiguration.clientId,
16580
16566
  scope: this.config.oidcConfiguration.scope,
16581
16567
  audience: this.config.oidcConfiguration.audience,
16582
16568
  }, formUrlEncodedHeader);
16583
- const rid = getDetail(Detail$1.RUNTIME_ID);
16584
16569
  return {
16585
16570
  code: response.data.user_code,
16586
16571
  deviceCode: response.data.device_code,
16587
- url: `${response.data.verification_uri_complete}${rid ? `&rid=${rid}` : ''}${anonymousId ? `&third_party_a_id=${anonymousId}` : ''}`,
16572
+ url: response.data.verification_uri_complete,
16588
16573
  interval: response.data.interval,
16589
16574
  };
16590
16575
  }, PassportErrorType.AUTHENTICATION_ERROR);
@@ -37421,7 +37406,7 @@ const storeDetail = (key, value) => {
37421
37406
  };
37422
37407
  setItem(Store.RUNTIME, RUNTIME_DETAILS);
37423
37408
  };
37424
- const getDetail$1 = (key) => {
37409
+ const getDetail = (key) => {
37425
37410
  // Handle the scenario where detail is a falsy value
37426
37411
  if (RUNTIME_DETAILS[key] === undefined) {
37427
37412
  return undefined;
@@ -37453,7 +37438,7 @@ const flattenProperties = (properties) => {
37453
37438
  };
37454
37439
 
37455
37440
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
37456
- const SDK_VERSION = '1.7.0';
37441
+ const SDK_VERSION = '1.7.1';
37457
37442
  const getReferrer = () => {
37458
37443
  if (isNode()) {
37459
37444
  return '';
@@ -37496,7 +37481,7 @@ const initialise = async () => {
37496
37481
  initialised = true;
37497
37482
  try {
37498
37483
  const runtimeDetails = flattenProperties(getRuntimeDetails());
37499
- const existingRuntimeId = getDetail$1(Detail.RUNTIME_ID);
37484
+ const existingRuntimeId = getDetail(Detail.RUNTIME_ID);
37500
37485
  const body = {
37501
37486
  version: 1,
37502
37487
  data: {
@@ -37628,7 +37613,6 @@ const setPublishableApiKeyFn = (publishableApiKey) => {
37628
37613
  storeDetail(Detail.PUBLISHABLE_API_KEY, publishableApiKey);
37629
37614
  };
37630
37615
  errorBoundary(getGlobalisedValue('setPublishableApiKey', setPublishableApiKeyFn));
37631
- errorBoundary(getGlobalisedValue('getDetail', getDetail$1));
37632
37616
 
37633
37617
  var Environment;
37634
37618
  (function (Environment) {
@@ -42621,7 +42605,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
42621
42605
  maxPriorityFeePerGas: ethers.BigNumber.from(10e9),
42622
42606
  };
42623
42607
 
42624
- const SDK_VERSION_MARKER = '1.7.0';
42608
+ const SDK_VERSION_MARKER = '1.7.1';
42625
42609
  // This SDK version is replaced by the `yarn build` command ran on the root level
42626
42610
  const globalPackageVersion = () => SDK_VERSION_MARKER;
42627
42611
 
package/dist/index.js CHANGED
@@ -120,7 +120,7 @@ const storeDetail$1 = (key, value) => {
120
120
  };
121
121
  setItem$1(Store$1.RUNTIME, RUNTIME_DETAILS$1);
122
122
  };
123
- const getDetail$1$1 = (key) => {
123
+ const getDetail$1 = (key) => {
124
124
  // Handle the scenario where detail is a falsy value
125
125
  if (RUNTIME_DETAILS$1[key] === undefined) {
126
126
  return undefined;
@@ -152,7 +152,7 @@ const flattenProperties$1 = (properties) => {
152
152
  };
153
153
 
154
154
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
155
- const SDK_VERSION$1 = '1.7.0';
155
+ const SDK_VERSION$1 = '1.7.1';
156
156
  const getReferrer$1 = () => {
157
157
  if (isNode$1()) {
158
158
  return '';
@@ -195,7 +195,7 @@ const initialise$2 = async () => {
195
195
  initialised$1 = true;
196
196
  try {
197
197
  const runtimeDetails = flattenProperties$1(getRuntimeDetails$1());
198
- const existingRuntimeId = getDetail$1$1(Detail$1.RUNTIME_ID);
198
+ const existingRuntimeId = getDetail$1(Detail$1.RUNTIME_ID);
199
199
  const body = {
200
200
  version: 1,
201
201
  data: {
@@ -348,7 +348,6 @@ const setPublishableApiKeyFn$1 = (publishableApiKey) => {
348
348
  storeDetail$1(Detail$1.PUBLISHABLE_API_KEY, publishableApiKey);
349
349
  };
350
350
  const setPublishableApiKey = errorBoundary$1(getGlobalisedValue$2('setPublishableApiKey', setPublishableApiKeyFn$1));
351
- const getDetail = errorBoundary$1(getGlobalisedValue$2('getDetail', getDetail$1$1));
352
351
 
353
352
  var Environment$1;
354
353
  (function (Environment) {
@@ -11276,7 +11275,7 @@ class MultiRollupApiClients {
11276
11275
  }
11277
11276
 
11278
11277
  // eslint-disable-next-line @typescript-eslint/naming-convention
11279
- const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.7.0' };
11278
+ const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.7.1' };
11280
11279
  const createConfig = ({ basePath, headers, }) => {
11281
11280
  if (!basePath.trim()) {
11282
11281
  throw Error('basePath can not be empty');
@@ -11348,7 +11347,7 @@ class APIError extends Error {
11348
11347
 
11349
11348
  /* eslint-disable implicit-arrow-linebreak */
11350
11349
  const defaultHeaders = {
11351
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.7.0',
11350
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.7.1',
11352
11351
  };
11353
11352
  /**
11354
11353
  * createAPIConfiguration to create a custom Configuration
@@ -11781,7 +11780,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
11781
11780
  chainID,
11782
11781
  coreContractAddress,
11783
11782
  registrationContractAddress,
11784
- sdkVersion: 'ts-immutable-sdk-1.7.0',
11783
+ sdkVersion: 'ts-immutable-sdk-1.7.1',
11785
11784
  });
11786
11785
  /**
11787
11786
  * Sets `sdkVersion` at the time of build
@@ -16515,19 +16514,10 @@ class AuthManager {
16515
16514
  },
16516
16515
  });
16517
16516
  };
16518
- /**
16519
- * login
16520
- * @param anonymousId Caller can pass an anonymousId if they want to associate their user's identity with immutable's internal instrumentation.
16521
- */
16522
- async login(anonymousId) {
16517
+ async login() {
16523
16518
  return withPassportError(async () => {
16524
- const rid = getDetail(Detail$1.RUNTIME_ID);
16525
16519
  const popupWindowFeatures = { width: 410, height: 450 };
16526
16520
  const oidcUser = await this.userManager.signinPopup({
16527
- extraQueryParams: {
16528
- rid: rid || '',
16529
- third_party_a_id: anonymousId || '',
16530
- },
16531
16521
  popupWindowFeatures,
16532
16522
  });
16533
16523
  return AuthManager.mapOidcUserToDomainModel(oidcUser);
@@ -16547,22 +16537,17 @@ class AuthManager {
16547
16537
  async loginCallback() {
16548
16538
  return withPassportError(async () => this.userManager.signinPopupCallback(), PassportErrorType.AUTHENTICATION_ERROR);
16549
16539
  }
16550
- /**
16551
- * loginWithDeviceFlow
16552
- * @param anonymousId Caller can pass an anonymousId if they want to associate their user's identity with immutable's internal instrumentation.
16553
- */
16554
- async loginWithDeviceFlow(anonymousId) {
16540
+ async loginWithDeviceFlow() {
16555
16541
  return withPassportError(async () => {
16556
16542
  const response = await globalAxios$1.post(`${this.config.authenticationDomain}/oauth/device/code`, {
16557
16543
  client_id: this.config.oidcConfiguration.clientId,
16558
16544
  scope: this.config.oidcConfiguration.scope,
16559
16545
  audience: this.config.oidcConfiguration.audience,
16560
16546
  }, formUrlEncodedHeader);
16561
- const rid = getDetail(Detail$1.RUNTIME_ID);
16562
16547
  return {
16563
16548
  code: response.data.user_code,
16564
16549
  deviceCode: response.data.device_code,
16565
- url: `${response.data.verification_uri_complete}${rid ? `&rid=${rid}` : ''}${anonymousId ? `&third_party_a_id=${anonymousId}` : ''}`,
16550
+ url: response.data.verification_uri_complete,
16566
16551
  interval: response.data.interval,
16567
16552
  };
16568
16553
  }, PassportErrorType.AUTHENTICATION_ERROR);
@@ -37399,7 +37384,7 @@ const storeDetail = (key, value) => {
37399
37384
  };
37400
37385
  setItem(Store.RUNTIME, RUNTIME_DETAILS);
37401
37386
  };
37402
- const getDetail$1 = (key) => {
37387
+ const getDetail = (key) => {
37403
37388
  // Handle the scenario where detail is a falsy value
37404
37389
  if (RUNTIME_DETAILS[key] === undefined) {
37405
37390
  return undefined;
@@ -37431,7 +37416,7 @@ const flattenProperties = (properties) => {
37431
37416
  };
37432
37417
 
37433
37418
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
37434
- const SDK_VERSION = '1.7.0';
37419
+ const SDK_VERSION = '1.7.1';
37435
37420
  const getReferrer = () => {
37436
37421
  if (isNode()) {
37437
37422
  return '';
@@ -37474,7 +37459,7 @@ const initialise = async () => {
37474
37459
  initialised = true;
37475
37460
  try {
37476
37461
  const runtimeDetails = flattenProperties(getRuntimeDetails());
37477
- const existingRuntimeId = getDetail$1(Detail.RUNTIME_ID);
37462
+ const existingRuntimeId = getDetail(Detail.RUNTIME_ID);
37478
37463
  const body = {
37479
37464
  version: 1,
37480
37465
  data: {
@@ -37606,7 +37591,6 @@ const setPublishableApiKeyFn = (publishableApiKey) => {
37606
37591
  storeDetail(Detail.PUBLISHABLE_API_KEY, publishableApiKey);
37607
37592
  };
37608
37593
  errorBoundary(getGlobalisedValue('setPublishableApiKey', setPublishableApiKeyFn));
37609
- errorBoundary(getGlobalisedValue('getDetail', getDetail$1));
37610
37594
 
37611
37595
  var Environment;
37612
37596
  (function (Environment) {
@@ -42599,7 +42583,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
42599
42583
  maxPriorityFeePerGas: BigNumber$1.from(10e9),
42600
42584
  };
42601
42585
 
42602
- const SDK_VERSION_MARKER = '1.7.0';
42586
+ const SDK_VERSION_MARKER = '1.7.1';
42603
42587
  // This SDK version is replaced by the `yarn build` command ran on the root level
42604
42588
  const globalPackageVersion = () => SDK_VERSION_MARKER;
42605
42589
 
package/dist/orderbook.js CHANGED
@@ -99,7 +99,7 @@ const storeDetail = (key, value) => {
99
99
  };
100
100
  setItem(Store.RUNTIME, RUNTIME_DETAILS);
101
101
  };
102
- const getDetail$1 = (key) => {
102
+ const getDetail = (key) => {
103
103
  // Handle the scenario where detail is a falsy value
104
104
  if (RUNTIME_DETAILS[key] === undefined) {
105
105
  return undefined;
@@ -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.7.0';
134
+ const SDK_VERSION = '1.7.1';
135
135
  const getReferrer = () => {
136
136
  if (isNode()) {
137
137
  return '';
@@ -174,7 +174,7 @@ const initialise = async () => {
174
174
  initialised = true;
175
175
  try {
176
176
  const runtimeDetails = flattenProperties(getRuntimeDetails());
177
- const existingRuntimeId = getDetail$1(Detail.RUNTIME_ID);
177
+ const existingRuntimeId = getDetail(Detail.RUNTIME_ID);
178
178
  const body = {
179
179
  version: 1,
180
180
  data: {
@@ -306,7 +306,6 @@ const setPublishableApiKeyFn = (publishableApiKey) => {
306
306
  storeDetail(Detail.PUBLISHABLE_API_KEY, publishableApiKey);
307
307
  };
308
308
  errorBoundary(getGlobalisedValue('setPublishableApiKey', setPublishableApiKeyFn));
309
- errorBoundary(getGlobalisedValue('getDetail', getDetail$1));
310
309
 
311
310
  var Environment;
312
311
  (function (Environment) {
package/dist/passport.js CHANGED
@@ -9146,7 +9146,7 @@ class MultiRollupApiClients {
9146
9146
  }
9147
9147
 
9148
9148
  // eslint-disable-next-line @typescript-eslint/naming-convention
9149
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.7.0' };
9149
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.7.1' };
9150
9150
  const createConfig = ({ basePath, headers, }) => {
9151
9151
  if (!basePath.trim()) {
9152
9152
  throw Error('basePath can not be empty');
@@ -9293,7 +9293,7 @@ const storeDetail = (key, value) => {
9293
9293
  };
9294
9294
  setItem(Store.RUNTIME, RUNTIME_DETAILS);
9295
9295
  };
9296
- const getDetail$1 = (key) => {
9296
+ const getDetail = (key) => {
9297
9297
  // Handle the scenario where detail is a falsy value
9298
9298
  if (RUNTIME_DETAILS[key] === undefined) {
9299
9299
  return undefined;
@@ -9325,7 +9325,7 @@ const flattenProperties = (properties) => {
9325
9325
  };
9326
9326
 
9327
9327
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
9328
- const SDK_VERSION = '1.7.0';
9328
+ const SDK_VERSION = '1.7.1';
9329
9329
  const getReferrer = () => {
9330
9330
  if (isNode()) {
9331
9331
  return '';
@@ -9368,7 +9368,7 @@ const initialise = async () => {
9368
9368
  initialised = true;
9369
9369
  try {
9370
9370
  const runtimeDetails = flattenProperties(getRuntimeDetails());
9371
- const existingRuntimeId = getDetail$1(Detail.RUNTIME_ID);
9371
+ const existingRuntimeId = getDetail(Detail.RUNTIME_ID);
9372
9372
  const body = {
9373
9373
  version: 1,
9374
9374
  data: {
@@ -9521,7 +9521,6 @@ const setPublishableApiKeyFn = (publishableApiKey) => {
9521
9521
  storeDetail(Detail.PUBLISHABLE_API_KEY, publishableApiKey);
9522
9522
  };
9523
9523
  errorBoundary(getGlobalisedValue('setPublishableApiKey', setPublishableApiKeyFn));
9524
- const getDetail = errorBoundary(getGlobalisedValue('getDetail', getDetail$1));
9525
9524
 
9526
9525
  var Environment;
9527
9526
  (function (Environment) {
@@ -9538,7 +9537,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
9538
9537
  chainID,
9539
9538
  coreContractAddress,
9540
9539
  registrationContractAddress,
9541
- sdkVersion: 'ts-immutable-sdk-1.7.0',
9540
+ sdkVersion: 'ts-immutable-sdk-1.7.1',
9542
9541
  });
9543
9542
  /**
9544
9543
  * Sets `sdkVersion` at the time of build
@@ -14263,19 +14262,10 @@ class AuthManager {
14263
14262
  },
14264
14263
  });
14265
14264
  };
14266
- /**
14267
- * login
14268
- * @param anonymousId Caller can pass an anonymousId if they want to associate their user's identity with immutable's internal instrumentation.
14269
- */
14270
- async login(anonymousId) {
14265
+ async login() {
14271
14266
  return withPassportError(async () => {
14272
- const rid = getDetail(Detail.RUNTIME_ID);
14273
14267
  const popupWindowFeatures = { width: 410, height: 450 };
14274
14268
  const oidcUser = await this.userManager.signinPopup({
14275
- extraQueryParams: {
14276
- rid: rid || '',
14277
- third_party_a_id: anonymousId || '',
14278
- },
14279
14269
  popupWindowFeatures,
14280
14270
  });
14281
14271
  return AuthManager.mapOidcUserToDomainModel(oidcUser);
@@ -14295,22 +14285,17 @@ class AuthManager {
14295
14285
  async loginCallback() {
14296
14286
  return withPassportError(async () => this.userManager.signinPopupCallback(), PassportErrorType.AUTHENTICATION_ERROR);
14297
14287
  }
14298
- /**
14299
- * loginWithDeviceFlow
14300
- * @param anonymousId Caller can pass an anonymousId if they want to associate their user's identity with immutable's internal instrumentation.
14301
- */
14302
- async loginWithDeviceFlow(anonymousId) {
14288
+ async loginWithDeviceFlow() {
14303
14289
  return withPassportError(async () => {
14304
14290
  const response = await globalAxios$1.post(`${this.config.authenticationDomain}/oauth/device/code`, {
14305
14291
  client_id: this.config.oidcConfiguration.clientId,
14306
14292
  scope: this.config.oidcConfiguration.scope,
14307
14293
  audience: this.config.oidcConfiguration.audience,
14308
14294
  }, formUrlEncodedHeader);
14309
- const rid = getDetail(Detail.RUNTIME_ID);
14310
14295
  return {
14311
14296
  code: response.data.user_code,
14312
14297
  deviceCode: response.data.device_code,
14313
- url: `${response.data.verification_uri_complete}${rid ? `&rid=${rid}` : ''}${anonymousId ? `&third_party_a_id=${anonymousId}` : ''}`,
14298
+ url: response.data.verification_uri_complete,
14314
14299
  interval: response.data.interval,
14315
14300
  };
14316
14301
  }, PassportErrorType.AUTHENTICATION_ERROR);
package/dist/x.js CHANGED
@@ -104,7 +104,7 @@ const storeDetail = (key, value) => {
104
104
  };
105
105
  setItem(Store.RUNTIME, RUNTIME_DETAILS);
106
106
  };
107
- const getDetail$1 = (key) => {
107
+ const getDetail = (key) => {
108
108
  // Handle the scenario where detail is a falsy value
109
109
  if (RUNTIME_DETAILS[key] === undefined) {
110
110
  return undefined;
@@ -136,7 +136,7 @@ const flattenProperties = (properties) => {
136
136
  };
137
137
 
138
138
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
139
- const SDK_VERSION = '1.7.0';
139
+ const SDK_VERSION = '1.7.1';
140
140
  const getReferrer = () => {
141
141
  if (isNode()) {
142
142
  return '';
@@ -179,7 +179,7 @@ const initialise = async () => {
179
179
  initialised = true;
180
180
  try {
181
181
  const runtimeDetails = flattenProperties(getRuntimeDetails());
182
- const existingRuntimeId = getDetail$1(Detail.RUNTIME_ID);
182
+ const existingRuntimeId = getDetail(Detail.RUNTIME_ID);
183
183
  const body = {
184
184
  version: 1,
185
185
  data: {
@@ -311,7 +311,6 @@ const setPublishableApiKeyFn = (publishableApiKey) => {
311
311
  storeDetail(Detail.PUBLISHABLE_API_KEY, publishableApiKey);
312
312
  };
313
313
  errorBoundary(getGlobalisedValue('setPublishableApiKey', setPublishableApiKeyFn));
314
- errorBoundary(getGlobalisedValue('getDetail', getDetail$1));
315
314
 
316
315
  var Environment;
317
316
  (function (Environment) {
@@ -328,7 +327,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
328
327
  chainID,
329
328
  coreContractAddress,
330
329
  registrationContractAddress,
331
- sdkVersion: 'ts-immutable-sdk-1.7.0',
330
+ sdkVersion: 'ts-immutable-sdk-1.7.1',
332
331
  });
333
332
  /**
334
333
  * Sets `sdkVersion` at the time of build
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@imtbl/sdk",
3
3
  "description": "Immutable Unified SDK",
4
- "version": "1.7.0",
4
+ "version": "1.7.1",
5
5
  "author": "Immutable",
6
6
  "browser": "./dist/index.browser.js",
7
7
  "bugs": "https://github.com/immutable/ts-immutable-sdk/issues",