952354c1dd
* Improve performances of `lexParseJsonBytes` function * tidy * tidy * Add test for repeated keys; fix import order in bench file Agent-Logs-Url: https://github.com/bluesky-social/atproto/sessions/3cb30e99-4d11-4396-82a3-79c2eb5ca6cf Co-authored-by: matthieusieben <813661+matthieusieben@users.noreply.github.com> * Fix `lexParseJsonBytes` strict mode to match `lexParse` behavior (#4843) * Initial plan * Fix lexParseJsonBytes strict mode to match lexParse behavior - Fix parseNull/parseTrue/parseFalse to throw SyntaxError with 'Unexpected token' (matching JSON.parse) - Fix parseNumber to compute full value before validating, throw TypeError('Invalid non-integer number: ${value}') in strict mode (matching lexParse) - Fix parseObject to throw TypeError (not SyntaxError) for invalid $bytes, $link, and blob objects - Use parseTypedBlobRef instead of isBlobRef for blob validation - Add $type empty string check and improve $type error messages - Update incorrect test: 1e10 is a safe integer and should not throw in strict mode - Add comprehensive strict vs non-strict mode parity tests for lexParseJsonBytes vs lexParse Agent-Logs-Url: https://github.com/bluesky-social/atproto/sessions/c72e3862-277f-4f61-b4eb-b5a334e42647 Co-authored-by: matthieusieben <813661+matthieusieben@users.noreply.github.com> * Improve code comment in parseNumber Agent-Logs-Url: https://github.com/bluesky-social/atproto/sessions/c72e3862-277f-4f61-b4eb-b5a334e42647 Co-authored-by: matthieusieben <813661+matthieusieben@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: matthieusieben <813661+matthieusieben@users.noreply.github.com> * tidy * tidy * tests * tidy --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: matthieusieben <813661+matthieusieben@users.noreply.github.com>
10 lines
216 B
JSON
10 lines
216 B
JSON
{
|
|
"extends": "../../../tsconfig/vitest.json",
|
|
"include": ["./tests", "./src/**/*.bench.ts", "./src/**/*.test.ts"],
|
|
"compilerOptions": {
|
|
"noImplicitAny": true,
|
|
"rootDir": "./",
|
|
"baseUrl": "./"
|
|
}
|
|
}
|