Skip to content

Commit

Permalink
Fix fetchConn in browser
Browse files Browse the repository at this point in the history
  • Loading branch information
jaclarke committed Apr 1, 2022
1 parent 8f2b56a commit 6c581b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "edgedb",
"version": "0.20.4",
"version": "0.20.5",
"description": "The official Node.js client library for EdgeDB",
"homepage": "https://edgedb.com/docs",
"author": "EdgeDB <info@edgedb.com>",
Expand Down
2 changes: 1 addition & 1 deletion src/fetchConn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import * as chars from "./primitives/chars";
if (typeof fetch === "undefined") {
// Pre 17.5 NodeJS environment.
// @ts-ignore
var fetch = require("node-fetch"); // tslint:disable-line
globalThis.fetch = require("node-fetch"); // tslint:disable-line
}

interface FetchConfig {
Expand Down

0 comments on commit 6c581b2

Please sign in to comment.