File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change 1- import { stringToBase64 } from 'uint8array-extras'
21import type { ModuleOptions } from '../module'
32
43export 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 }
You can’t perform that action at this time.
0 commit comments