[internals][js] move Base64 util to shared utils
This commit is contained in:
parent
d493e00a67
commit
374c617672
|
@ -1,4 +1,4 @@
|
|||
import Base64 from './utils/Base64';
|
||||
import Base64 from './../../utils/Base64';
|
||||
|
||||
export default class Blob {
|
||||
_binaryString: string;
|
||||
|
|
|
@ -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."
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue