Skip to content

Commit

Permalink
Node Fetch Is Back (#3106)
Browse files Browse the repository at this point in the history
* Update Jest for All Projects
* Use Node Fetch in Electron
  • Loading branch information
jameskerr authored Jun 20, 2024
1 parent 10d8974 commit 508a6ae
Show file tree
Hide file tree
Showing 5 changed files with 133 additions and 1,507 deletions.
4 changes: 2 additions & 2 deletions apps/zui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@
"got": "^10.7.0",
"husky": "^7.0.4",
"is-wsl": "^2.2.0",
"jest": "^28.0.0",
"jest": "^29.7.0",
"jest-css-modules-transform": "^4.4.2",
"jest-environment-jsdom": "^28.0.0",
"jest-environment-jsdom": "^29.7.0",
"js-yaml": "^4.1.0",
"jwt-decode": "^3.1.2",
"lint-staged": "^12.1.5",
Expand Down
4 changes: 2 additions & 2 deletions apps/zui/src/core/electron-zed-client.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Client} from "@brimdata/zed-node"
import {net} from "electron"
import nodeFetch from "node-fetch"

export class ElectronZedClient extends Client {
fetch = net.fetch
fetch = nodeFetch
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
"esbuild": "^0.17.12",
"eslint": "~8.15.0",
"eslint-config-prettier": "8.1.0",
"jest": "^29.4.1",
"jest-environment-jsdom": "^29.4.1",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-environment-node": "^29.4.1",
"nx": "16.10.0",
"open-cli": "^7.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/zed-wasm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@types/node": "^20.11.0",
"esbuild": "^0.17.12",
"golang-wasm": "github:teamortix/golang-wasm#master",
"jest": "^29.4.1",
"jest": "^29.7.0",
"npm-run-all": "^4.1.5",
"serve": "^14.2.1"
},
Expand Down
Loading

0 comments on commit 508a6ae

Please sign in to comment.