mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-06-19 01:46:27 +08:00
[internals][js] move Base64 util to shared utils
This commit is contained in:
@@ -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."
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user