diff --git a/package.json b/package.json index f849cb7c4..65ec6a5a2 100644 --- a/package.json +++ b/package.json @@ -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 ", diff --git a/src/fetchConn.ts b/src/fetchConn.ts index 1c8ba0bfc..584e20cfe 100644 --- a/src/fetchConn.ts +++ b/src/fetchConn.ts @@ -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 {