@ztimson/momentum 1.2.1 → 1.2.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/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2598,7 +2598,7 @@ Must be either: call, email or sms`);
|
|
|
2598
2598
|
if (!emailOrPass) throw new Error("Cannot reset password, missing email or token");
|
|
2599
2599
|
return this.momentum.api.request({
|
|
2600
2600
|
url: "api/auth/reset",
|
|
2601
|
-
headers: { "Authorization":
|
|
2601
|
+
headers: { "Authorization": `Bearer ${token || this.momentum.api.token}` },
|
|
2602
2602
|
method: "PATCH",
|
|
2603
2603
|
body: {
|
|
2604
2604
|
email: token ? void 0 : emailOrPass,
|
|
@@ -4196,7 +4196,7 @@ ${log}`;
|
|
|
4196
4196
|
}
|
|
4197
4197
|
momentum;
|
|
4198
4198
|
}
|
|
4199
|
-
const version = "1.2.
|
|
4199
|
+
const version = "1.2.2";
|
|
4200
4200
|
class WebRtc extends PathEventEmitter {
|
|
4201
4201
|
constructor(momentum) {
|
|
4202
4202
|
super("webrtc");
|
package/dist/index.mjs
CHANGED
|
@@ -2594,7 +2594,7 @@ Must be either: call, email or sms`);
|
|
|
2594
2594
|
if (!emailOrPass) throw new Error("Cannot reset password, missing email or token");
|
|
2595
2595
|
return this.momentum.api.request({
|
|
2596
2596
|
url: "api/auth/reset",
|
|
2597
|
-
headers: { "Authorization":
|
|
2597
|
+
headers: { "Authorization": `Bearer ${token || this.momentum.api.token}` },
|
|
2598
2598
|
method: "PATCH",
|
|
2599
2599
|
body: {
|
|
2600
2600
|
email: token ? void 0 : emailOrPass,
|
|
@@ -4192,7 +4192,7 @@ class Static extends Storage {
|
|
|
4192
4192
|
}
|
|
4193
4193
|
momentum;
|
|
4194
4194
|
}
|
|
4195
|
-
const version = "1.2.
|
|
4195
|
+
const version = "1.2.2";
|
|
4196
4196
|
class WebRtc extends PathEventEmitter {
|
|
4197
4197
|
constructor(momentum) {
|
|
4198
4198
|
super("webrtc");
|