diff --git a/package.json b/package.json index abe7cfd..ca4dcdf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hibas123/secure-file-wrapper", - "version": "2.3.2", + "version": "2.3.3", "main": "lib/index.js", "author": "Fabian Stamm ", "license": "MIT", diff --git a/src/index.ts b/src/index.ts index 4c62a8e..c3ef6e3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,5 +1,6 @@ import { Observable, Lock } from "@hibas123/utils"; -import fetch from "cross-fetch" +//this references global on node and window in browser +const fetch = this.fetch ? this.fetch : require("cross-fetch").default; export interface IFileVersion { version: string;