Files
headroom/frontend/node_modules/assertion-error/index.js
Santhosh Janardhanan de2d83092e feat: Reinitialize frontend with SvelteKit and TypeScript
- Delete old Vite+Svelte frontend
- Initialize new SvelteKit project with TypeScript
- Configure Tailwind CSS v4 + DaisyUI
- Implement JWT authentication with auto-refresh
- Create login page with form validation (Zod)
- Add protected route guards
- Update Docker configuration for single-stage build
- Add E2E tests with Playwright (6/11 passing)
- Fix Svelte 5 reactivity with $state() runes

Known issues:
- 5 E2E tests failing (timing/async issues)
- Token refresh implementation needs debugging
- Validation error display timing
2026-02-17 16:19:59 -05:00

61 lines
1.4 KiB
JavaScript

// deno-fmt-ignore-file
// deno-lint-ignore-file
// This code was bundled using `deno bundle` and it's not recommended to edit it manually
const canElideFrames = "captureStackTrace" in Error;
class AssertionError extends Error {
message;
get name() {
return "AssertionError";
}
get ok() {
return false;
}
constructor(message = "Unspecified AssertionError", props, ssf){
super(message);
this.message = message;
if (canElideFrames) {
Error.captureStackTrace(this, ssf || AssertionError);
}
for(const key in props){
if (!(key in this)) {
this[key] = props[key];
}
}
}
toJSON(stack) {
return {
...this,
name: this.name,
message: this.message,
ok: false,
stack: stack !== false ? this.stack : undefined
};
}
}
class AssertionResult {
get name() {
return "AssertionResult";
}
get ok() {
return true;
}
constructor(props){
for(const key in props){
if (!(key in this)) {
this[key] = props[key];
}
}
}
toJSON() {
return {
...this,
name: this.name,
ok: this.ok
};
}
}
export { AssertionError as AssertionError };
export { AssertionResult as AssertionResult };