Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7a43f01

Browse files
🎨 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‎

Lines changed: 6 additions & 6 deletions
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‎

Lines changed: 0 additions & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /