'use strict';

var Account = function (request) {
    this.request = request;
};

// https://github.com/GleSYS/API/wiki/functions_account#accountchangepassword
Account.prototype.changePassword = function (data) {
    return this.request.post('/account/changepassword', data);
};

// https://github.com/GleSYS/API/wiki/functions_account#accountinfo
Account.prototype.info = function () {
    return this.request.get('/account/info');
};

module.exports = Account;

@@ -12,11 +12,13 @@
 ';%0A%0A
-var
+class
  Acc
@@ -22,26 +22,33 @@
 Account 
-= function
+%7B%0A    constructor
  (reques
@@ -56,16 +56,20 @@
 ) %7B%0A    
+ 
+   
 this.req
@@ -84,20 +84,27 @@
 equest;%0A
-%7D;%0A%0A
+    %7D%0A%0A    
 // https
@@ -173,34 +173,20 @@
 assword%0A
-Account.prototype.
+    
 changePa
@@ -192,27 +192,16 @@
 assword 
-= function 
 (data) %7B
@@ -197,24 +197,28 @@
 rd (data) %7B%0A
+    
     return t
@@ -268,20 +268,27 @@
  data);%0A
-%7D;%0A%0A
+    %7D%0A%0A    
 // https
@@ -351,47 +351,26 @@
 nfo%0A
-Account.prototype.info = function
+    info
  () %7B%0A
+    
     
@@ -415,10 +415,15 @@
 ');%0A
+    %7D%0A
 %7D
-;
 %0A%0Amo

Rewrite Account to ES2015