Skip to content

Commit 7a43f01

Browse files
committed
🎨 Run tsco
1 parent 48d74d1 commit 7a43f01

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/base64.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
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-
71
export function fromBase64(base64: string): Buffer | Uint8Array | string {
82
const string = atob(base64)
93
const bytes = Uint8Array.from(string, v => v.codePointAt(0) ?? 0)
104
return 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+
}

tests/env.ts

-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ export const BITBUCKET_CLOUD_APP_PASSWORD = envString(
8989
export const BITBUCKET_SERVER_URL = envUrl("BITBUCKET_SERVER_URL")
9090
export const BITBUCKET_SERVER_TOKEN = envString("BITBUCKET_SERVER_TOKEN")
9191
export const NODE_ENV = parsed.NODE_ENV
92-
9392
export const BITBUCKET_SERVER_TEST_PROJECT_KEY = envString(
9493
"BITBUCKET_SERVER_TEST_PROJECT_KEY",
9594
)

0 commit comments

Comments
 (0)