Skip to content

Commit

Permalink
Fix typing, re-add linting
Browse files Browse the repository at this point in the history
  • Loading branch information
tw4l committed Apr 2, 2024
1 parent fa384d9 commit ee15f71
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
# - run: npm run lint
- run: npm run lint
- run: npm run test
- run: npm run build
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 1 addition & 6 deletions src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,7 @@ export function jsonToQueryParams(json: string | any, ignoreInvalid = true) {
// if object, attempt to recurse through key/value pairs
if (typeof(jsonObj) === "object" && !(jsonObj instanceof Array)) {
try {
const keys = Object.keys(jsonObj);
for (let i=0; i < keys.length; i++) {
// @ts-ignore
const key = keys[i];
// @ts-ignore
const value = jsonObj[key];
for (const [key, value] of Object.entries(jsonObj)) {
parser(value, key);
}
} catch (e) {
Expand Down

0 comments on commit ee15f71

Please sign in to comment.