Convert CommonJS exports to ES6-compatible exports
We use `export default` begrudgingly here. Ideally we'd use just `export`, though this entire SDK expects things to be exported as a default. Instead of breaking everything, we'll sacrifice our export pattern for a smaller diff - a later commit can always do the default export -> regular export conversion.
This commit is contained in:
@@ -25,7 +25,7 @@ import { _t } from './languageHandler';
|
||||
* the client owns the given email address, which is then passed to the password
|
||||
* API on the homeserver in question with the new password.
|
||||
*/
|
||||
class PasswordReset {
|
||||
export default class PasswordReset {
|
||||
/**
|
||||
* Configure the endpoints for password resetting.
|
||||
* @param {string} homeserverUrl The URL to the HS which has the account to reset.
|
||||
@@ -101,4 +101,3 @@ class PasswordReset {
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = PasswordReset;
|
||||
|
||||
Reference in New Issue
Block a user