Skip to content

Commit

Permalink
Merge pull request #269 from kaorun343/electron-16
Browse files Browse the repository at this point in the history
Update Node.js and SQLite versions in package.json and workflows
  • Loading branch information
morishin authored Nov 8, 2023
2 parents 95c368f + 5f4a410 commit 1752c2b
Show file tree
Hide file tree
Showing 5 changed files with 441 additions and 410 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/prepare_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "14"
node-version: "16"
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "14"
node-version: "16"
- run: sudo apt-get install xvfb
if: ${{ matrix.os == 'ubuntu-latest' }}
- name: Get yarn cache directory path
Expand Down Expand Up @@ -62,7 +62,7 @@ jobs:
# - uses: actions/checkout@v2
# - uses: actions/setup-node@v2
# with:
# node-version: "14"
# node-version: "16"
# - run: sudo apt-get install xvfb
# - name: Get yarn cache directory path
# id: yarn-cache-dir-path
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"react-modal": "3.1.10",
"react-select": "~3.0.8",
"react-splitter-layout": "4.0.0",
"sqlite3": "^5.0.2",
"sqlite3": "^5.1.6",
"td": "0.4.0"
},
"devDependencies": {
Expand Down Expand Up @@ -105,7 +105,7 @@
},
"license": "MIT",
"volta": {
"node": "14.21.3",
"node": "16.20.2",
"yarn": "1.22.19"
}
}
4 changes: 2 additions & 2 deletions src/lib/DataSourceDefinition/SQLite3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ export default class SQLite3 extends Base {
if (results.length === 0) {
return resolve({ rows: [], fields: [] });
}
const fields = Object.keys(results[0]);
const rows = results.map<(string | null)[]>((r) => Object.values(r));
const fields = Object.keys(results[0] as string[]);
const rows = results.map<(string | null)[]>((r) => Object.values(r as any));
resolve({ fields, rows });
});
});
Expand Down
Loading

0 comments on commit 1752c2b

Please sign in to comment.