File tree Expand file tree Collapse file tree 9 files changed +21
-21
lines changed Expand file tree Collapse file tree 9 files changed +21
-21
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,11 @@ declare global {
77 type Auth = import ( '$lib/server/lucia/types' ) . Auth ;
88 // Database user = AuthUserSchema
99 // Properties of the auth user schema that Lucia can be aware of
10- type DatabaseUserAttributes = {
10+ interface DatabaseUserAttributes {
1111 email : string ;
1212 email_verified : boolean ;
1313 created_at ?: Date ;
14- } ;
14+ }
1515 type DatabaseSessionAttributes = Record < string , never > ;
1616 }
1717
Original file line number Diff line number Diff line change 11<script lang =" ts" >
22export let component: any ;
3- export let text: string = ' mock-slot-text' ;
3+ export let text = ' mock-slot-text' ;
44 </script >
55
66<svelte:component this =" {component }" >
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export const logger = (function () {
1818 return (
1919 message : string ,
2020 context : LoggerContext = { } ,
21- stackLevel : number = 3 ,
21+ stackLevel = 3 ,
2222 ) => {
2323 if ( ! shouldBeLogged ( methodName ) ) {
2424 return ;
Original file line number Diff line number Diff line change @@ -19,6 +19,6 @@ export function getClientSentryIntegrations(
1919
2020export function setClientPosthogSessionId ( ) : void {
2121 if ( posthog ) {
22- sentry ?. setTag ( POSTHOG_SESSION_ID_TAG , getSessionId ( ) as string ) ;
22+ sentry ?. setTag ( POSTHOG_SESSION_ID_TAG , getSessionId ( ) ! ) ;
2323 }
2424}
Original file line number Diff line number Diff line change 11// See `state` parameter:
22// https://developers.google.com/identity/protocols/oauth2/javascript-implicit-flow#redirecting
3- export const GOOGLE_OAUTH_STATE_COOKIE_NAME : string = 'google_oauth_state' ;
4- export const GOOGLE_OAUTH_STATE_SEPARATOR : string = '-----' ;
5- export const GOOGLE_OAUTH_STATE_QUERY_PARAM_NAME : string = 'state' ;
6- export const GOOGLE_OAUTH_CODE_QUERY_PARAM_NAME : string = 'code' ;
7- export const GOOGLE_OAUTH_TYPE_QUERY_PARAM_VALUE : string = 'google' ;
3+ export const GOOGLE_OAUTH_STATE_COOKIE_NAME = 'google_oauth_state' ;
4+ export const GOOGLE_OAUTH_STATE_SEPARATOR = '-----' ;
5+ export const GOOGLE_OAUTH_STATE_QUERY_PARAM_NAME = 'state' ;
6+ export const GOOGLE_OAUTH_CODE_QUERY_PARAM_NAME = 'code' ;
7+ export const GOOGLE_OAUTH_TYPE_QUERY_PARAM_VALUE = 'google' ;
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export const roarr = (function () {
2020 return (
2121 message : string ,
2222 context : ServerLoggerContextWithError = { } ,
23- stackLevel : number = 3 ,
23+ stackLevel = 3 ,
2424 ) => {
2525 if ( ! shouldBeLogged ( methodName ) ) {
2626 return ;
Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ export type ServerLoggerLoggingMethodName =
1111 | ServerLoggerLoggingMethodNameNoOnce
1212 | ServerLoggerLoggingMethodNameOnce ;
1313
14- export type JsonObject = {
14+ export interface JsonObject {
1515 [ k : string ] : JsonValue ;
16- } ;
16+ }
1717export type JsonValue =
1818 | JsonObject
1919 | JsonValue [ ]
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export function enrichLoggerContextWithSentryTraceId<T extends LoggerContext>(
2626export function enrichContextWithDebugInfo (
2727 context : LoggerContext = { } ,
2828 rootFolder = '' ,
29- stackLevel : number = 3 ,
29+ stackLevel = 3 ,
3030) : LoggerContext {
3131 return {
3232 ...context ,
@@ -35,7 +35,7 @@ export function enrichContextWithDebugInfo(
3535 } ;
3636}
3737
38- function getCallName ( stackLevel : number = 3 ) : string {
38+ function getCallName ( stackLevel = 3 ) : string {
3939 const typeName = callsites ( ) [ stackLevel ] ?. getTypeName ( ) ?? '' ;
4040 const functionName =
4141 callsites ( ) [ 3 ] ?. getFunctionName ( ) ??
@@ -49,7 +49,7 @@ function getCallName(stackLevel: number = 3): string {
4949 return functionName ;
5050}
5151
52- function getFileName ( rootFolder = '' , stackLevel : number = 3 ) : string {
52+ function getFileName ( rootFolder = '' , stackLevel = 3 ) : string {
5353 const fileName =
5454 callsites ( ) [ stackLevel ] ?. getFileName ( ) ??
5555 callsites ( ) [ stackLevel ] ?. getEvalOrigin ( ) ??
Original file line number Diff line number Diff line change @@ -67,23 +67,23 @@ export function cleanSearchParamsAndGenerateQuery(
6767 const path = String ( errorPath [ 0 ] ) ;
6868
6969 if ( [ 'page' , 'count' ] . includes ( path ) ) {
70- delete findCodeSnippetsQuery [ ' page' ] ;
70+ delete findCodeSnippetsQuery . page ;
7171 cleanedSearchParams . delete ( 'page' ) ;
7272
73- findCodeSnippetsQuery [ ' count' ] = DEFAULT_CODE_SNIPPET_COUNT ;
73+ findCodeSnippetsQuery . count = DEFAULT_CODE_SNIPPET_COUNT ;
7474 cleanedSearchParams . delete ( 'count' ) ;
7575 }
7676
7777 if ( [ 'filterBy' ] . includes ( path ) ) {
78- delete findCodeSnippetsQuery [ ' filterBy' ] ;
78+ delete findCodeSnippetsQuery . filterBy ;
7979 cleanedSearchParams . delete ( 'filterBy' ) ;
8080
81- delete findCodeSnippetsQuery [ ' filterValue' ] ;
81+ delete findCodeSnippetsQuery . filterValue ;
8282 cleanedSearchParams . delete ( 'filterValue' ) ;
8383 }
8484
8585 if ( [ 'sortOrder' ] . includes ( path ) ) {
86- findCodeSnippetsQuery [ ' sortOrder' ] = 'asc' ;
86+ findCodeSnippetsQuery . sortOrder = 'asc' ;
8787 cleanedSearchParams . delete ( 'sortOrder' ) ;
8888 }
8989 } ) ;
You can’t perform that action at this time.
0 commit comments