Using native fetch on supported browsers

This commit is contained in:
Fabian Stamm 2019-03-08 21:19:28 -05:00
parent 8e0b859408
commit c63ff06453
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@hibas123/secure-file-wrapper",
"version": "2.3.2",
"version": "2.3.3",
"main": "lib/index.js",
"author": "Fabian Stamm <dev@fabianstamm.de>",
"license": "MIT",

View File

@ -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;