Remove extra dependency and use browser atob and btoa
This commit is contained in:
parent
5e84dcaa95
commit
9cc94777f2
|
|
@ -62,7 +62,6 @@
|
||||||
"instantsearch.js": "^4.4.1",
|
"instantsearch.js": "^4.4.1",
|
||||||
"interweave": "^12.1.1",
|
"interweave": "^12.1.1",
|
||||||
"interweave-autolink": "^4.0.1",
|
"interweave-autolink": "^4.0.1",
|
||||||
"js-base64": "^3.4.5",
|
|
||||||
"js-sha256": "^0.9.0",
|
"js-sha256": "^0.9.0",
|
||||||
"json-fn": "^1.1.1",
|
"json-fn": "^1.1.1",
|
||||||
"lint-staged": "^9.2.5",
|
"lint-staged": "^9.2.5",
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@ import {
|
||||||
} from "constants/BindingsConstants";
|
} from "constants/BindingsConstants";
|
||||||
import { Action } from "entities/Action";
|
import { Action } from "entities/Action";
|
||||||
import moment from "moment-timezone";
|
import moment from "moment-timezone";
|
||||||
import { atob, btoa, version as BASE64LIBVERSION } from "js-base64";
|
|
||||||
|
|
||||||
type StringTuple = [string, string];
|
type StringTuple = [string, string];
|
||||||
|
|
||||||
|
|
@ -128,18 +127,4 @@ export const extraLibraries: ExtraLibrary[] = [
|
||||||
docsURL: `https://momentjs.com/docs/`,
|
docsURL: `https://momentjs.com/docs/`,
|
||||||
displayName: "moment",
|
displayName: "moment",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
accessor: "btoa",
|
|
||||||
lib: btoa,
|
|
||||||
version: BASE64LIBVERSION,
|
|
||||||
docsURL: "https://github.com/dankogai/js-base64#readme",
|
|
||||||
displayName: "btoa",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
accessor: "atob",
|
|
||||||
lib: atob,
|
|
||||||
version: BASE64LIBVERSION,
|
|
||||||
docsURL: "https://github.com/dankogai/js-base64#readme",
|
|
||||||
displayName: "atob",
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -11776,11 +11776,6 @@ js-base64@^2.1.8:
|
||||||
resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-2.6.4.tgz#f4e686c5de1ea1f867dbcad3d46d969428df98c4"
|
resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-2.6.4.tgz#f4e686c5de1ea1f867dbcad3d46d969428df98c4"
|
||||||
integrity sha512-pZe//GGmwJndub7ZghVHz7vjb2LgC1m8B07Au3eYqeqv9emhESByMXxaEgkUkEqJe87oBbSniGYoQNIBklc7IQ==
|
integrity sha512-pZe//GGmwJndub7ZghVHz7vjb2LgC1m8B07Au3eYqeqv9emhESByMXxaEgkUkEqJe87oBbSniGYoQNIBklc7IQ==
|
||||||
|
|
||||||
js-base64@^3.4.5:
|
|
||||||
version "3.5.2"
|
|
||||||
resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-3.5.2.tgz#3cc800e4f10812b55fb5ec53e7cabaef35dc6d3c"
|
|
||||||
integrity sha512-VG2qfvV5rEQIVxq9UmAVyWIaOdZGt9M16BLu8vFkyWyhv709Hyg4nKUb5T+Ru+HmAr9RHdF+kQDKAhbJlcdKeQ==
|
|
||||||
|
|
||||||
js-sha256@^0.9.0:
|
js-sha256@^0.9.0:
|
||||||
version "0.9.0"
|
version "0.9.0"
|
||||||
resolved "https://registry.yarnpkg.com/js-sha256/-/js-sha256-0.9.0.tgz#0b89ac166583e91ef9123644bd3c5334ce9d0966"
|
resolved "https://registry.yarnpkg.com/js-sha256/-/js-sha256-0.9.0.tgz#0b89ac166583e91ef9123644bd3c5334ce9d0966"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user