Skip to content

Commit

Permalink
Update packages/brisa/src/utils/file-system-router/index.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Aral Roca Gomez <[email protected]>
  • Loading branch information
AlbertSabate and aralroca authored Dec 20, 2024
1 parent 06ceffb commit c90506e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/brisa/src/utils/file-system-router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ function getParamsAndQuery(route: string, pathname: string, url: URL) {
{} as Record<string, string | string[]>,
);

const query = { ...params, ...Object.fromEntries(url.searchParams) };
const query = { ...params, ...getURLParams(url) };

Check failure on line 133 in packages/brisa/src/utils/file-system-router/index.ts

View workflow job for this annotation

GitHub Actions / bun-tests (ubuntu-latest)

ReferenceError: Can't find variable: getURLParams

at getParamsAndQuery (/home/runner/work/brisa/brisa/packages/brisa/src/utils/file-system-router/index.ts:133:33) at match (/home/runner/work/brisa/brisa/packages/brisa/src/utils/file-system-router/index.ts:56:14) at /home/runner/work/brisa/brisa/packages/brisa/src/utils/get-route-matcher/index.ts:34:30 at reduce (1:11) at getRouteMatcher (/home/runner/work/brisa/brisa/packages/brisa/src/utils/get-route-matcher/index.ts:32:44) at /home/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.tsx:62:21 at getServeOptions (/home/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.tsx:31:38) at /home/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.test.tsx:32:5

Check failure on line 133 in packages/brisa/src/utils/file-system-router/index.ts

View workflow job for this annotation

GitHub Actions / bun-tests (ubuntu-latest)

ReferenceError: Can't find variable: getURLParams

at getParamsAndQuery (/home/runner/work/brisa/brisa/packages/brisa/src/utils/file-system-router/index.ts:133:33) at match (/home/runner/work/brisa/brisa/packages/brisa/src/utils/file-system-router/index.ts:56:14) at /home/runner/work/brisa/brisa/packages/brisa/src/utils/get-route-matcher/index.ts:34:30 at reduce (1:11) at getRouteMatcher (/home/runner/work/brisa/brisa/packages/brisa/src/utils/get-route-matcher/index.ts:32:44) at /home/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.tsx:62:21 at getServeOptions (/home/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.tsx:31:38) at /home/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.test.tsx:32:5

Check failure on line 133 in packages/brisa/src/utils/file-system-router/index.ts

View workflow job for this annotation

GitHub Actions / bun-tests (ubuntu-latest)

ReferenceError: Can't find variable: getURLParams

at getParamsAndQuery (/home/runner/work/brisa/brisa/packages/brisa/src/utils/file-system-router/index.ts:133:33) at match (/home/runner/work/brisa/brisa/packages/brisa/src/utils/file-system-router/index.ts:56:14) at /home/runner/work/brisa/brisa/packages/brisa/src/utils/get-route-matcher/index.ts:34:30 at reduce (1:11) at getRouteMatcher (/home/runner/work/brisa/brisa/packages/brisa/src/utils/get-route-matcher/index.ts:32:44) at /home/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.tsx:62:21 at getServeOptions (/home/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.tsx:31:38) at /home/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.test.tsx:32:5

Check failure on line 133 in packages/brisa/src/utils/file-system-router/index.ts

View workflow job for this annotation

GitHub Actions / bun-tests (ubuntu-latest)

ReferenceError: Can't find variable: getURLParams

at getParamsAndQuery (/home/runner/work/brisa/brisa/packages/brisa/src/utils/file-system-router/index.ts:133:33) at match (/home/runner/work/brisa/brisa/packages/brisa/src/utils/file-system-router/index.ts:56:14) at /home/runner/work/brisa/brisa/packages/brisa/src/utils/get-route-matcher/index.ts:34:30 at reduce (1:11) at getRouteMatcher (/home/runner/work/brisa/brisa/packages/brisa/src/utils/get-route-matcher/index.ts:32:44) at /home/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.tsx:62:21 at getServeOptions (/home/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.tsx:31:38) at /home/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.test.tsx:32:5

Check failure on line 133 in packages/brisa/src/utils/file-system-router/index.ts

View workflow job for this annotation

GitHub Actions / bun-tests (ubuntu-latest)

ReferenceError: Can't find variable: getURLParams

at getParamsAndQuery (/home/runner/work/brisa/brisa/packages/brisa/src/utils/file-system-router/index.ts:133:33) at match (/home/runner/work/brisa/brisa/packages/brisa/src/utils/file-system-router/index.ts:56:14) at /home/runner/work/brisa/brisa/packages/brisa/src/utils/get-route-matcher/index.ts:34:30 at reduce (1:11) at getRouteMatcher (/home/runner/work/brisa/brisa/packages/brisa/src/utils/get-route-matcher/index.ts:32:44) at /home/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.tsx:62:21 at getServeOptions (/home/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.tsx:31:38) at /home/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.test.tsx:32:5

Check failure on line 133 in packages/brisa/src/utils/file-system-router/index.ts

View workflow job for this annotation

GitHub Actions / bun-tests (ubuntu-latest)

ReferenceError: Can't find variable: getURLParams

at getParamsAndQuery (/home/runner/work/brisa/brisa/packages/brisa/src/utils/file-system-router/index.ts:133:33) at match (/home/runner/work/brisa/brisa/packages/brisa/src/utils/file-system-router/index.ts:56:14) at /home/runner/work/brisa/brisa/packages/brisa/src/utils/get-route-matcher/index.ts:34:30 at reduce (1:11) at getRouteMatcher (/home/runner/work/brisa/brisa/packages/brisa/src/utils/get-route-matcher/index.ts:32:44) at /home/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.tsx:62:21 at getServeOptions (/home/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.tsx:31:38) at /home/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.test.tsx:32:5

Check failure on line 133 in packages/brisa/src/utils/file-system-router/index.ts

View workflow job for this annotation

GitHub Actions / bun-tests (ubuntu-latest)

ReferenceError: Can't find variable: getURLParams

at getParamsAndQuery (/home/runner/work/brisa/brisa/packages/brisa/src/utils/file-system-router/index.ts:133:33) at match (/home/runner/work/brisa/brisa/packages/brisa/src/utils/file-system-router/index.ts:56:14) at /home/runner/work/brisa/brisa/packages/brisa/src/utils/get-route-matcher/index.ts:34:30 at reduce (1:11) at getRouteMatcher (/home/runner/work/brisa/brisa/packages/brisa/src/utils/get-route-matcher/index.ts:32:44) at /home/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.tsx:62:21 at getServeOptions (/home/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.tsx:31:38) at /home/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.test.tsx:32:5

Check failure on line 133 in packages/brisa/src/utils/file-system-router/index.ts

View workflow job for this annotation

GitHub Actions / bun-tests (ubuntu-latest)

ReferenceError: Can't find variable: getURLParams

at getParamsAndQuery (/home/runner/work/brisa/brisa/packages/brisa/src/utils/file-system-router/index.ts:133:33) at match (/home/runner/work/brisa/brisa/packages/brisa/src/utils/file-system-router/index.ts:56:14) at /home/runner/work/brisa/brisa/packages/brisa/src/utils/get-route-matcher/index.ts:34:30 at reduce (1:11) at getRouteMatcher (/home/runner/work/brisa/brisa/packages/brisa/src/utils/get-route-matcher/index.ts:32:44) at /home/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.tsx:62:21 at getServeOptions (/home/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.tsx:31:38) at /home/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.test.tsx:32:5

Check failure on line 133 in packages/brisa/src/utils/file-system-router/index.ts

View workflow job for this annotation

GitHub Actions / bun-tests (ubuntu-latest)

ReferenceError: Can't find variable: getURLParams

at getParamsAndQuery (/home/runner/work/brisa/brisa/packages/brisa/src/utils/file-system-router/index.ts:133:33) at match (/home/runner/work/brisa/brisa/packages/brisa/src/utils/file-system-router/index.ts:56:14) at /home/runner/work/brisa/brisa/packages/brisa/src/utils/get-route-matcher/index.ts:34:30 at reduce (1:11) at getRouteMatcher (/home/runner/work/brisa/brisa/packages/brisa/src/utils/get-route-matcher/index.ts:32:44) at /home/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.tsx:62:21 at getServeOptions (/home/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.tsx:31:38) at /home/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.test.tsx:32:5
for (const key of url.searchParams.keys()) {
query[key] = url.searchParams.getAll(key);
if (query[key].length === 1) {
Expand Down

0 comments on commit c90506e

Please sign in to comment.