mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Bump typescript from 4.8.4 to 4.9.3 (#6606)
* Bump typescript from 4.8.4 to 4.9.3 Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.8.4 to 4.9.3. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/compare/v4.8.4...v4.9.3) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Fix type errors Signed-off-by: Sebastian Malton <sebastian@malton.name> Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Sebastian Malton <sebastian@malton.name> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
b19c211cc6
commit
9c64ddd59e
@ -426,7 +426,7 @@
|
|||||||
"typed-emitter": "^1.4.0",
|
"typed-emitter": "^1.4.0",
|
||||||
"typedoc": "0.23.21",
|
"typedoc": "0.23.21",
|
||||||
"typedoc-plugin-markdown": "^3.13.6",
|
"typedoc-plugin-markdown": "^3.13.6",
|
||||||
"typescript": "^4.8.4",
|
"typescript": "^4.9.3",
|
||||||
"typescript-plugin-css-modules": "^3.4.0",
|
"typescript-plugin-css-modules": "^3.4.0",
|
||||||
"webpack": "^5.75.0",
|
"webpack": "^5.75.0",
|
||||||
"webpack-cli": "^4.9.2",
|
"webpack-cli": "^4.9.2",
|
||||||
|
|||||||
@ -4,7 +4,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { Readable } from "readable-stream";
|
import { Readable } from "readable-stream";
|
||||||
import type { ReadableStreamDefaultReadResult } from "stream/web";
|
|
||||||
import type { TypedArray } from "type-fest";
|
import type { TypedArray } from "type-fest";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -24,8 +23,8 @@ export class ReadableWebToNodeStream<T extends TypedArray> extends Readable {
|
|||||||
* Default web API stream reader
|
* Default web API stream reader
|
||||||
* https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamDefaultReader
|
* https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamDefaultReader
|
||||||
*/
|
*/
|
||||||
private reader: ReadableStreamReader<T>;
|
private reader: ReadableStreamDefaultReader<T>;
|
||||||
private pendingRead?: Promise<ReadableStreamDefaultReadResult<T>>;
|
private pendingRead?: Promise<ReadableStreamReadResult<T>>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|||||||
@ -193,8 +193,8 @@ export class LogStore {
|
|||||||
*/
|
*/
|
||||||
getLastSinceTime(tabId: TabId): string {
|
getLastSinceTime(tabId: TabId): string {
|
||||||
const logs = this.podLogs.get(tabId) ?? [];
|
const logs = this.podLogs.get(tabId) ?? [];
|
||||||
const timestamps = this.getTimestamps(logs[logs.length - 1]);
|
const [timestamp] = this.getTimestamps(logs[logs.length - 1]) ?? [];
|
||||||
const stamp = timestamps[0] ? new Date(timestamps[0]) : new Date();
|
const stamp = timestamp ? new Date(timestamp) : new Date();
|
||||||
|
|
||||||
stamp.setSeconds(stamp.getSeconds() + 1); // avoid duplicates from last second
|
stamp.setSeconds(stamp.getSeconds() + 1); // avoid duplicates from last second
|
||||||
|
|
||||||
@ -211,8 +211,8 @@ export class LogStore {
|
|||||||
return [extraction[1], extraction[2]];
|
return [extraction[1], extraction[2]];
|
||||||
}
|
}
|
||||||
|
|
||||||
getTimestamps(logs: string): RegExpMatchArray {
|
getTimestamps(logs: string) {
|
||||||
return logs.match(/^\d+\S+/gm) ?? [];
|
return logs.match(/^\d+\S+/gm);
|
||||||
}
|
}
|
||||||
|
|
||||||
removeTimestamps(logs: string): string {
|
removeTimestamps(logs: string): string {
|
||||||
|
|||||||
@ -12287,10 +12287,10 @@ typescript-plugin-css-modules@^3.4.0:
|
|||||||
stylus "^0.54.8"
|
stylus "^0.54.8"
|
||||||
tsconfig-paths "^3.9.0"
|
tsconfig-paths "^3.9.0"
|
||||||
|
|
||||||
typescript@^4.8.4:
|
typescript@^4.9.3:
|
||||||
version "4.8.4"
|
version "4.9.3"
|
||||||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.8.4.tgz#c464abca159669597be5f96b8943500b238e60e6"
|
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.3.tgz#3aea307c1746b8c384435d8ac36b8a2e580d85db"
|
||||||
integrity sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==
|
integrity sha512-CIfGzTelbKNEnLpLdGFgdyKhG23CKdKgQPOBc+OUNrkJ2vr+KSzsSV5kq5iWhEQbok+quxgGzrAtGWCyU7tHnA==
|
||||||
|
|
||||||
typical@^4.0.0:
|
typical@^4.0.0:
|
||||||
version "4.0.0"
|
version "4.0.0"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user