Compare commits

..

4 Commits

Author SHA1 Message Date
Daniel Scalzi fc326ca8f1
Add version.jar to cp until 1.17. 2022-07-29 11:50:53 -04:00
Daniel Scalzi c4ceb7ab0b
Patches to get 1.17 working, need to revise into real solutions. 2022-07-29 11:50:52 -04:00
Daniel Scalzi e7dd171cea
Dependency upgrade. 2022-07-29 11:49:59 -04:00
DamsDev1 2e1ab3c266
Fix expiration token date which return always NaN (#226) 2022-05-21 16:08:29 -04:00
3 changed files with 786 additions and 482 deletions

View File

@ -245,7 +245,7 @@ async function validateSelectedMojangAccount(){
async function validateSelectedMicrosoftAccount(){
const current = ConfigManager.getSelectedAccount()
const now = new Date().getTime()
const mcExpiresAt = Date.parse(current.expiresAt)
const mcExpiresAt = current.expiresAt
const mcExpired = now >= mcExpiresAt
if(!mcExpired) {
@ -254,7 +254,7 @@ async function validateSelectedMicrosoftAccount(){
// MC token expired. Check MS token.
const msExpiresAt = Date.parse(current.microsoft.expires_at)
const msExpiresAt = current.microsoft.expires_at
const msExpired = now >= msExpiresAt
if(msExpired) {
@ -312,4 +312,4 @@ exports.validateSelected = async function(){
return await validateSelectedMojangAccount()
}
}
}

1250
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -25,14 +25,14 @@
"dependencies": {
"@electron/remote": "^2.0.8",
"adm-zip": "^0.5.9",
"async": "^3.2.3",
"async": "^3.2.4",
"discord-rpc-patch": "^4.0.1",
"ejs": "^3.1.8",
"ejs-electron": "^2.1.1",
"electron-updater": "^5.0.1",
"electron-updater": "^5.0.5",
"fs-extra": "^10.1.0",
"github-syntax-dark": "^0.5.0",
"got": "^11.8.3",
"got": "^11.8.5",
"helios-core": "~0.1.0",
"jquery": "^3.6.0",
"node-stream-zip": "^1.15.0",
@ -42,9 +42,9 @@
"winreg": "^1.2.4"
},
"devDependencies": {
"electron": "^18.2.4",
"electron-builder": "^23.0.3",
"eslint": "^8.16.0"
"electron": "^19.0.10",
"electron-builder": "^23.1.0",
"eslint": "^8.20.0"
},
"repository": {
"type": "git",