File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 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-
71export function fromBase64 ( base64 : string ) : Buffer | Uint8Array | string {
82const string = atob ( base64 )
93const bytes = Uint8Array . from ( string , v => v . codePointAt ( 0 ) ?? 0 )
104return new TextDecoder ( ) . decode ( bytes )
115}
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(
8989export const BITBUCKET_SERVER_URL = envUrl ( "BITBUCKET_SERVER_URL" )
9090export const BITBUCKET_SERVER_TOKEN = envString ( "BITBUCKET_SERVER_TOKEN" )
9191export const NODE_ENV = parsed . NODE_ENV
92-
9392export const BITBUCKET_SERVER_TEST_PROJECT_KEY = envString (
9493"BITBUCKET_SERVER_TEST_PROJECT_KEY" ,
9594)
You can’t perform that action at this time.
0 commit comments