@msafe/sui3-sdk 0.0.51-pre-331bbea.0 → 0.0.51-pre-35fa193.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/index.cjs CHANGED
@@ -43993,7 +43993,7 @@ var BackendImpl = class _BackendImpl {
43993
43993
  return res.data;
43994
43994
  }
43995
43995
  headers(token) {
43996
- return { Authorization: `Bearer ${token || this._token}` };
43996
+ return { Authorization: `Bearer ${token || this._token}`, "sui-mock-user": this.mockAddress };
43997
43997
  }
43998
43998
  static toMSafeConfig(resp) {
43999
43999
  return {
@@ -44011,12 +44011,7 @@ var BackendImpl = class _BackendImpl {
44011
44011
  async get(url, config2) {
44012
44012
  const fullUrl = this.getFullUrl(url);
44013
44013
  try {
44014
- return await import_axios3.default.get(fullUrl, {
44015
- ...config2,
44016
- headers: {
44017
- "sui-mock-user": this.mockAddress
44018
- }
44019
- });
44014
+ return await import_axios3.default.get(fullUrl, config2);
44020
44015
  } catch (e) {
44021
44016
  throw BackendError.fromError(e) ?? e;
44022
44017
  }
@@ -44026,10 +44021,7 @@ var BackendImpl = class _BackendImpl {
44026
44021
  try {
44027
44022
  return await import_axios3.default.post(fullUrl, data, {
44028
44023
  ...config2,
44029
- transformRequest: this.getTransformRequest(),
44030
- headers: {
44031
- "sui-mock-user": this.mockAddress
44032
- }
44024
+ transformRequest: this.getTransformRequest()
44033
44025
  });
44034
44026
  } catch (e) {
44035
44027
  throw BackendError.fromError(e) ?? e;