Upgrade TypeScript

Test plan:
  - All existing tests pass

flag=none

Change-Id: I2a4babd263f9714a15dfbaac7c5cc952069eca94
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/313551
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Isaac Moore <isaac.moore@instructure.com>
Reviewed-by: Cameron Ray <cameron.ray@instructure.com>
Product-Review: Cameron Ray <cameron.ray@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
This commit is contained in:
Aaron Shafovaloff 2023-03-16 21:37:19 -06:00
parent 96c6b2c6bf
commit 868a44b202
3 changed files with 8 additions and 2 deletions

View File

@ -327,7 +327,8 @@
"through2": "^3",
"timezone-mock": "^1.3.1",
"tinymce": "^5",
"typescript": "^4.3.5",
"ts-node": "^10.9.1",
"typescript": "^5.0.2",
"waait": "^1",
"webpack": "^5",
"webpack-bundle-analyzer": "^4.5.0",

View File

@ -26,7 +26,7 @@ const frameResize: LtiMessageHandler<{height: number | string; token: string}> =
}) => {
const toolResizer = new ToolLaunchResizer()
let height: number | string = message.height as number | string
if (height <= 0) height = 1
if (Number(height) <= 0) height = 1
const container = toolResizer
.tool_content_wrapper(message.token || event.origin)

View File

@ -24855,6 +24855,11 @@ typescript@^4.3.5:
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.3.5.tgz#4d1c37cc16e893973c45a06886b7113234f119f4"
integrity sha512-DqQgihaQ9cUrskJo9kIyW/+g0Vxsk8cDtZ52a3NGh0YNTfpUSArXSohyUGnvbPazEPLu398C0UxmKSOrPumUzA==
typescript@^5.0.2:
version "5.0.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.0.2.tgz#891e1a90c5189d8506af64b9ef929fca99ba1ee5"
integrity sha512-wVORMBGO/FAs/++blGNeAVdbNKtIh1rbBL2EyQ1+J9lClJ93KiiKe8PmFIVdXhHcyv44SL9oglmfeSsndo0jRw==
ua-parser-js@^0.7.30, ua-parser-js@^0.7.9:
version "0.7.31"
resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.31.tgz#649a656b191dffab4f21d5e053e27ca17cbff5c6"