anentrypoint-design 0.0.332 → 0.0.334
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/colors_and_type.css +1 -1
- package/dist/247420.css +1 -1
- package/dist/247420.js +23 -23
- package/package.json +5 -2
- package/src/components/freddie.js +2 -2
- package/src/locale.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anentrypoint-design",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.334",
|
|
4
4
|
"description": "247420 design system SDK — webjsx + modified ripple-ui, single-file ESM bundle for reproducible use of the AnEntrypoint design.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/247420.js",
|
|
@@ -84,7 +84,8 @@
|
|
|
84
84
|
"lint:ui-kits": "node scripts/generate-ui-kit-scaffolds.mjs --check",
|
|
85
85
|
"tokens": "node scripts/generate-tokens-json.mjs",
|
|
86
86
|
"generate:ui-kits": "node scripts/generate-ui-kit-scaffolds.mjs",
|
|
87
|
-
"generate:preview-index": "node scripts/generate-preview-index.mjs"
|
|
87
|
+
"generate:preview-index": "node scripts/generate-preview-index.mjs",
|
|
88
|
+
"a11y": "node scripts/a11y-audit.mjs"
|
|
88
89
|
},
|
|
89
90
|
"repository": {
|
|
90
91
|
"type": "git",
|
|
@@ -102,7 +103,9 @@
|
|
|
102
103
|
"access": "public"
|
|
103
104
|
},
|
|
104
105
|
"devDependencies": {
|
|
106
|
+
"axe-core": "^4.12.1",
|
|
105
107
|
"esbuild": "^0.28.0",
|
|
108
|
+
"playwright": "^1.61.1",
|
|
106
109
|
"postcss": "^8.5.12",
|
|
107
110
|
"postcss-prefix-selector": "^2.1.1"
|
|
108
111
|
}
|
|
@@ -761,7 +761,7 @@ export const logs = makePage((ctx) => {
|
|
|
761
761
|
|
|
762
762
|
async function loadSubsystems() {
|
|
763
763
|
try { ctx.set({ subsystems: await api('/api/logs') }); }
|
|
764
|
-
catch (e) { /* non-fatal
|
|
764
|
+
catch (e) { /* swallow: non-fatal, subsystem list is a filter convenience, not required for the stream */ }
|
|
765
765
|
}
|
|
766
766
|
|
|
767
767
|
let unmounted = false;
|
|
@@ -789,7 +789,7 @@ export const logs = makePage((ctx) => {
|
|
|
789
789
|
ctx.onCleanup(() => {
|
|
790
790
|
unmounted = true;
|
|
791
791
|
if (reconnectTimer) clearTimeout(reconnectTimer);
|
|
792
|
-
try { currentWs?.close(); } catch {}
|
|
792
|
+
try { currentWs?.close(); } catch { /* swallow: teardown-only close, socket may already be closed/closing */ }
|
|
793
793
|
unregisterDebug('logs');
|
|
794
794
|
});
|
|
795
795
|
|
package/src/locale.js
CHANGED
|
@@ -60,6 +60,6 @@ export function formatRelativeTime(date, locale = getLocale(), now = Date.now())
|
|
|
60
60
|
if (Math.abs(duration) < division.amount) return rtf.format(Math.round(duration), division.unit);
|
|
61
61
|
duration /= division.amount;
|
|
62
62
|
}
|
|
63
|
-
} catch { /* fall through to the plain-time fallback below */ }
|
|
63
|
+
} catch { /* swallow: Intl.RelativeTimeFormat unsupported/threw, fall through to the plain-time fallback below */ }
|
|
64
64
|
return formatTime(date, locale);
|
|
65
65
|
}
|