Downgrade TypeScript, remove hacks

This commit is contained in:
Eliot Partridge
2019-08-30 19:55:30 -05:00
parent 88d14fe645
commit fa0271c643
4 changed files with 9 additions and 9 deletions
+3 -3
View File
@@ -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
View File
@@ -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",
+2 -2
View File
@@ -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);
+3 -3
View File
@@ -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);
}