mirror of
https://github.com/Terncode/pixel.horse.git
synced 2026-09-24 13:55:04 +02:00
Downgrade TypeScript, remove hacks
This commit is contained in:
Generated
+3
-3
@@ -20449,9 +20449,9 @@
|
||||
"integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c="
|
||||
},
|
||||
"typescript": {
|
||||
"version": "3.6.2",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.6.2.tgz",
|
||||
"integrity": "sha512-lmQ4L+J6mnu3xweP8+rOrUwzmN+MRAj7TgtJtDaXE5PMyX2kCrklhg3rvOsOIfNeAWMQWO2F1GPc1kMD2vLAfw=="
|
||||
"version": "3.5.3",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.5.3.tgz",
|
||||
"integrity": "sha512-ACzBtm/PhXBDId6a6sDJfroT2pOWt/oOnk4/dElG5G33ZL776N3Y6/6bKZJBFpd+b05F3Ct9qDjMeJmRWtE2/g=="
|
||||
},
|
||||
"ua-parser-js": {
|
||||
"version": "0.7.20",
|
||||
|
||||
+1
-1
@@ -189,7 +189,7 @@
|
||||
"tslib": "^1.10.0",
|
||||
"tslint": "^5.19.0",
|
||||
"tsutils": "^3.17.1",
|
||||
"typescript": "^3.5.3",
|
||||
"typescript": "<3.6.0",
|
||||
"ua-parser-js": "^0.7.20",
|
||||
"uglifyjs-webpack-plugin": "^1.3.0",
|
||||
"webpack": "^4.39.3",
|
||||
|
||||
@@ -18,9 +18,9 @@ export function getWebGLContext(canvas: HTMLCanvasElement): WebGLRenderingContex
|
||||
antialias: false,
|
||||
};
|
||||
|
||||
const gl = (canvas.getContext('webgl2', options)
|
||||
const gl = canvas.getContext('webgl2', options)
|
||||
|| canvas.getContext('webgl', options)
|
||||
|| canvas.getContext('experimental-webgl', options)) as WebGLRenderingContext;
|
||||
|| canvas.getContext('experimental-webgl', options);
|
||||
|
||||
if (!gl) {
|
||||
throw new Error(WEBGL_CREATION_ERROR);
|
||||
|
||||
@@ -69,8 +69,8 @@ export async function updateAuthInfo(
|
||||
}
|
||||
|
||||
if (Object.keys(changes).length > 0) {
|
||||
Object.assign(auth, changes as IAuth);
|
||||
await updateAuth(auth._id, changes as IAuth);
|
||||
Object.assign(auth, changes);
|
||||
await updateAuth(auth._id, changes);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -102,5 +102,5 @@ async function verifyOrRestoreAuth(auth: IAuth, mergeAccount: string | undefined
|
||||
}
|
||||
|
||||
Object.assign(auth, changes);
|
||||
await updateAuth(auth._id, changes as IAuth);
|
||||
await updateAuth(auth._id, changes);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user