diff --git a/ui/package.json b/ui/package.json index 7f583e29153..fab57d708f9 100644 --- a/ui/package.json +++ b/ui/package.json @@ -28,6 +28,7 @@ "@emotion/css": "^11.13.0", "@emotion/react": "^11.13.3", "inter-ui": "^3.19.3", + "long": "^5.2.3", "moment": "^2.29.1", "protobufjs": "^7.1.1", "query-string": "^7.1.1", @@ -119,7 +120,7 @@ "source-map-loader": "^3.0.0", "style-loader": "^3.3.1", "terser-webpack-plugin": "^5.2.5", - "typescript": "^4.9.5", + "typescript": "~5.7.2", "webpack": "^5.64.4", "webpack-dev-server": "^4.6.0", "webpack-manifest-plugin": "^4.0.2", diff --git a/ui/src/utils/timestamp.ts b/ui/src/utils/timestamp.ts index 869d24870f0..4432545457c 100644 --- a/ui/src/utils/timestamp.ts +++ b/ui/src/utils/timestamp.ts @@ -1,9 +1,9 @@ -import long from 'long'; +import Long from 'long'; import { google } from '../protos'; export function toDate(ts: google.protobuf.ITimestamp) { var seconds: number; - if (ts.seconds instanceof long) { + if (ts.seconds instanceof Long) { seconds = ts.seconds.low } else { seconds = ts.seconds!; diff --git a/ui/yarn.lock b/ui/yarn.lock index 90ba33269eb..0057595f391 100644 --- a/ui/yarn.lock +++ b/ui/yarn.lock @@ -8266,10 +8266,10 @@ log-symbols@^4.1.0: chalk "^4.1.0" is-unicode-supported "^0.1.0" -long@^5.0.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/long/-/long-5.2.0.tgz#2696dadf4b4da2ce3f6f6b89186085d94d52fd61" - integrity sha512-9RTUNjK60eJbx3uz+TEGF7fUr29ZDxR5QzXcyDpeSfeH28S9ycINflOgOlppit5U+4kNTe83KQnMEerw7GmE8w== +long@^5.0.0, long@^5.2.3: + version "5.2.3" + resolved "https://registry.yarnpkg.com/long/-/long-5.2.3.tgz#a3ba97f3877cf1d778eccbcb048525ebb77499e1" + integrity sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q== loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.4.0: version "1.4.0" @@ -11474,10 +11474,10 @@ typedarray-to-buffer@^3.1.5: dependencies: is-typedarray "^1.0.0" -typescript@^4.9.5: - version "4.9.5" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a" - integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g== +typescript@~5.7.2: + version "5.7.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.7.2.tgz#3169cf8c4c8a828cde53ba9ecb3d2b1d5dd67be6" + integrity sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg== uc.micro@^2.0.0, uc.micro@^2.1.0: version "2.1.0"