File tree 3 files changed +7
-15
lines changed
3 files changed +7
-15
lines changed Original file line number Diff line number Diff line change 59
59
"@firebase/webchannel-wrapper" : " 0.2.41" ,
60
60
"@grpc/grpc-js" : " 0.8.1" ,
61
61
"@grpc/proto-loader" : " ^0.5.0" ,
62
- "js-base64" : " 2.5.2" ,
63
62
"tslib" : " 1.11.1"
64
63
},
65
64
"peerDependencies" : {
70
69
"@firebase/app-exp" : " 0.x" ,
71
70
"@firebase/app-types-exp" : " 0.x" ,
72
71
"@types/json-stable-stringify" : " 1.0.32" ,
73
- "@types/js-base64" : " 2.3.1" ,
74
72
"json-stable-stringify" : " 1.0.1" ,
75
73
"protobufjs" : " 6.9.0" ,
76
74
"rollup" : " 2.7.6" ,
Original file line number Diff line number Diff line change 16
16
*/
17
17
18
18
import { BrowserPlatform } from '../platform_browser/browser_platform' ;
19
- import { Base64 } from 'js-base64 ' ;
19
+ import { base64 } from '@firebase/util ' ;
20
20
21
21
// Implements the Platform API for ReactNative.
22
22
export class ReactNativePlatform extends BrowserPlatform {
23
23
readonly base64Available = true ;
24
24
25
25
atob ( encoded : string ) : string {
26
- return Base64 . decode ( encoded ) ;
26
+ // WebSafe uses a different URL-encoding safe alphabet that doesn't match
27
+ // the encoding used on the backend.
28
+ return base64 . decodeString ( encoded , /* webSafe =*/ false ) ;
27
29
}
28
30
29
31
btoa ( raw : string ) : string {
30
- return Base64 . encode ( raw ) ;
32
+ // WebSafe uses a different URL-encoding safe alphabet that doesn't match
33
+ // the encoding used on the backend.
34
+ return base64 . encodeString ( raw , /* webSafe =*/ false ) ;
31
35
}
32
36
}
Original file line number Diff line number Diff line change 2130
2130
"@types/minimatch" "*"
2131
2131
"@types/node" "*"
2132
2132
2133
-
2134
- version "2.3.1"
2135
- resolved "https://registry.npmjs.org/@types/js-base64/-/js-base64-2.3.1.tgz#c39f14f129408a3d96a1105a650d8b2b6eeb4168"
2136
- integrity sha512-4RKbhIDGC87s4EBy2Cp2/5S2O6kmCRcZnD5KRCq1q9z2GhBte1+BdsfVKCpG8yKpDGNyEE2G6IqFIh6W2YwWPA==
2137
-
2138
2133
"@types/json-schema@^7.0.3":
2139
2134
version "7.0.4"
2140
2135
resolved "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.4.tgz#38fd73ddfd9b55abb1e1b2ed578cb55bd7b7d339"
@@ -8735,11 +8730,6 @@ jquery@^3.4.1:
8735
8730
resolved "https://registry.npmjs.org/jquery/-/jquery-3.4.1.tgz#714f1f8d9dde4bdfa55764ba37ef214630d80ef2"
8736
8731
integrity sha512-36+AdBzCL+y6qjw5Tx7HgzeGCzC81MDDgaUP8ld2zhx58HdqXGoBd+tHdrBMiyjGQs0Hxs/MLZTu/eHNJJuWPw==
8737
8732
8738
-
8739
- version "2.5.2"
8740
- resolved "https://registry.npmjs.org/js-base64/-/js-base64-2.5.2.tgz#313b6274dda718f714d00b3330bbae6e38e90209"
8741
- integrity sha512-Vg8czh0Q7sFBSUMWWArX/miJeBWYBPpdU/3M/DKSaekLMqrqVPaedp+5mZhie/r0lgrcaYBfwXatEew6gwgiQQ==
8742
-
8743
8733
"js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0:
8744
8734
version "4.0.0"
8745
8735
resolved "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499"
You can’t perform that action at this time.
0 commit comments