Exclude btoa in browser

This commit is contained in:
Tino Fuhrmann
2020-06-01 01:30:45 +02:00
parent 21861bd27f
commit 86daa2b994
2 changed files with 4 additions and 0 deletions

View File

@@ -1,7 +1,9 @@
import {RequestContext} from '../http/http';
// typings for btoa are incorrect
{{#node}}
//@ts-ignore
import * as btoa from "btoa";
{{/node}}
/**
* Base class for all authentication schemes.

View File

@@ -43,7 +43,9 @@
{{#useRxJS}}
"rxjs": "^6.4.0",
{{/useRxJS}}
{{#node}}
"btoa": "^1.2.1",
{{/node}}
"es6-promise": "^4.2.4",
"url-parse": "^1.4.3"
},