Skip to content

Commit 28a37eb

Browse files
perf: drop uint8array-extras from client bundle
1 parent 769110e commit 28a37eb

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/runtime/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export type ServerFetchOptions = Pick<
77
> & {
88
// Either fetch a KQL query
99
query?: Partial<KirbyQueryRequest>
10-
// Or from a Kirby path
10+
// … or from a Kirby path
1111
path?: string
1212
cache?: boolean
1313
}

src/runtime/utils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { stringToBase64 } from 'uint8array-extras'
21
import type { ModuleOptions } from '../module'
32

43
export function getProxyPath(key: string) {
@@ -19,7 +18,7 @@ export function createAuthHeader({
1918
}: Pick<ModuleOptions, 'token' | 'credentials'> & { auth?: string }) {
2019
if (auth === 'basic' && credentials) {
2120
const { username, password } = credentials
22-
const encoded = stringToBase64(`${username}:${password}`)
21+
const encoded = globalThis.btoa(`${username}:${password}`)
2322

2423
return { Authorization: `Basic ${encoded}` }
2524
}

0 commit comments

Comments
 (0)