Compare commits

..

4 Commits

Author SHA1 Message Date
50c2e5f427 Ensure that the ApiErrorCode type is exported
All checks were successful
Publish Package / build-and-publish (push) Successful in 11s
2026-04-28 17:52:45 +01:00
eb8bee65d9 Fix module res?
All checks were successful
Publish Package / build-and-publish (push) Successful in 7s
2026-04-27 23:48:08 +01:00
fc4c8745a6 Fix the date validator, was checking indexes, not values!
All checks were successful
Publish Package / build-and-publish (push) Successful in 8s
2026-04-27 23:39:36 +01:00
0474973588 Fix path to train module
All checks were successful
Publish Package / build-and-publish (push) Successful in 8s
2026-04-27 23:31:43 +01:00
4 changed files with 5 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
export { OwlBoardClient } from './lib/client.js';
export { ValidationError, ApiError } from './lib/errors.js';
export { ValidationError, ApiError, type ApiErrorCode } from './lib/errors.js';
// Re-export API Schema types
export type * from '@owlboard/api-schema-types'

View File

@@ -2,7 +2,7 @@ import { BaseClient } from "./base.js";
import { PisModule } from "../modules/pis.js";
import { LocationFilterModule } from "../modules/locationFilter.js";
import { StationDataModule } from "../modules/stationData.js";
import { TrainsModule } from "src/modules/trains.js";
import { TrainsModule } from "../modules/trains.js";
export class OwlBoardClient extends BaseClient {
public readonly pis: PisModule;

View File

@@ -97,7 +97,7 @@ export const IsValidDateStr = (s: string): boolean => {
for (let i = 0; i < 10; i++) {
if (i === 4 || i === 7) continue;
const c = s.charCodeAt(i);
if (!isDigit(i)) return false;
if (!isDigit(c)) return false;
}
const y = parseInt(s.substring(0, 4), 10);

View File

@@ -7,9 +7,9 @@
// Environment Settings
// See also https://aka.ms/tsconfig/module
"module": "esnext",
"module": "nodenext",
"target": "esnext",
"moduleResolution": "bundler",
"moduleResolution": "nodenext",
"baseUrl": ".",
"types": [],
// For nodejs: