Skip to content

Commit

Permalink
remove urlparams
Browse files Browse the repository at this point in the history
  • Loading branch information
blackstorm committed May 29, 2023
1 parent 8267c3d commit bfa1cbb
Show file tree
Hide file tree
Showing 6 changed files with 14,326 additions and 11 deletions.
2,866 changes: 2,864 additions & 2 deletions dist/pocketbase.cjs.js

Large diffs are not rendered by default.

2,864 changes: 2,862 additions & 2 deletions dist/pocketbase.es.js

Large diffs are not rendered by default.

2,864 changes: 2,862 additions & 2 deletions dist/pocketbase.es.mjs

Large diffs are not rendered by default.

2,869 changes: 2,867 additions & 2 deletions dist/pocketbase.iife.js

Large diffs are not rendered by default.

2,872 changes: 2,870 additions & 2 deletions dist/pocketbase.umd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/services/FileService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default class FileService extends BaseService {
let result = this.client.buildUrl(parts.join('/'));

if (Object.keys(queryParams).length) {
const params = new URLSearchParams(queryParams);
const params = Object.entries(queryParams).map(([key, val]) => `${key}=${encodeURIComponent(val)}`).join('&');
result += (result.includes("?") ? "&" : "?") + params;
}

Expand Down

0 comments on commit bfa1cbb

Please sign in to comment.