fix: remove js-base64
This commit is contained in:
parent
54f6de1768
commit
edddfc9d9c
|
|
@ -13,7 +13,6 @@
|
||||||
"axios": "^0.21.1",
|
"axios": "^0.21.1",
|
||||||
"codemirror": "^5.61.1",
|
"codemirror": "^5.61.1",
|
||||||
"detect-browser": "^5.2.0",
|
"detect-browser": "^5.2.0",
|
||||||
"js-base64": "^3.6.1",
|
|
||||||
"mobx": "^5.15.6",
|
"mobx": "^5.15.6",
|
||||||
"mobx-react": "^6.3.0",
|
"mobx-react": "^6.3.0",
|
||||||
"mobx-utils": "^5.6.1",
|
"mobx-utils": "^5.6.1",
|
||||||
|
|
@ -45,7 +44,6 @@
|
||||||
"@types/codemirror": "5.60.0",
|
"@types/codemirror": "5.60.0",
|
||||||
"@types/detect-browser": "^4.0.0",
|
"@types/detect-browser": "^4.0.0",
|
||||||
"@types/get-port": "^4.0.0",
|
"@types/get-port": "^4.0.0",
|
||||||
"@types/js-base64": "^3.3.1",
|
|
||||||
"@types/node": "^15.12.2",
|
"@types/node": "^15.12.2",
|
||||||
"@types/notifyjs": "^3.0.2",
|
"@types/notifyjs": "^3.0.2",
|
||||||
"@types/puppeteer": "^5.4.6",
|
"@types/puppeteer": "^5.4.6",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
import axios, {AxiosError, AxiosResponse} from 'axios';
|
import axios, {AxiosError, AxiosResponse} from 'axios';
|
||||||
import * as config from './config';
|
import * as config from './config';
|
||||||
import {Base64} from 'js-base64';
|
|
||||||
import {detect} from 'detect-browser';
|
import {detect} from 'detect-browser';
|
||||||
import {SnackReporter} from './snack/SnackManager';
|
import {SnackReporter} from './snack/SnackManager';
|
||||||
import {observable} from 'mobx';
|
import {observable} from 'mobx';
|
||||||
|
|
@ -75,7 +74,7 @@ export class CurrentUser {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
data: {name},
|
data: {name},
|
||||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||||
headers: {Authorization: 'Basic ' + Base64.encode(username + ':' + password)},
|
headers: {Authorization: 'Basic ' + btoa(username + ':' + password)},
|
||||||
})
|
})
|
||||||
.then((resp: AxiosResponse<IClient>) => {
|
.then((resp: AxiosResponse<IClient>) => {
|
||||||
this.snack(`A client named '${name}' was created for your session.`);
|
this.snack(`A client named '${name}' was created for your session.`);
|
||||||
|
|
|
||||||
12
ui/yarn.lock
12
ui/yarn.lock
|
|
@ -991,13 +991,6 @@
|
||||||
resolved "https://registry.yarnpkg.com/@types/history/-/history-4.7.9.tgz#1cfb6d60ef3822c589f18e70f8b12f9a28ce8724"
|
resolved "https://registry.yarnpkg.com/@types/history/-/history-4.7.9.tgz#1cfb6d60ef3822c589f18e70f8b12f9a28ce8724"
|
||||||
integrity sha512-MUc6zSmU3tEVnkQ78q0peeEjKWPUADMlC/t++2bI8WnAG2tvYRPIgHG8lWkXwqc8MsUF6Z2MOf+Mh5sazOmhiQ==
|
integrity sha512-MUc6zSmU3tEVnkQ78q0peeEjKWPUADMlC/t++2bI8WnAG2tvYRPIgHG8lWkXwqc8MsUF6Z2MOf+Mh5sazOmhiQ==
|
||||||
|
|
||||||
"@types/js-base64@^3.3.1":
|
|
||||||
version "3.3.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/@types/js-base64/-/js-base64-3.3.1.tgz#36c2d6dc126277ea28a4d0599d0cafbf547b51e6"
|
|
||||||
integrity sha512-Zw33oQNAvDdAN9b0IE5stH0y2MylYvtU7VVTKEJPxhyM2q57CVaNJhtJW258ah24NRtaiA23tptUmVn3dmTKpw==
|
|
||||||
dependencies:
|
|
||||||
js-base64 "*"
|
|
||||||
|
|
||||||
"@types/json-schema@^7.0.7":
|
"@types/json-schema@^7.0.7":
|
||||||
version "7.0.9"
|
version "7.0.9"
|
||||||
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.9.tgz#97edc9037ea0c38585320b28964dde3b39e4660d"
|
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.9.tgz#97edc9037ea0c38585320b28964dde3b39e4660d"
|
||||||
|
|
@ -2570,11 +2563,6 @@ joi@^17.3.0:
|
||||||
"@sideway/formula" "^3.0.0"
|
"@sideway/formula" "^3.0.0"
|
||||||
"@sideway/pinpoint" "^2.0.0"
|
"@sideway/pinpoint" "^2.0.0"
|
||||||
|
|
||||||
js-base64@*, js-base64@^3.6.1:
|
|
||||||
version "3.7.2"
|
|
||||||
resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-3.7.2.tgz#816d11d81a8aff241603d19ce5761e13e41d7745"
|
|
||||||
integrity sha512-NnRs6dsyqUXejqk/yv2aiXlAvOs56sLkX6nUdeaNezI5LFFLlsZjOThmwnrcwh5ZZRwZlCMnVAY3CvhIhoVEKQ==
|
|
||||||
|
|
||||||
"js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0:
|
"js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0:
|
||||||
version "4.0.0"
|
version "4.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499"
|
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue