Comparing version
@@ -27,4 +27,5 @@ type StageCallback = (input: any, config?: any) => any; | ||
trim?: { | ||
yes?: boolean; | ||
max?: number; | ||
} | StageCallback; | ||
} | boolean | StageCallback; | ||
@@ -49,5 +50,6 @@ '+trim'?: StageCallback; | ||
indent?: { | ||
level?: number; | ||
yes?: boolean; | ||
level?: number; | ||
pattern?: string; | ||
} | StageCallback | boolean; | ||
} | boolean | StageCallback; | ||
@@ -58,2 +60,3 @@ '+indent'?: StageCallback; | ||
tag?: { | ||
yes?: boolean; | ||
level?: string; | ||
@@ -72,5 +75,8 @@ levelColor?: { | ||
time?: { | ||
when?: Date; | ||
format?: 'locale' | 'iso' | 'utc'; | ||
print?: (when: Date) => string; | ||
yes?: boolean; | ||
when?: Date; | ||
format?: 'locale' | 'iso' | 'utc' | null; | ||
locale?: string; | ||
options?: Intl.DateTimeFormatOptions; | ||
print?: (when: Date) => string; | ||
} | boolean | StageCallback; | ||
@@ -82,2 +88,3 @@ | ||
locate?: { | ||
yes?: boolean; | ||
shift?: number; | ||
@@ -84,0 +91,0 @@ where?: any; // TODO: add StackTracey callstack item type |
{ | ||
"name": "ololog", | ||
"version": "1.1.165", | ||
"version": "1.1.166", | ||
"description": "Logging. Colors. Terminals & browsers. Show call locations. Pretty prints objects, Errors, anything!", | ||
@@ -5,0 +5,0 @@ "main": "build/ololog.js", |
751656
0.03%8992
0.08%