diff --git a/.claude/launch.json b/.claude/launch.json index 544754b0..3b5fbd4e 100644 --- a/.claude/launch.json +++ b/.claude/launch.json @@ -13,6 +13,18 @@ ], "port": 3520 }, + { + "name": "pms-public", + "runtimeExecutable": "bun", + "runtimeArgs": [ + "run", + "--cwd", + "D:/Company/pms/apps/public", + "dev", + "--port=3610" + ], + "port": 3610 + }, { "name": "component-showcase", "runtimeExecutable": "bun", diff --git a/packages/csr/src/outputs.ts b/packages/csr/src/outputs.ts index da93c152..c28d8c94 100644 --- a/packages/csr/src/outputs.ts +++ b/packages/csr/src/outputs.ts @@ -30,7 +30,6 @@ export function registerOutputHandler( function reportOutputError(host: OutputHost, name: string, error: unknown): void { const code = "WRN-DEV-OUTPUT-HANDLER-ERROR"; const message = `The handler bound to output '${name}' threw. The control will appear to do nothing.`; - // eslint-disable-next-line no-console console.error(`[${code}] ${message}`, error); try { window.dispatchEvent( diff --git a/packages/db/src/migrate.ts b/packages/db/src/migrate.ts index 11239b93..f973e5ea 100644 --- a/packages/db/src/migrate.ts +++ b/packages/db/src/migrate.ts @@ -52,7 +52,6 @@ function section(content: string, which: "up" | "down"): string { } function hasExecutableSql(sql: string): boolean { - let quote = ""; let lineComment = false; let blockComment = false; for (let index = 0; index < sql.length; index++) { @@ -69,13 +68,6 @@ function hasExecutableSql(sql: string): boolean { } continue; } - if (quote) { - if (char === quote) { - if (next === quote) index++; - else quote = ""; - } - continue; - } if (char === "-" && next === "-") { lineComment = true; index++; @@ -86,10 +78,9 @@ function hasExecutableSql(sql: string): boolean { index++; continue; } - if (char === "'" || char === '"' || char === "`") { - quote = char; - return true; - } + // A quote opens a literal, which is executable content in itself, so the + // scan can stop here without tracking the literal's contents. + if (char === "'" || char === '"' || char === "`") return true; if (!/\s|;/.test(char)) return true; } return false;