File tree 2 files changed +6
-7
lines changed
2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 1
- export function toBase64 ( input : string ) : string {
2
- const bytes = new TextEncoder ( ) . encode ( input )
3
- const string = String . fromCodePoint ( ...bytes )
4
- return btoa ( string )
5
- }
6
-
7
1
export function fromBase64 ( base64 : string ) : Buffer | Uint8Array | string {
8
2
const string = atob ( base64 )
9
3
const bytes = Uint8Array . from ( string , v => v . codePointAt ( 0 ) ?? 0 )
10
4
return new TextDecoder ( ) . decode ( bytes )
11
5
}
6
+
7
+ export function toBase64 ( input : string ) : string {
8
+ const bytes = new TextEncoder ( ) . encode ( input )
9
+ const string = String . fromCodePoint ( ...bytes )
10
+ return btoa ( string )
11
+ }
Original file line number Diff line number Diff line change @@ -89,7 +89,6 @@ export const BITBUCKET_CLOUD_APP_PASSWORD = envString(
89
89
export const BITBUCKET_SERVER_URL = envUrl ( "BITBUCKET_SERVER_URL" )
90
90
export const BITBUCKET_SERVER_TOKEN = envString ( "BITBUCKET_SERVER_TOKEN" )
91
91
export const NODE_ENV = parsed . NODE_ENV
92
-
93
92
export const BITBUCKET_SERVER_TEST_PROJECT_KEY = envString (
94
93
"BITBUCKET_SERVER_TEST_PROJECT_KEY" ,
95
94
)
You can’t perform that action at this time.
0 commit comments