@ztimson/momentum 1.5.3 → 1.5.4

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.js CHANGED
@@ -2873,10 +2873,8 @@
2873
2873
  }
2874
2874
  if (!s?.user) {
2875
2875
  s = await this.loginRedirect();
2876
- if (!!s && reload) {
2877
- if (typeof reload == "string") location.href = reload;
2878
- location.reload();
2879
- }
2876
+ if (!!s && reload) if (typeof reload == "string") location.href = reload;
2877
+ else location.reload();
2880
2878
  }
2881
2879
  return this.session || null;
2882
2880
  }
@@ -2950,7 +2948,7 @@
2950
2948
  });
2951
2949
  if (reload) {
2952
2950
  if (typeof reload == "string") location.href = reload;
2953
- location.reload();
2951
+ else location.reload();
2954
2952
  return;
2955
2953
  }
2956
2954
  this.momentum.api.token = this.session = this.user = null;
@@ -4893,7 +4891,7 @@ ${Object.entries(t).map(([name, value]) => `--theme-${kebabCase(name)}: ${value}
4893
4891
  };
4894
4892
  //#endregion
4895
4893
  //#region package.json
4896
- var version = "1.5.3";
4894
+ var version = "1.5.4";
4897
4895
  //#endregion
4898
4896
  //#region src/webRtc.ts
4899
4897
  var WebRtc = class extends PathEventEmitter {
package/dist/index.mjs CHANGED
@@ -2869,10 +2869,8 @@ var Auth = class extends PathEventEmitter {
2869
2869
  }
2870
2870
  if (!s?.user) {
2871
2871
  s = await this.loginRedirect();
2872
- if (!!s && reload) {
2873
- if (typeof reload == "string") location.href = reload;
2874
- location.reload();
2875
- }
2872
+ if (!!s && reload) if (typeof reload == "string") location.href = reload;
2873
+ else location.reload();
2876
2874
  }
2877
2875
  return this.session || null;
2878
2876
  }
@@ -2946,7 +2944,7 @@ var Auth = class extends PathEventEmitter {
2946
2944
  });
2947
2945
  if (reload) {
2948
2946
  if (typeof reload == "string") location.href = reload;
2949
- location.reload();
2947
+ else location.reload();
2950
2948
  return;
2951
2949
  }
2952
2950
  this.momentum.api.token = this.session = this.user = null;
@@ -4889,7 +4887,7 @@ var Static = class extends Storage {
4889
4887
  };
4890
4888
  //#endregion
4891
4889
  //#region package.json
4892
- var version = "1.5.3";
4890
+ var version = "1.5.4";
4893
4891
  //#endregion
4894
4892
  //#region src/webRtc.ts
4895
4893
  var WebRtc = class extends PathEventEmitter {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ztimson/momentum",
3
- "version": "1.5.3",
3
+ "version": "1.5.4",
4
4
  "description": "Client library for momentum",
5
5
  "keywords": [
6
6
  "Momentum"