@intlayer/config 5.4.2 → 5.5.0
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/cjs/client.cjs +1 -4
- package/dist/cjs/client.cjs.map +1 -1
- package/dist/cjs/configFile/buildConfigurationFields.cjs +85 -196
- package/dist/cjs/configFile/buildConfigurationFields.cjs.map +1 -1
- package/dist/cjs/configFile/getConfiguration.cjs +14 -3
- package/dist/cjs/configFile/getConfiguration.cjs.map +1 -1
- package/dist/cjs/configFile/searchConfigurationFile.cjs +1 -1
- package/dist/cjs/configFile/searchConfigurationFile.cjs.map +1 -1
- package/dist/cjs/defaultValues/content.cjs +27 -27
- package/dist/cjs/defaultValues/content.cjs.map +1 -1
- package/dist/cjs/defaultValues/editor.cjs +0 -9
- package/dist/cjs/defaultValues/editor.cjs.map +1 -1
- package/dist/cjs/envVariables/extractEnvVariable/next.cjs +14 -18
- package/dist/cjs/envVariables/extractEnvVariable/next.cjs.map +1 -1
- package/dist/cjs/envVariables/extractEnvVariable/react_app.cjs +12 -16
- package/dist/cjs/envVariables/extractEnvVariable/react_app.cjs.map +1 -1
- package/dist/cjs/envVariables/extractEnvVariable/types.cjs.map +1 -1
- package/dist/cjs/envVariables/extractEnvVariable/undefined_platform.cjs +12 -16
- package/dist/cjs/envVariables/extractEnvVariable/undefined_platform.cjs.map +1 -1
- package/dist/cjs/envVariables/extractEnvVariable/vite.cjs +12 -16
- package/dist/cjs/envVariables/extractEnvVariable/vite.cjs.map +1 -1
- package/dist/cjs/envVariables/getConfiguration.cjs +13 -30
- package/dist/cjs/envVariables/getConfiguration.cjs.map +1 -1
- package/dist/cjs/index.cjs +10 -8
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/logger.cjs +13 -6
- package/dist/cjs/logger.cjs.map +1 -1
- package/dist/cjs/{appLoggerClient.cjs → retryManager.cjs} +29 -10
- package/dist/cjs/retryManager.cjs.map +1 -0
- package/dist/cjs/types/config.cjs.map +1 -1
- package/dist/esm/client.mjs +1 -3
- package/dist/esm/client.mjs.map +1 -1
- package/dist/esm/configFile/buildConfigurationFields.mjs +101 -215
- package/dist/esm/configFile/buildConfigurationFields.mjs.map +1 -1
- package/dist/esm/configFile/getConfiguration.mjs +4 -3
- package/dist/esm/configFile/getConfiguration.mjs.map +1 -1
- package/dist/esm/configFile/searchConfigurationFile.mjs +1 -1
- package/dist/esm/configFile/searchConfigurationFile.mjs.map +1 -1
- package/dist/esm/defaultValues/content.mjs +18 -18
- package/dist/esm/defaultValues/content.mjs.map +1 -1
- package/dist/esm/defaultValues/editor.mjs +0 -6
- package/dist/esm/defaultValues/editor.mjs.map +1 -1
- package/dist/esm/envVariables/extractEnvVariable/next.mjs +14 -18
- package/dist/esm/envVariables/extractEnvVariable/next.mjs.map +1 -1
- package/dist/esm/envVariables/extractEnvVariable/react_app.mjs +12 -16
- package/dist/esm/envVariables/extractEnvVariable/react_app.mjs.map +1 -1
- package/dist/esm/envVariables/extractEnvVariable/undefined_platform.mjs +12 -16
- package/dist/esm/envVariables/extractEnvVariable/undefined_platform.mjs.map +1 -1
- package/dist/esm/envVariables/extractEnvVariable/vite.mjs +12 -16
- package/dist/esm/envVariables/extractEnvVariable/vite.mjs.map +1 -1
- package/dist/esm/envVariables/getConfiguration.mjs +13 -30
- package/dist/esm/envVariables/getConfiguration.mjs.map +1 -1
- package/dist/esm/index.mjs +9 -8
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/logger.mjs +12 -6
- package/dist/esm/logger.mjs.map +1 -1
- package/dist/esm/retryManager.mjs +28 -0
- package/dist/esm/retryManager.mjs.map +1 -0
- package/dist/types/client.d.ts +3 -4
- package/dist/types/client.d.ts.map +1 -1
- package/dist/types/configFile/buildConfigurationFields.d.ts.map +1 -1
- package/dist/types/configFile/getConfiguration.d.ts +2 -2
- package/dist/types/configFile/getConfiguration.d.ts.map +1 -1
- package/dist/types/configFile/searchConfigurationFile.d.ts +1 -1
- package/dist/types/configFile/searchConfigurationFile.d.ts.map +1 -1
- package/dist/types/defaultValues/content.d.ts +9 -9
- package/dist/types/defaultValues/content.d.ts.map +1 -1
- package/dist/types/defaultValues/editor.d.ts +0 -3
- package/dist/types/defaultValues/editor.d.ts.map +1 -1
- package/dist/types/envVariables/extractEnvVariable/next.d.ts.map +1 -1
- package/dist/types/envVariables/extractEnvVariable/react_app.d.ts.map +1 -1
- package/dist/types/envVariables/extractEnvVariable/types.d.ts +1 -1
- package/dist/types/envVariables/extractEnvVariable/types.d.ts.map +1 -1
- package/dist/types/envVariables/extractEnvVariable/undefined_platform.d.ts.map +1 -1
- package/dist/types/envVariables/extractEnvVariable/vite.d.ts.map +1 -1
- package/dist/types/envVariables/getConfiguration.d.ts.map +1 -1
- package/dist/types/index.d.ts +7 -7
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/logger.d.ts +8 -2
- package/dist/types/logger.d.ts.map +1 -1
- package/dist/types/retryManager.d.ts +17 -0
- package/dist/types/retryManager.d.ts.map +1 -0
- package/dist/types/types/config.d.ts +64 -106
- package/dist/types/types/config.d.ts.map +1 -1
- package/package.json +5 -4
- package/dist/cjs/appLoggerClient.cjs.map +0 -1
- package/dist/cjs/appLoggerServer.cjs +0 -34
- package/dist/cjs/appLoggerServer.cjs.map +0 -1
- package/dist/esm/appLoggerClient.mjs +0 -9
- package/dist/esm/appLoggerClient.mjs.map +0 -1
- package/dist/esm/appLoggerServer.mjs +0 -10
- package/dist/esm/appLoggerServer.mjs.map +0 -1
- package/dist/types/appLoggerClient.d.ts +0 -3
- package/dist/types/appLoggerClient.d.ts.map +0 -1
- package/dist/types/appLoggerServer.d.ts +0 -3
- package/dist/types/appLoggerServer.d.ts.map +0 -1
|
@@ -200,35 +200,58 @@ export type EditorConfig = {
|
|
|
200
200
|
* Default: false
|
|
201
201
|
*/
|
|
202
202
|
hotReload: boolean;
|
|
203
|
+
};
|
|
204
|
+
export type AiConfig = {
|
|
203
205
|
/**
|
|
204
|
-
*
|
|
206
|
+
* Provider
|
|
205
207
|
*
|
|
206
|
-
*
|
|
207
|
-
* If you don't have an OpenAI API key, you can get one for free at https://openai.com/api/.
|
|
208
|
+
* The provider to use for the AI features of Intlayer.
|
|
208
209
|
*
|
|
209
|
-
*
|
|
210
|
+
* Available providers:
|
|
211
|
+
* - 'openai'
|
|
212
|
+
* - 'anthropic'
|
|
213
|
+
* - 'mistral'
|
|
214
|
+
* - 'deepseek'
|
|
215
|
+
* - 'gemini'
|
|
216
|
+
*
|
|
217
|
+
* Default: 'openai'
|
|
210
218
|
*/
|
|
211
|
-
|
|
219
|
+
provider?: string;
|
|
212
220
|
/**
|
|
213
|
-
*
|
|
221
|
+
* API model
|
|
214
222
|
*
|
|
215
223
|
* The model to use for the AI features of Intlayer.
|
|
216
224
|
*
|
|
217
|
-
*
|
|
225
|
+
* Example: 'gpt-4o-2024-11-20'
|
|
218
226
|
*
|
|
219
|
-
* > Necessitate to define openAiApiKey to use this model
|
|
220
227
|
*/
|
|
221
|
-
|
|
228
|
+
model?: string;
|
|
222
229
|
/**
|
|
223
|
-
*
|
|
230
|
+
* temperature
|
|
224
231
|
*
|
|
225
232
|
* The temperature to use for the AI features of Intlayer.
|
|
226
233
|
* The temperature controls the randomness of the AI's responses.
|
|
227
234
|
* A higher temperature will make the AI more creative and less predictable.
|
|
228
235
|
*
|
|
229
|
-
*
|
|
236
|
+
* Example: 0.1
|
|
230
237
|
*/
|
|
231
|
-
|
|
238
|
+
temperature?: number;
|
|
239
|
+
/**
|
|
240
|
+
* API key
|
|
241
|
+
*
|
|
242
|
+
* Use your own OpenAI API key to use the AI features of Intlayer.
|
|
243
|
+
* If you don't have an OpenAI API key, you can get one for free at https://openai.com/api/.
|
|
244
|
+
*
|
|
245
|
+
*/
|
|
246
|
+
apiKey?: string;
|
|
247
|
+
/**
|
|
248
|
+
* Application context
|
|
249
|
+
*
|
|
250
|
+
* The context of the application to use for the AI features of Intlayer.
|
|
251
|
+
*
|
|
252
|
+
* Example: 'This is a website for a company that sells products online.'
|
|
253
|
+
*/
|
|
254
|
+
applicationContext?: string;
|
|
232
255
|
};
|
|
233
256
|
/**
|
|
234
257
|
* Custom configuration that can be provided to override default settings
|
|
@@ -254,6 +277,10 @@ export type CustomIntlayerConfig = {
|
|
|
254
277
|
* Custom middleware configuration
|
|
255
278
|
*/
|
|
256
279
|
log?: Partial<LogConfig>;
|
|
280
|
+
/**
|
|
281
|
+
* Custom AI configuration
|
|
282
|
+
*/
|
|
283
|
+
ai?: Partial<AiConfig>;
|
|
257
284
|
};
|
|
258
285
|
/**
|
|
259
286
|
* Combined configuration for internationalization, middleware, and content
|
|
@@ -279,6 +306,10 @@ export type IntlayerConfig = {
|
|
|
279
306
|
* Logger configuration
|
|
280
307
|
*/
|
|
281
308
|
log: LogConfig;
|
|
309
|
+
/**
|
|
310
|
+
* AI configuration
|
|
311
|
+
*/
|
|
312
|
+
ai?: Partial<AiConfig>;
|
|
282
313
|
};
|
|
283
314
|
/**
|
|
284
315
|
* Base configuration for content handling
|
|
@@ -300,14 +331,6 @@ export type BaseContentConfig = {
|
|
|
300
331
|
* The root directory of the project, typically used for resolving other paths.
|
|
301
332
|
*/
|
|
302
333
|
baseDir: string;
|
|
303
|
-
/**
|
|
304
|
-
* Name of the directory where the content is stored
|
|
305
|
-
*
|
|
306
|
-
* Default: 'src'
|
|
307
|
-
*
|
|
308
|
-
* Specifies the directory where the primary content is stored.
|
|
309
|
-
*/
|
|
310
|
-
contentDirName: string;
|
|
311
334
|
/**
|
|
312
335
|
* Directories to be excluded from content processing
|
|
313
336
|
*
|
|
@@ -316,79 +339,6 @@ export type BaseContentConfig = {
|
|
|
316
339
|
* A list of directories to exclude from content processing.
|
|
317
340
|
*/
|
|
318
341
|
excludedPath: string[];
|
|
319
|
-
/**
|
|
320
|
-
* Name of the directory where results are stored
|
|
321
|
-
*
|
|
322
|
-
* Default: '.intlayer'
|
|
323
|
-
*
|
|
324
|
-
* The directory for storing intermediate or output results.
|
|
325
|
-
*/
|
|
326
|
-
resultDirName: string;
|
|
327
|
-
/**
|
|
328
|
-
* Name of the directory for module augmentation
|
|
329
|
-
*
|
|
330
|
-
* Default: 'types'
|
|
331
|
-
*
|
|
332
|
-
* Defines the directory for additional module types.
|
|
333
|
-
*/
|
|
334
|
-
moduleAugmentationDirName: string;
|
|
335
|
-
/**
|
|
336
|
-
* Name of the directory where dictionaries are stored
|
|
337
|
-
*
|
|
338
|
-
* Default: 'dictionary'
|
|
339
|
-
*
|
|
340
|
-
* The directory for storing localization dictionaries.
|
|
341
|
-
*
|
|
342
|
-
* Note:
|
|
343
|
-
* - Ensure the dictionaries output includes intlayer to build the dictionaries for intlayer
|
|
344
|
-
*/
|
|
345
|
-
dictionariesDirName: string;
|
|
346
|
-
/**
|
|
347
|
-
* Name of the directory where dictionaries are stored
|
|
348
|
-
*
|
|
349
|
-
* Default: 'i18next_dictionary'
|
|
350
|
-
*
|
|
351
|
-
* The directory for storing localization dictionaries.
|
|
352
|
-
*
|
|
353
|
-
* Note:
|
|
354
|
-
* - Ensure the dictionaries output includes 'i18next' to build the dictionaries for i18next
|
|
355
|
-
*/
|
|
356
|
-
i18nextResourcesDirName: string;
|
|
357
|
-
/**
|
|
358
|
-
* Name of the directory where dictionaries are stored
|
|
359
|
-
*
|
|
360
|
-
* Default: 'react-intl_dictionary'
|
|
361
|
-
*
|
|
362
|
-
* The directory for storing localization dictionaries.
|
|
363
|
-
*
|
|
364
|
-
* Note:
|
|
365
|
-
* - Ensure the dictionaries output includes 'react-intl' to build the dictionaries for react-intl
|
|
366
|
-
*/
|
|
367
|
-
reactIntlMessagesDirName: string;
|
|
368
|
-
/**
|
|
369
|
-
* Name of the directory where dictionary types are stored
|
|
370
|
-
*
|
|
371
|
-
* Default: 'types'
|
|
372
|
-
*
|
|
373
|
-
* The directory for storing dictionary type definitions.
|
|
374
|
-
*/
|
|
375
|
-
typeDirName: string;
|
|
376
|
-
/**
|
|
377
|
-
* Name of the directory where the main files are stored
|
|
378
|
-
*
|
|
379
|
-
* Default: 'main'
|
|
380
|
-
*
|
|
381
|
-
* Specifies the directory for storing main application files.
|
|
382
|
-
*/
|
|
383
|
-
mainDirName: string;
|
|
384
|
-
/**
|
|
385
|
-
* Name of the directory where the configuration files are stored
|
|
386
|
-
*
|
|
387
|
-
* Default: 'config'
|
|
388
|
-
*
|
|
389
|
-
* Specifies the directory for storing configuration files.
|
|
390
|
-
*/
|
|
391
|
-
configDirName: string;
|
|
392
342
|
/**
|
|
393
343
|
* Indicates if Intlayer should watch for changes in the content declaration files in the app to rebuild the related dictionaries.
|
|
394
344
|
*
|
|
@@ -404,23 +354,23 @@ export type BaseDerivedConfig = {
|
|
|
404
354
|
/**
|
|
405
355
|
* Directory where the content is stored, relative to the base directory
|
|
406
356
|
*
|
|
407
|
-
* Default:
|
|
357
|
+
* Default: ['src']
|
|
408
358
|
*
|
|
409
359
|
* Derived content directory based on the base configuration.
|
|
410
360
|
*/
|
|
411
|
-
contentDir: string;
|
|
361
|
+
contentDir: string[];
|
|
412
362
|
/**
|
|
413
363
|
* Directory where the results are stored, relative to the base directory
|
|
414
364
|
*
|
|
415
|
-
* Default:
|
|
365
|
+
* Default: .intlayer/dictionary
|
|
416
366
|
*
|
|
417
367
|
* Derived results directory based on the base configuration.
|
|
418
368
|
*/
|
|
419
|
-
|
|
369
|
+
dictionariesDir: string;
|
|
420
370
|
/**
|
|
421
371
|
* Directory for module augmentation, relative to the base directory
|
|
422
372
|
*
|
|
423
|
-
* Default:
|
|
373
|
+
* Default: .intlayer/types
|
|
424
374
|
*
|
|
425
375
|
* Defines the derived path for module augmentation.
|
|
426
376
|
*/
|
|
@@ -444,9 +394,17 @@ export type BaseDerivedConfig = {
|
|
|
444
394
|
*/
|
|
445
395
|
export type ResultDirDerivedConfig = {
|
|
446
396
|
/**
|
|
447
|
-
* Directory where dictionaries are stored, relative to the result directory
|
|
397
|
+
* Directory where unmerged dictionaries are stored, relative to the result directory
|
|
398
|
+
*
|
|
399
|
+
* Default: .intlayer/unmerged_dictionary
|
|
400
|
+
*
|
|
401
|
+
* Specifies the derived path for unmerged dictionaries relative to the result directory.
|
|
402
|
+
*/
|
|
403
|
+
unmergedDictionariesDir: string;
|
|
404
|
+
/**
|
|
405
|
+
* Directory where final dictionaries are stored, relative to the result directory
|
|
448
406
|
*
|
|
449
|
-
* Default:
|
|
407
|
+
* Default: .intlayer/dictionary
|
|
450
408
|
*
|
|
451
409
|
* Specifies the derived path for dictionaries relative to the result directory.
|
|
452
410
|
*/
|
|
@@ -454,7 +412,7 @@ export type ResultDirDerivedConfig = {
|
|
|
454
412
|
/**
|
|
455
413
|
* Directory where dictionaries are stored, relative to the result directory
|
|
456
414
|
*
|
|
457
|
-
* Default:
|
|
415
|
+
* Default: i18next_resources
|
|
458
416
|
*
|
|
459
417
|
* Specifies the derived path for dictionaries relative to the result directory.
|
|
460
418
|
*
|
|
@@ -465,7 +423,7 @@ export type ResultDirDerivedConfig = {
|
|
|
465
423
|
/**
|
|
466
424
|
* Directory where dictionaries are stored, relative to the result directory
|
|
467
425
|
*
|
|
468
|
-
* Default:
|
|
426
|
+
* Default: intl_messages
|
|
469
427
|
*
|
|
470
428
|
* Specifies the derived path for dictionaries relative to the result directory.
|
|
471
429
|
*
|
|
@@ -476,7 +434,7 @@ export type ResultDirDerivedConfig = {
|
|
|
476
434
|
/**
|
|
477
435
|
* Directory where dictionary types are stored, relative to the result directory
|
|
478
436
|
*
|
|
479
|
-
* Default:
|
|
437
|
+
* Default: .intlayer/types
|
|
480
438
|
*
|
|
481
439
|
* Specifies the derived path for dictionary types relative to the result directory.
|
|
482
440
|
*/
|
|
@@ -484,7 +442,7 @@ export type ResultDirDerivedConfig = {
|
|
|
484
442
|
/**
|
|
485
443
|
* Directory where the main files are stored, relative to the result directory
|
|
486
444
|
*
|
|
487
|
-
* Default:
|
|
445
|
+
* Default: .intlayer/main
|
|
488
446
|
*
|
|
489
447
|
* Specifies the derived path for the main files relative to the result directory.
|
|
490
448
|
*/
|
|
@@ -492,7 +450,7 @@ export type ResultDirDerivedConfig = {
|
|
|
492
450
|
/**
|
|
493
451
|
* Directory where the configuration files are stored, relative to the result directory
|
|
494
452
|
*
|
|
495
|
-
* Default:
|
|
453
|
+
* Default: .intlayer/config
|
|
496
454
|
*
|
|
497
455
|
* Specifies the derived path for the configuration files relative to the result directory.
|
|
498
456
|
*/
|
|
@@ -513,7 +471,7 @@ export type PatternsContentConfig = {
|
|
|
513
471
|
/**
|
|
514
472
|
* Patterns of files to watch for changes including the relative path
|
|
515
473
|
*
|
|
516
|
-
* Default: ['
|
|
474
|
+
* Default: ['src/**\/*.content.ts', 'src/**\/*.content.js', 'src/**\/*.content.json', 'src/**\/*.content.cjs', 'src/**\/*.content.mjs', 'src/**\/*.content.tsx', 'src/**\/*.content.jsx']
|
|
517
475
|
*
|
|
518
476
|
* Specifies the file patterns for content to watch, including relative paths.
|
|
519
477
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/types/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,WAAW,GAAG,OAAO,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC;;;;;;OAMG;IACH,OAAO,EAAE,OAAO,EAAE,CAAC;IAEnB;;;;;;;;OAQG;IACH,eAAe,EAAE,OAAO,EAAE,CAAC;IAE3B;;;;;;;OAOG;IACH,UAAU,EAAE,UAAU,CAAC;IAEvB;;;;;;OAMG;IACH,aAAa,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,OAAO,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;;;;;OAMG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;;OAMG;IACH,UAAU,EAAE,MAAM,C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2
2
|
"name": "@intlayer/config",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.5.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Retrieve Intlayer configurations and manage environment variables for both server-side and client-side environments.",
|
|
6
6
|
"keywords": [
|
|
@@ -69,6 +69,7 @@
|
|
|
69
69
|
"./package.json"
|
|
70
70
|
],
|
|
71
71
|
"dependencies": {
|
|
72
|
+
"deepmerge": "^4.3.1",
|
|
72
73
|
"dotenv": "^16.4.7",
|
|
73
74
|
"esbuild": "^0.25.2"
|
|
74
75
|
},
|
|
@@ -83,12 +84,12 @@
|
|
|
83
84
|
"tsup": "^8.4.0",
|
|
84
85
|
"typescript": "^5.8.2",
|
|
85
86
|
"@utils/eslint-config": "1.0.4",
|
|
86
|
-
"@utils/
|
|
87
|
+
"@utils/ts-config-types": "1.0.4",
|
|
87
88
|
"@utils/ts-config": "1.0.4",
|
|
88
|
-
"@utils/
|
|
89
|
+
"@utils/tsup-config": "1.0.4"
|
|
89
90
|
},
|
|
90
91
|
"peerDependencies": {
|
|
91
|
-
"intlayer": "5.
|
|
92
|
+
"intlayer": "5.5.0"
|
|
92
93
|
},
|
|
93
94
|
"engines": {
|
|
94
95
|
"node": ">=14.18"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/appLoggerClient.ts"],"sourcesContent":["import { type Logger, logger } from './logger';\n\nexport const appLogger: Logger = (content, details) =>\n logger(content, {\n ...(details ?? {}),\n config: { ...(details?.config ?? {}) },\n });\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAoC;AAE7B,MAAM,YAAoB,CAAC,SAAS,gBACzC,sBAAO,SAAS;AAAA,EACd,GAAI,WAAW,CAAC;AAAA,EAChB,QAAQ,EAAE,GAAI,SAAS,UAAU,CAAC,EAAG;AACvC,CAAC;","names":[]}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var appLoggerServer_exports = {};
|
|
20
|
-
__export(appLoggerServer_exports, {
|
|
21
|
-
appLogger: () => appLogger
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(appLoggerServer_exports);
|
|
24
|
-
var import_getConfiguration = require('./configFile/getConfiguration.cjs');
|
|
25
|
-
var import_logger = require('./logger.cjs');
|
|
26
|
-
const appLogger = (content, details) => (0, import_logger.logger)(content, {
|
|
27
|
-
...details ?? {},
|
|
28
|
-
config: { ...(0, import_getConfiguration.getConfiguration)().log, ...details?.config ?? {} }
|
|
29
|
-
});
|
|
30
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
31
|
-
0 && (module.exports = {
|
|
32
|
-
appLogger
|
|
33
|
-
});
|
|
34
|
-
//# sourceMappingURL=appLoggerServer.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/appLoggerServer.ts"],"sourcesContent":["import { getConfiguration } from './configFile/getConfiguration';\nimport { type Logger, logger } from './logger';\n\nexport const appLogger: Logger = (content, details) =>\n logger(content, {\n ...(details ?? {}),\n config: { ...getConfiguration().log, ...(details?.config ?? {}) },\n });\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAiC;AACjC,oBAAoC;AAE7B,MAAM,YAAoB,CAAC,SAAS,gBACzC,sBAAO,SAAS;AAAA,EACd,GAAI,WAAW,CAAC;AAAA,EAChB,QAAQ,EAAE,OAAG,0CAAiB,EAAE,KAAK,GAAI,SAAS,UAAU,CAAC,EAAG;AAClE,CAAC;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/appLoggerClient.ts"],"sourcesContent":["import { type Logger, logger } from './logger';\n\nexport const appLogger: Logger = (content, details) =>\n logger(content, {\n ...(details ?? {}),\n config: { ...(details?.config ?? {}) },\n });\n"],"mappings":"AAAA,SAAsB,cAAc;AAE7B,MAAM,YAAoB,CAAC,SAAS,YACzC,OAAO,SAAS;AAAA,EACd,GAAI,WAAW,CAAC;AAAA,EAChB,QAAQ,EAAE,GAAI,SAAS,UAAU,CAAC,EAAG;AACvC,CAAC;","names":[]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { getConfiguration } from "./configFile/getConfiguration.mjs";
|
|
2
|
-
import { logger } from "./logger.mjs";
|
|
3
|
-
const appLogger = (content, details) => logger(content, {
|
|
4
|
-
...details ?? {},
|
|
5
|
-
config: { ...getConfiguration().log, ...details?.config ?? {} }
|
|
6
|
-
});
|
|
7
|
-
export {
|
|
8
|
-
appLogger
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=appLoggerServer.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/appLoggerServer.ts"],"sourcesContent":["import { getConfiguration } from './configFile/getConfiguration';\nimport { type Logger, logger } from './logger';\n\nexport const appLogger: Logger = (content, details) =>\n logger(content, {\n ...(details ?? {}),\n config: { ...getConfiguration().log, ...(details?.config ?? {}) },\n });\n"],"mappings":"AAAA,SAAS,wBAAwB;AACjC,SAAsB,cAAc;AAE7B,MAAM,YAAoB,CAAC,SAAS,YACzC,OAAO,SAAS;AAAA,EACd,GAAI,WAAW,CAAC;AAAA,EAChB,QAAQ,EAAE,GAAG,iBAAiB,EAAE,KAAK,GAAI,SAAS,UAAU,CAAC,EAAG;AAClE,CAAC;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"appLoggerClient.d.ts","sourceRoot":"","sources":["../../src/appLoggerClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAU,MAAM,UAAU,CAAC;AAE/C,eAAO,MAAM,SAAS,EAAE,MAIpB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"appLoggerServer.d.ts","sourceRoot":"","sources":["../../src/appLoggerServer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,MAAM,EAAU,MAAM,UAAU,CAAC;AAE/C,eAAO,MAAM,SAAS,EAAE,MAIpB,CAAC"}
|