Skip to content

Commit 693dffd

Browse files
committed
fix timestamp
1 parent db4aa46 commit 693dffd

3 files changed

Lines changed: 22 additions & 18 deletions

File tree

bun.lock

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"hash-wasm": "^4.12.0",
2323
"history": "^5.3.0",
2424
"json-diff-kit": "^1.0.35",
25-
"react": "^19.2.4",
26-
"react-dom": "^19.2.4",
25+
"react": "^19.2.5",
26+
"react-dom": "^19.2.5",
2727
"react-router-dom": "^7.14.0",
2828
"ua-parser-js": "^2.0.9",
2929
"vanilla-jsoneditor": "^3.12.0",
@@ -37,7 +37,7 @@
3737
"@types/react": "^19",
3838
"@types/react-dom": "^19",
3939
"@types/react-router-dom": "^5.3.3",
40-
"@typescript/native-preview": "^7.0.0-dev.20260407.1",
40+
"@typescript/native-preview": "^7.0.0-dev.20260408.1",
4141
"mitata": "^1.0.34",
4242
"tailwindcss": "^4.2.2",
4343
"typescript": "^6.0.2"

src/utils/hooks.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,12 @@ const buildPackageMetricValue = ({
1818
buildTime,
1919
}: Pick<Package, 'name' | 'buildTime'>) => `${name}_${buildTime || 'unknown'}`;
2020

21-
const isZeroTimestamp = (timestamp: string) => {
21+
const isIgnoredTimestamp = (timestamp: string) => {
2222
const normalizedTimestamp = timestamp.trim();
23+
if (normalizedTimestamp === 'unknown') {
24+
return true;
25+
}
26+
2327
return normalizedTimestamp !== '' && Number(normalizedTimestamp) === 0;
2428
};
2529

@@ -87,7 +91,7 @@ export const getPackageTimestampWarnings = ({
8791
const timestamp = metricValue.startsWith(`${matchedPackage.pkg.name}_`)
8892
? metricValue.slice(matchedPackage.pkg.name.length + 1) || 'unknown'
8993
: metricValue;
90-
if (isZeroTimestamp(timestamp)) {
94+
if (isIgnoredTimestamp(timestamp)) {
9195
continue;
9296
}
9397
const currentWarningTimestamps =

0 commit comments

Comments
 (0)