[internals][js] move Base64 util to shared utils

This commit is contained in:
Salakar 2018-05-03 21:54:45 +01:00
parent d493e00a67
commit 374c617672
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
import Base64 from './utils/Base64';
import Base64 from './../../utils/Base64';
export default class Blob {
_binaryString: string;

View File

@ -24,7 +24,7 @@ export default {
if (charCode > 0xff) {
throw new Error(
"'firestore.utils.btoa' failed: The string to be encoded contains characters outside of the Latin1 range."
"'RNFirebase.utils.btoa' failed: The string to be encoded contains characters outside of the Latin1 range."
);
}
@ -48,7 +48,7 @@ export default {
if (str.length % 4 === 1) {
throw new Error(
"'firestore.utils.atob' failed: The string to be decoded is not correctly encoded."
"'RNFirebase.utils.atob' failed: The string to be decoded is not correctly encoded."
);
}