@asgardeo/javascript 0.7.1 → 0.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AsgardeoJavaScriptClient.d.ts +3 -4
- package/dist/IsomorphicCrypto.d.ts +2 -2
- package/dist/StorageManager.d.ts +6 -8
- package/dist/__legacy__/client.d.ts +15 -15
- package/dist/__legacy__/helpers/authentication-helper.d.ts +5 -5
- package/dist/__legacy__/models/client-config.d.ts +14 -14
- package/dist/api/createOrganization.d.ts +8 -8
- package/dist/api/getAllOrganizations.d.ts +5 -5
- package/dist/api/getBrandingPreference.d.ts +5 -5
- package/dist/api/getMeOrganizations.d.ts +9 -9
- package/dist/api/getOrganization.d.ts +4 -4
- package/dist/api/getSchemas.d.ts +4 -4
- package/dist/api/getScim2Me.d.ts +4 -4
- package/dist/api/updateMeProfile.d.ts +7 -7
- package/dist/api/updateOrganization.d.ts +5 -5
- package/dist/api/v2/executeEmbeddedUserOnboardingFlowV2.d.ts +16 -16
- package/dist/cjs/index.js +1183 -1186
- package/dist/cjs/index.js.map +4 -4
- package/dist/constants/ApplicationNativeAuthenticationConstants.d.ts +14 -14
- package/dist/constants/OIDCDiscoveryConstants.d.ts +17 -106
- package/dist/constants/OIDCRequestConstants.d.ts +6 -44
- package/dist/constants/PKCEConstants.d.ts +3 -18
- package/dist/constants/TokenConstants.d.ts +2 -31
- package/dist/constants/TokenExchangeConstants.d.ts +5 -30
- package/dist/index.js +1184 -1187
- package/dist/index.js.map +4 -4
- package/dist/models/branding-preference.d.ts +5 -5
- package/dist/models/client.d.ts +57 -58
- package/dist/models/config.d.ts +48 -48
- package/dist/models/crypto.d.ts +11 -11
- package/dist/models/embedded-flow.d.ts +10 -10
- package/dist/models/field.d.ts +8 -8
- package/dist/models/oidc-discovery.d.ts +161 -161
- package/dist/models/oidc-endpoints.d.ts +15 -15
- package/dist/models/platforms.d.ts +2 -2
- package/dist/models/scim2-schema.d.ts +17 -17
- package/dist/models/session.d.ts +4 -4
- package/dist/models/store.d.ts +9 -9
- package/dist/models/user.d.ts +5 -5
- package/dist/models/v2/embedded-flow-v2.d.ts +86 -86
- package/dist/models/v2/embedded-signin-flow-v2.d.ts +39 -39
- package/dist/models/v2/embedded-signup-flow-v2.d.ts +42 -42
- package/dist/theme/types.d.ts +133 -133
- package/dist/utils/getAuthorizeRequestUrlParams.d.ts +4 -3
- package/dist/utils/logger.d.ts +6 -6
- package/dist/utils/processUsername.d.ts +1 -1
- package/package.json +1 -1
- package/dist/utils/cryptoUtils.d.ts +0 -0
package/dist/theme/types.d.ts
CHANGED
|
@@ -18,122 +18,122 @@
|
|
|
18
18
|
export interface ThemeTypography {
|
|
19
19
|
fontFamily: string;
|
|
20
20
|
fontSizes: {
|
|
21
|
-
xs: string;
|
|
22
|
-
sm: string;
|
|
23
|
-
md: string;
|
|
24
|
-
lg: string;
|
|
25
|
-
xl: string;
|
|
26
21
|
'2xl': string;
|
|
27
22
|
'3xl': string;
|
|
23
|
+
lg: string;
|
|
24
|
+
md: string;
|
|
25
|
+
sm: string;
|
|
26
|
+
xl: string;
|
|
27
|
+
xs: string;
|
|
28
28
|
};
|
|
29
29
|
fontWeights: {
|
|
30
|
-
|
|
30
|
+
bold: number;
|
|
31
31
|
medium: number;
|
|
32
|
+
normal: number;
|
|
32
33
|
semibold: number;
|
|
33
|
-
bold: number;
|
|
34
34
|
};
|
|
35
35
|
lineHeights: {
|
|
36
|
-
tight: number;
|
|
37
36
|
normal: number;
|
|
38
37
|
relaxed: number;
|
|
38
|
+
tight: number;
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
export interface ThemeColors {
|
|
42
42
|
action: {
|
|
43
|
+
activatedOpacity: number;
|
|
43
44
|
active: string;
|
|
44
|
-
hover: string;
|
|
45
|
-
hoverOpacity: number;
|
|
46
|
-
selected: string;
|
|
47
|
-
selectedOpacity: number;
|
|
48
45
|
disabled: string;
|
|
49
46
|
disabledBackground: string;
|
|
50
47
|
disabledOpacity: number;
|
|
51
48
|
focus: string;
|
|
52
49
|
focusOpacity: number;
|
|
53
|
-
|
|
50
|
+
hover: string;
|
|
51
|
+
hoverOpacity: number;
|
|
52
|
+
selected: string;
|
|
53
|
+
selectedOpacity: number;
|
|
54
54
|
};
|
|
55
55
|
background: {
|
|
56
56
|
body: {
|
|
57
|
-
main: string;
|
|
58
57
|
dark?: string;
|
|
58
|
+
main: string;
|
|
59
59
|
};
|
|
60
|
+
dark?: string;
|
|
60
61
|
disabled: string;
|
|
61
62
|
surface: string;
|
|
62
|
-
dark?: string;
|
|
63
63
|
};
|
|
64
64
|
border: string;
|
|
65
65
|
error: {
|
|
66
66
|
contrastText: string;
|
|
67
|
-
main: string;
|
|
68
67
|
dark?: string;
|
|
68
|
+
main: string;
|
|
69
69
|
};
|
|
70
70
|
info: {
|
|
71
71
|
contrastText: string;
|
|
72
|
-
main: string;
|
|
73
72
|
dark?: string;
|
|
73
|
+
main: string;
|
|
74
74
|
};
|
|
75
75
|
primary: {
|
|
76
76
|
contrastText: string;
|
|
77
|
-
main: string;
|
|
78
77
|
dark?: string;
|
|
78
|
+
main: string;
|
|
79
79
|
};
|
|
80
80
|
secondary: {
|
|
81
81
|
contrastText: string;
|
|
82
|
-
main: string;
|
|
83
82
|
dark?: string;
|
|
83
|
+
main: string;
|
|
84
84
|
};
|
|
85
85
|
success: {
|
|
86
86
|
contrastText: string;
|
|
87
|
-
main: string;
|
|
88
87
|
dark?: string;
|
|
88
|
+
main: string;
|
|
89
89
|
};
|
|
90
90
|
text: {
|
|
91
|
+
dark?: string;
|
|
91
92
|
primary: string;
|
|
92
93
|
secondary: string;
|
|
93
|
-
dark?: string;
|
|
94
94
|
};
|
|
95
95
|
warning: {
|
|
96
96
|
contrastText: string;
|
|
97
|
-
main: string;
|
|
98
97
|
dark?: string;
|
|
98
|
+
main: string;
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
101
|
export interface ThemeComponentStyleOverrides {
|
|
102
|
+
[slot: string]: Record<string, any> | undefined;
|
|
102
103
|
/**
|
|
103
104
|
* Style overrides for the root element or slots.
|
|
104
105
|
* Example: { root: { borderRadius: '8px' } }
|
|
105
106
|
*/
|
|
106
107
|
root?: Record<string, any>;
|
|
107
|
-
[slot: string]: Record<string, any> | undefined;
|
|
108
108
|
}
|
|
109
109
|
export interface ThemeComponents {
|
|
110
|
+
[componentName: string]: {
|
|
111
|
+
defaultProps?: Record<string, any>;
|
|
112
|
+
styleOverrides?: ThemeComponentStyleOverrides;
|
|
113
|
+
variants?: Array<Record<string, any>>;
|
|
114
|
+
} | undefined;
|
|
110
115
|
Button?: {
|
|
116
|
+
defaultProps?: Record<string, any>;
|
|
111
117
|
styleOverrides?: {
|
|
118
|
+
[slot: string]: Record<string, any> | undefined;
|
|
112
119
|
root?: {
|
|
113
|
-
borderRadius?: string;
|
|
114
120
|
[key: string]: any;
|
|
121
|
+
borderRadius?: string;
|
|
115
122
|
};
|
|
116
|
-
[slot: string]: Record<string, any> | undefined;
|
|
117
123
|
};
|
|
118
|
-
defaultProps?: Record<string, any>;
|
|
119
124
|
variants?: Array<Record<string, any>>;
|
|
120
125
|
};
|
|
121
126
|
Field?: {
|
|
127
|
+
defaultProps?: Record<string, any>;
|
|
122
128
|
styleOverrides?: {
|
|
129
|
+
[slot: string]: Record<string, any> | undefined;
|
|
123
130
|
root?: {
|
|
124
|
-
borderRadius?: string;
|
|
125
131
|
[key: string]: any;
|
|
132
|
+
borderRadius?: string;
|
|
126
133
|
};
|
|
127
|
-
[slot: string]: Record<string, any> | undefined;
|
|
128
134
|
};
|
|
129
|
-
defaultProps?: Record<string, any>;
|
|
130
135
|
variants?: Array<Record<string, any>>;
|
|
131
136
|
};
|
|
132
|
-
[componentName: string]: {
|
|
133
|
-
styleOverrides?: ThemeComponentStyleOverrides;
|
|
134
|
-
defaultProps?: Record<string, any>;
|
|
135
|
-
variants?: Array<Record<string, any>>;
|
|
136
|
-
} | undefined;
|
|
137
137
|
}
|
|
138
138
|
export interface ThemeConfig {
|
|
139
139
|
borderRadius: {
|
|
@@ -142,11 +142,24 @@ export interface ThemeConfig {
|
|
|
142
142
|
small: string;
|
|
143
143
|
};
|
|
144
144
|
colors: ThemeColors;
|
|
145
|
+
/**
|
|
146
|
+
* Component style overrides
|
|
147
|
+
*/
|
|
148
|
+
components?: ThemeComponents;
|
|
149
|
+
/**
|
|
150
|
+
* The prefix used for CSS variables.
|
|
151
|
+
* @default 'asgardeo' (from VendorConstants.VENDOR_PREFIX)
|
|
152
|
+
*/
|
|
153
|
+
cssVarPrefix?: string;
|
|
145
154
|
/**
|
|
146
155
|
* The text direction for the UI.
|
|
147
156
|
* @default 'ltr'
|
|
148
157
|
*/
|
|
149
158
|
direction?: 'ltr' | 'rtl';
|
|
159
|
+
/**
|
|
160
|
+
* Image assets configuration
|
|
161
|
+
*/
|
|
162
|
+
images?: ThemeImages;
|
|
150
163
|
shadows: {
|
|
151
164
|
large: string;
|
|
152
165
|
medium: string;
|
|
@@ -158,177 +171,164 @@ export interface ThemeConfig {
|
|
|
158
171
|
typography: {
|
|
159
172
|
fontFamily: string;
|
|
160
173
|
fontSizes: {
|
|
161
|
-
xs: string;
|
|
162
|
-
sm: string;
|
|
163
|
-
md: string;
|
|
164
|
-
lg: string;
|
|
165
|
-
xl: string;
|
|
166
174
|
'2xl': string;
|
|
167
175
|
'3xl': string;
|
|
176
|
+
lg: string;
|
|
177
|
+
md: string;
|
|
178
|
+
sm: string;
|
|
179
|
+
xl: string;
|
|
180
|
+
xs: string;
|
|
168
181
|
};
|
|
169
182
|
fontWeights: {
|
|
170
|
-
|
|
183
|
+
bold: number;
|
|
171
184
|
medium: number;
|
|
185
|
+
normal: number;
|
|
172
186
|
semibold: number;
|
|
173
|
-
bold: number;
|
|
174
187
|
};
|
|
175
188
|
lineHeights: {
|
|
176
|
-
tight: number;
|
|
177
189
|
normal: number;
|
|
178
190
|
relaxed: number;
|
|
191
|
+
tight: number;
|
|
179
192
|
};
|
|
180
193
|
};
|
|
181
|
-
/**
|
|
182
|
-
* Image assets configuration
|
|
183
|
-
*/
|
|
184
|
-
images?: ThemeImages;
|
|
185
|
-
/**
|
|
186
|
-
* The prefix used for CSS variables.
|
|
187
|
-
* @default 'asgardeo' (from VendorConstants.VENDOR_PREFIX)
|
|
188
|
-
*/
|
|
189
|
-
cssVarPrefix?: string;
|
|
190
|
-
/**
|
|
191
|
-
* Component style overrides
|
|
192
|
-
*/
|
|
193
|
-
components?: ThemeComponents;
|
|
194
194
|
}
|
|
195
195
|
export interface ThemeComponentVars {
|
|
196
|
+
[componentName: string]: {
|
|
197
|
+
[slot: string]: Record<string, any> | undefined;
|
|
198
|
+
} | undefined;
|
|
196
199
|
Button?: {
|
|
200
|
+
[slot: string]: Record<string, any> | undefined;
|
|
197
201
|
root?: {
|
|
198
|
-
borderRadius?: string;
|
|
199
202
|
[key: string]: any;
|
|
203
|
+
borderRadius?: string;
|
|
200
204
|
};
|
|
201
|
-
[slot: string]: Record<string, any> | undefined;
|
|
202
205
|
};
|
|
203
206
|
Field?: {
|
|
207
|
+
[slot: string]: Record<string, any> | undefined;
|
|
204
208
|
root?: {
|
|
205
|
-
borderRadius?: string;
|
|
206
209
|
[key: string]: any;
|
|
210
|
+
borderRadius?: string;
|
|
207
211
|
};
|
|
208
|
-
[slot: string]: Record<string, any> | undefined;
|
|
209
212
|
};
|
|
210
|
-
[componentName: string]: {
|
|
211
|
-
[slot: string]: Record<string, any> | undefined;
|
|
212
|
-
} | undefined;
|
|
213
213
|
}
|
|
214
214
|
export interface ThemeVars {
|
|
215
|
+
borderRadius: {
|
|
216
|
+
large: string;
|
|
217
|
+
medium: string;
|
|
218
|
+
small: string;
|
|
219
|
+
};
|
|
215
220
|
colors: {
|
|
216
221
|
action: {
|
|
222
|
+
activatedOpacity: string;
|
|
217
223
|
active: string;
|
|
218
|
-
hover: string;
|
|
219
|
-
hoverOpacity: string;
|
|
220
|
-
selected: string;
|
|
221
|
-
selectedOpacity: string;
|
|
222
224
|
disabled: string;
|
|
223
225
|
disabledBackground: string;
|
|
224
226
|
disabledOpacity: string;
|
|
225
227
|
focus: string;
|
|
226
228
|
focusOpacity: string;
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
contrastText: string;
|
|
232
|
-
dark?: string;
|
|
233
|
-
};
|
|
234
|
-
secondary: {
|
|
235
|
-
main: string;
|
|
236
|
-
contrastText: string;
|
|
237
|
-
dark?: string;
|
|
229
|
+
hover: string;
|
|
230
|
+
hoverOpacity: string;
|
|
231
|
+
selected: string;
|
|
232
|
+
selectedOpacity: string;
|
|
238
233
|
};
|
|
239
234
|
background: {
|
|
240
|
-
surface: string;
|
|
241
|
-
disabled: string;
|
|
242
|
-
dark?: string;
|
|
243
235
|
body: {
|
|
244
|
-
main: string;
|
|
245
236
|
dark?: string;
|
|
237
|
+
main: string;
|
|
246
238
|
};
|
|
239
|
+
dark?: string;
|
|
240
|
+
disabled: string;
|
|
241
|
+
surface: string;
|
|
247
242
|
};
|
|
243
|
+
border: string;
|
|
248
244
|
error: {
|
|
249
|
-
main: string;
|
|
250
245
|
contrastText: string;
|
|
251
246
|
dark?: string;
|
|
247
|
+
main: string;
|
|
252
248
|
};
|
|
253
249
|
info: {
|
|
254
250
|
contrastText: string;
|
|
255
|
-
main: string;
|
|
256
251
|
dark?: string;
|
|
257
|
-
};
|
|
258
|
-
success: {
|
|
259
252
|
main: string;
|
|
253
|
+
};
|
|
254
|
+
primary: {
|
|
260
255
|
contrastText: string;
|
|
261
256
|
dark?: string;
|
|
257
|
+
main: string;
|
|
262
258
|
};
|
|
263
|
-
|
|
259
|
+
secondary: {
|
|
260
|
+
contrastText: string;
|
|
261
|
+
dark?: string;
|
|
264
262
|
main: string;
|
|
263
|
+
};
|
|
264
|
+
success: {
|
|
265
265
|
contrastText: string;
|
|
266
266
|
dark?: string;
|
|
267
|
+
main: string;
|
|
267
268
|
};
|
|
268
269
|
text: {
|
|
270
|
+
dark?: string;
|
|
269
271
|
primary: string;
|
|
270
272
|
secondary: string;
|
|
273
|
+
};
|
|
274
|
+
warning: {
|
|
275
|
+
contrastText: string;
|
|
271
276
|
dark?: string;
|
|
277
|
+
main: string;
|
|
272
278
|
};
|
|
273
|
-
border: string;
|
|
274
|
-
};
|
|
275
|
-
spacing: {
|
|
276
|
-
unit: string;
|
|
277
279
|
};
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
280
|
+
/**
|
|
281
|
+
* Component CSS variable references (e.g., for overrides)
|
|
282
|
+
*/
|
|
283
|
+
components?: ThemeComponentVars;
|
|
284
|
+
images?: {
|
|
285
|
+
[key: string]: {
|
|
286
|
+
alt?: string;
|
|
287
|
+
title?: string;
|
|
288
|
+
url?: string;
|
|
289
|
+
} | undefined;
|
|
290
|
+
favicon?: {
|
|
291
|
+
alt?: string;
|
|
292
|
+
title?: string;
|
|
293
|
+
url?: string;
|
|
294
|
+
};
|
|
295
|
+
logo?: {
|
|
296
|
+
alt?: string;
|
|
297
|
+
title?: string;
|
|
298
|
+
url?: string;
|
|
299
|
+
};
|
|
282
300
|
};
|
|
283
301
|
shadows: {
|
|
284
|
-
small: string;
|
|
285
|
-
medium: string;
|
|
286
302
|
large: string;
|
|
303
|
+
medium: string;
|
|
304
|
+
small: string;
|
|
305
|
+
};
|
|
306
|
+
spacing: {
|
|
307
|
+
unit: string;
|
|
287
308
|
};
|
|
288
309
|
typography: {
|
|
289
310
|
fontFamily: string;
|
|
290
311
|
fontSizes: {
|
|
291
|
-
xs: string;
|
|
292
|
-
sm: string;
|
|
293
|
-
md: string;
|
|
294
|
-
lg: string;
|
|
295
|
-
xl: string;
|
|
296
312
|
'2xl': string;
|
|
297
313
|
'3xl': string;
|
|
314
|
+
lg: string;
|
|
315
|
+
md: string;
|
|
316
|
+
sm: string;
|
|
317
|
+
xl: string;
|
|
318
|
+
xs: string;
|
|
298
319
|
};
|
|
299
320
|
fontWeights: {
|
|
300
|
-
|
|
321
|
+
bold: string;
|
|
301
322
|
medium: string;
|
|
323
|
+
normal: string;
|
|
302
324
|
semibold: string;
|
|
303
|
-
bold: string;
|
|
304
325
|
};
|
|
305
326
|
lineHeights: {
|
|
306
|
-
tight: string;
|
|
307
327
|
normal: string;
|
|
308
328
|
relaxed: string;
|
|
329
|
+
tight: string;
|
|
309
330
|
};
|
|
310
331
|
};
|
|
311
|
-
images?: {
|
|
312
|
-
favicon?: {
|
|
313
|
-
url?: string;
|
|
314
|
-
title?: string;
|
|
315
|
-
alt?: string;
|
|
316
|
-
};
|
|
317
|
-
logo?: {
|
|
318
|
-
url?: string;
|
|
319
|
-
title?: string;
|
|
320
|
-
alt?: string;
|
|
321
|
-
};
|
|
322
|
-
[key: string]: {
|
|
323
|
-
url?: string;
|
|
324
|
-
title?: string;
|
|
325
|
-
alt?: string;
|
|
326
|
-
} | undefined;
|
|
327
|
-
};
|
|
328
|
-
/**
|
|
329
|
-
* Component CSS variable references (e.g., for overrides)
|
|
330
|
-
*/
|
|
331
|
-
components?: ThemeComponentVars;
|
|
332
332
|
}
|
|
333
333
|
export interface Theme extends ThemeConfig {
|
|
334
334
|
cssVariables: Record<string, string>;
|
|
@@ -349,19 +349,23 @@ export interface ThemeDetection {
|
|
|
349
349
|
}
|
|
350
350
|
export interface ThemeImage {
|
|
351
351
|
/**
|
|
352
|
-
*
|
|
352
|
+
* Alternative text for accessibility
|
|
353
353
|
*/
|
|
354
|
-
|
|
354
|
+
alt?: string;
|
|
355
355
|
/**
|
|
356
356
|
* The title/alt text for the image
|
|
357
357
|
*/
|
|
358
358
|
title?: string;
|
|
359
359
|
/**
|
|
360
|
-
*
|
|
360
|
+
* The URL of the image
|
|
361
361
|
*/
|
|
362
|
-
|
|
362
|
+
url?: string;
|
|
363
363
|
}
|
|
364
364
|
export interface ThemeImages {
|
|
365
|
+
/**
|
|
366
|
+
* Allow for additional custom images
|
|
367
|
+
*/
|
|
368
|
+
[key: string]: ThemeImage | undefined;
|
|
365
369
|
/**
|
|
366
370
|
* Favicon configuration
|
|
367
371
|
*/
|
|
@@ -370,8 +374,4 @@ export interface ThemeImages {
|
|
|
370
374
|
* Logo configuration
|
|
371
375
|
*/
|
|
372
376
|
logo?: ThemeImage;
|
|
373
|
-
/**
|
|
374
|
-
* Allow for additional custom images
|
|
375
|
-
*/
|
|
376
|
-
[key: string]: ThemeImage | undefined;
|
|
377
377
|
}
|
|
@@ -46,13 +46,14 @@ import { ExtendedAuthorizeRequestUrlParams } from '../models/oauth-request';
|
|
|
46
46
|
* // Returns a Map with all required OIDC params, PKCE, and custom params.
|
|
47
47
|
*/
|
|
48
48
|
declare const getAuthorizeRequestUrlParams: (options: {
|
|
49
|
-
redirectUri: string;
|
|
50
49
|
clientId: string;
|
|
51
|
-
scopes?: string;
|
|
52
|
-
responseMode?: string;
|
|
53
50
|
codeChallenge?: string;
|
|
54
51
|
codeChallengeMethod?: string;
|
|
52
|
+
instanceId?: string;
|
|
55
53
|
prompt?: string;
|
|
54
|
+
redirectUri: string;
|
|
55
|
+
responseMode?: string;
|
|
56
|
+
scopes?: string;
|
|
56
57
|
} & ExtendedAuthorizeRequestUrlParams, pkceOptions: {
|
|
57
58
|
key: string;
|
|
58
59
|
}, customParams: Record<string, string | number | boolean>) => Map<string, string>;
|
package/dist/utils/logger.d.ts
CHANGED
|
@@ -23,16 +23,16 @@ export type LogLevel = 'debug' | 'info' | 'warn' | 'error';
|
|
|
23
23
|
* Logger configuration interface
|
|
24
24
|
*/
|
|
25
25
|
export interface LoggerConfig {
|
|
26
|
+
/** Custom log formatter function */
|
|
27
|
+
formatter?: (level: LogLevel, message: string, ...args: any[]) => void;
|
|
26
28
|
/** Minimum log level to output */
|
|
27
29
|
level: LogLevel;
|
|
28
30
|
/** Custom prefix for all log messages */
|
|
29
31
|
prefix?: string;
|
|
30
|
-
/** Whether to include timestamps */
|
|
31
|
-
timestamps?: boolean;
|
|
32
32
|
/** Whether to include log level in output */
|
|
33
33
|
showLevel?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
|
|
34
|
+
/** Whether to include timestamps */
|
|
35
|
+
timestamps?: boolean;
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* Universal logger class that works in both browser and Node.js environments
|
|
@@ -55,11 +55,11 @@ declare class Logger {
|
|
|
55
55
|
/**
|
|
56
56
|
* Get timestamp string
|
|
57
57
|
*/
|
|
58
|
-
private getTimestamp;
|
|
58
|
+
private static getTimestamp;
|
|
59
59
|
/**
|
|
60
60
|
* Get log level string
|
|
61
61
|
*/
|
|
62
|
-
private getLevelString;
|
|
62
|
+
private static getLevelString;
|
|
63
63
|
/**
|
|
64
64
|
* Format message for Node.js terminal
|
|
65
65
|
*/
|
|
@@ -66,8 +66,8 @@ export declare const removeUserstorePrefix: (username?: string) => string;
|
|
|
66
66
|
* ```
|
|
67
67
|
*/
|
|
68
68
|
declare const processUsername: <T extends {
|
|
69
|
-
username?: string;
|
|
70
69
|
userName?: string;
|
|
71
70
|
user_name?: string;
|
|
71
|
+
username?: string;
|
|
72
72
|
}>(user: T) => T;
|
|
73
73
|
export default processUsername;
|
package/package.json
CHANGED
|
File without changes
|