@org-quicko/core 1.1.1 → 2.0.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/README.md +7 -7
- package/dist/browser/beans/BaseObject.js.map +1 -1
- package/dist/browser/exceptions/BadRequestException.js.map +1 -1
- package/dist/browser/exceptions/BaseException.js +1 -21
- package/dist/browser/exceptions/BaseException.js.map +1 -1
- package/dist/browser/exceptions/ClientException.js.map +1 -1
- package/dist/browser/exceptions/ConverterException.js.map +1 -1
- package/dist/browser/exceptions/ForbiddenAccessException.js.map +1 -1
- package/dist/browser/exceptions/HTTPException.js.map +1 -1
- package/dist/browser/exceptions/IllegalArgumentException.js.map +1 -1
- package/dist/browser/exceptions/UnauthorizedException.js.map +1 -1
- package/dist/browser/types/JSONObject.js.map +1 -1
- package/dist/browser/types/LoggingLevel.js.map +1 -1
- package/dist/browser/types/SortOrder.js.map +1 -1
- package/dist/browser/utils/date/DateUtil.js +4 -46
- package/dist/browser/utils/date/DateUtil.js.map +1 -1
- package/dist/cjs/beans/BaseObject.cjs.map +1 -1
- package/dist/cjs/build/node/index.cjs +0 -1
- package/dist/cjs/build/node/index.cjs.map +1 -1
- package/dist/cjs/exceptions/BadRequestException.cjs.map +1 -1
- package/dist/cjs/exceptions/BaseException.cjs +1 -21
- package/dist/cjs/exceptions/BaseException.cjs.map +1 -1
- package/dist/cjs/exceptions/ClientException.cjs.map +1 -1
- package/dist/cjs/exceptions/ConverterException.cjs.map +1 -1
- package/dist/cjs/exceptions/ForbiddenAccessException.cjs.map +1 -1
- package/dist/cjs/exceptions/HTTPException.cjs.map +1 -1
- package/dist/cjs/exceptions/IllegalArgumentException.cjs.map +1 -1
- package/dist/cjs/exceptions/UnauthorizedException.cjs.map +1 -1
- package/dist/cjs/logger/LoggerFactory.cjs +96 -22
- package/dist/cjs/logger/LoggerFactory.cjs.map +1 -1
- package/dist/cjs/logger/format/ErrorFormat.cjs +115 -0
- package/dist/cjs/logger/format/ErrorFormat.cjs.map +1 -0
- package/dist/cjs/logger/index.cjs +0 -1
- package/dist/cjs/logger/index.cjs.map +1 -1
- package/dist/cjs/types/JSONObject.cjs.map +1 -1
- package/dist/cjs/types/LoggingLevel.cjs.map +1 -1
- package/dist/cjs/types/SortOrder.cjs.map +1 -1
- package/dist/cjs/utils/date/DateUtil.cjs +3 -45
- package/dist/cjs/utils/date/DateUtil.cjs.map +1 -1
- package/dist/esm/beans/BaseObject.js.map +1 -1
- package/dist/esm/build/node/index.js +1 -1
- package/dist/esm/exceptions/BadRequestException.js.map +1 -1
- package/dist/esm/exceptions/BaseException.js +1 -21
- package/dist/esm/exceptions/BaseException.js.map +1 -1
- package/dist/esm/exceptions/ClientException.js.map +1 -1
- package/dist/esm/exceptions/ConverterException.js.map +1 -1
- package/dist/esm/exceptions/ForbiddenAccessException.js.map +1 -1
- package/dist/esm/exceptions/HTTPException.js.map +1 -1
- package/dist/esm/exceptions/IllegalArgumentException.js.map +1 -1
- package/dist/esm/exceptions/UnauthorizedException.js.map +1 -1
- package/dist/esm/logger/LoggerFactory.js +97 -22
- package/dist/esm/logger/LoggerFactory.js.map +1 -1
- package/dist/esm/logger/format/ErrorFormat.js +113 -0
- package/dist/esm/logger/format/ErrorFormat.js.map +1 -0
- package/dist/esm/logger/index.js +1 -1
- package/dist/esm/types/JSONObject.js.map +1 -1
- package/dist/esm/types/LoggingLevel.js.map +1 -1
- package/dist/esm/types/SortOrder.js.map +1 -1
- package/dist/esm/utils/date/DateUtil.js +4 -46
- package/dist/esm/utils/date/DateUtil.js.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/src/exceptions/BaseException.d.ts +0 -6
- package/dist/types/src/logger/LoggerFactory.d.ts +88 -10
- package/dist/types/src/logger/index.d.ts +1 -1
- package/dist/types/src/utils/date/DateUtil.d.ts +9 -60
- package/package.json +140 -136
|
@@ -1,19 +1,97 @@
|
|
|
1
|
-
import winston from 'winston';
|
|
2
|
-
import { LoggingLevel } from '../types/LoggingLevel.js';
|
|
1
|
+
import winston, { LoggerOptions } from 'winston';
|
|
3
2
|
|
|
4
3
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* Factory class for creating and managing Winston logger instances.
|
|
5
|
+
*
|
|
6
|
+
* @description
|
|
7
|
+
* Provides a factory for creating Winston logger instances with consistent configuration.
|
|
8
|
+
* Supports custom logging levels, formats, and transports with a default format pipeline
|
|
9
|
+
* that includes timestamp, error handling with cause chains, and JSON formatting.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```typescript
|
|
13
|
+
* // Create a logger with custom configuration
|
|
14
|
+
* const logger = LoggerFactory.createLogger({
|
|
15
|
+
* level: 'info',
|
|
16
|
+
* transports: [new winston.transports.Console()]
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* // Create another logger and add a label to it
|
|
20
|
+
* const apiLogger = LoggerFactory.getLogger('api-service');
|
|
21
|
+
* apiLogger.info('Server started');
|
|
22
|
+
* ```
|
|
7
23
|
*/
|
|
8
|
-
declare const loggers: Map<string, winston.Logger>;
|
|
9
24
|
declare class LoggerFactory {
|
|
10
25
|
/**
|
|
11
|
-
*
|
|
26
|
+
* Base logger instance used by the factory.
|
|
12
27
|
*
|
|
13
|
-
* @
|
|
14
|
-
*
|
|
28
|
+
* @description
|
|
29
|
+
* Currently stores a single base logger instance per execution context.
|
|
30
|
+
* This design can be extended in the future to support multiple base loggers
|
|
31
|
+
* by replacing this single instance with a Map-based container (similar to Winston's Container API)
|
|
32
|
+
* to manage multiple named logger configurations.
|
|
33
|
+
*
|
|
34
|
+
* @type {winston.Logger}
|
|
35
|
+
* @private
|
|
36
|
+
*/
|
|
37
|
+
private static logger;
|
|
38
|
+
/**
|
|
39
|
+
* Creates and initializes a new logger instance with the provided configuration.
|
|
40
|
+
*
|
|
41
|
+
* @description
|
|
42
|
+
* Creates a new Winston logger with a consistent default format pipeline that includes
|
|
43
|
+
* timestamp, error handling with stack traces and cause chains, custom error formatting,
|
|
44
|
+
* and JSON output. Custom formats are combined with the defaults. If no transports are
|
|
45
|
+
* specified, defaults to Console transport.
|
|
46
|
+
*
|
|
47
|
+
* @param {LoggerOptions} [options] - Optional Winston logger configuration options
|
|
48
|
+
* @param {LoggingLevel} [options.level='info'] - Logging level (error, warn, info, http, debug, verbose, silly)
|
|
49
|
+
* @param {winston.LogFormat} [options.format] - Additional custom format to combine with defaults
|
|
50
|
+
* @param {object} [options.defaultMeta] - Default metadata to include in all log entries from this logger
|
|
51
|
+
* @param {winston.transport[]} [options.transports] - Transport instances (defaults to Console)
|
|
52
|
+
*
|
|
53
|
+
* @returns {winston.Logger} Configured logger instance
|
|
54
|
+
*
|
|
55
|
+
* @throws {BaseException} If logger initialization fails
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```typescript
|
|
59
|
+
* // Create a logger with custom configuration
|
|
60
|
+
* const logger = LoggerFactory.createLogger({
|
|
61
|
+
* level: 'debug',
|
|
62
|
+
* defaultMeta: { service: 'api' },
|
|
63
|
+
* transports: [
|
|
64
|
+
* new winston.transports.Console(),
|
|
65
|
+
* new winston.transports.File({ filename: 'combined.log' })
|
|
66
|
+
* ]
|
|
67
|
+
* });
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
static createLogger(options?: LoggerOptions): winston.Logger;
|
|
71
|
+
/**
|
|
72
|
+
* Gets a logger instance with a label added to the metadata.
|
|
73
|
+
*
|
|
74
|
+
* @description
|
|
75
|
+
* Returns a logger instance that is a child of the base logger with the provided label
|
|
76
|
+
* added as metadata. Each call creates a new child logger with the specified label.
|
|
77
|
+
* This is useful for identifying the source of log messages by module or service name.
|
|
78
|
+
*
|
|
79
|
+
* @param {string} label - Unique identifier for the logger to include in metadata (e.g., module name, service name)
|
|
80
|
+
*
|
|
81
|
+
* @returns {winston.Logger} Child logger instance with the label in metadata
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* ```typescript
|
|
85
|
+
* // Create a logger with a label for the UserService module
|
|
86
|
+
* const logger = LoggerFactory.getLogger('UserService');
|
|
87
|
+
*
|
|
88
|
+
* // Another module can create its own labeled logger
|
|
89
|
+
* const apiLogger = LoggerFactory.getLogger('APIHandler');
|
|
90
|
+
*
|
|
91
|
+
* logger.info('Processing user request'); // Log includes { label: 'UserService' }
|
|
92
|
+
* ```
|
|
15
93
|
*/
|
|
16
|
-
static
|
|
94
|
+
static getLogger(label: string): winston.Logger;
|
|
17
95
|
}
|
|
18
96
|
|
|
19
|
-
export { LoggerFactory
|
|
97
|
+
export { LoggerFactory };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { LoggerFactory
|
|
1
|
+
export { LoggerFactory } from './LoggerFactory.js';
|
|
@@ -4,14 +4,14 @@ import { Duration } from 'date-fns';
|
|
|
4
4
|
* Utility class for date and time operations. Provides methods for parsing,
|
|
5
5
|
* formatting, and performing calculations with dates and times.
|
|
6
6
|
*/
|
|
7
|
-
declare class
|
|
7
|
+
declare class DateUtil {
|
|
8
8
|
static readonly ISO_8601_FORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSSxxx";
|
|
9
9
|
/**
|
|
10
10
|
* Gets the current date and time in the specified time zone.
|
|
11
11
|
* @param timeZone The IANA time zone identifier.
|
|
12
12
|
* @returns Current date and time in the specified time zone.
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
static now(timeZone: string): Date;
|
|
15
15
|
/**
|
|
16
16
|
* Gets the current time in milliseconds since the Unix epoch.
|
|
17
17
|
* @returns Current time in milliseconds.
|
|
@@ -25,7 +25,7 @@ declare class BaseDateUtil {
|
|
|
25
25
|
* @throws {IllegalArgumentException} If the date string is invalid.
|
|
26
26
|
* @returns Parsed Date object.
|
|
27
27
|
*/
|
|
28
|
-
|
|
28
|
+
static readDate(dateString: string, dateFormat: string | undefined, timeZone: string): Date;
|
|
29
29
|
/**
|
|
30
30
|
* Formats a Date or timestamp into a string.
|
|
31
31
|
* @param date The date or timestamp to format.
|
|
@@ -33,24 +33,24 @@ declare class BaseDateUtil {
|
|
|
33
33
|
* @param dateFormat The desired output format (default: ISO_8601_FORMAT).
|
|
34
34
|
* @returns Formatted date string.
|
|
35
35
|
*/
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
static printDate(date: Date, timeZone: string, dateFormat?: string): string;
|
|
37
|
+
static printDate(date: number, timeZone: string, dateFormat?: string): string;
|
|
38
38
|
/**
|
|
39
39
|
* Gets the start of the day for a given date or timestamp.
|
|
40
40
|
* @param date The date or timestamp to calculate from.
|
|
41
41
|
* @param timeZone The IANA time zone identifier.
|
|
42
42
|
* @returns The start of the day as a Date object.
|
|
43
43
|
*/
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
static getStartOfDay(date: Date, timeZone: string): Date;
|
|
45
|
+
static getStartOfDay(date: number, timeZone: string): Date;
|
|
46
46
|
/**
|
|
47
47
|
* Gets the end of the day for a given date or timestamp.
|
|
48
48
|
* @param date The date or timestamp to calculate from.
|
|
49
49
|
* @param timeZone The IANA time zone identifier.
|
|
50
50
|
* @returns The end of the day as a Date object.
|
|
51
51
|
*/
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
static getEndOfDay(date: Date, timeZone: string): Date;
|
|
53
|
+
static getEndOfDay(date: number, timeZone: string): Date;
|
|
54
54
|
/**
|
|
55
55
|
* Checks if a date string is valid according to the specified format.
|
|
56
56
|
* @param dateString The date string to validate.
|
|
@@ -74,14 +74,6 @@ declare class BaseDateUtil {
|
|
|
74
74
|
*/
|
|
75
75
|
static monthsInBetween(firstDate: Date, secondDate: Date): number;
|
|
76
76
|
static monthsInBetween(firstDate: number, secondDate: number): number;
|
|
77
|
-
/**
|
|
78
|
-
* Calculates the absolute number of years between two dates or timestamps.
|
|
79
|
-
* @param firstDate The first date or timestamp.
|
|
80
|
-
* @param secondDate The second date or timestamp.
|
|
81
|
-
* @returns The number of years between the two dates.
|
|
82
|
-
*/
|
|
83
|
-
static anniversaryYearsInBetween(firstDate: Date, secondDate: Date): number;
|
|
84
|
-
static anniversaryYearsInBetween(firstDate: number, secondDate: number): number;
|
|
85
77
|
/**
|
|
86
78
|
* Calculates the absolute number of years between two dates or timestamps.
|
|
87
79
|
* @param firstDate The first date or timestamp.
|
|
@@ -125,48 +117,5 @@ declare class BaseDateUtil {
|
|
|
125
117
|
*/
|
|
126
118
|
static toMillis(date: Date): number;
|
|
127
119
|
}
|
|
128
|
-
/**
|
|
129
|
-
* Utility class for handling date operations in a fixed time zone.
|
|
130
|
-
* Extends BaseDateUtil with default settings for the 'Asia/Kolkata' time zone.
|
|
131
|
-
*/
|
|
132
|
-
declare class DateUtil extends BaseDateUtil {
|
|
133
|
-
/** Default time zone used for all date operations. */
|
|
134
|
-
static readonly TIMEZONE = "Asia/Kolkata";
|
|
135
|
-
/**
|
|
136
|
-
* Gets the current date and time in the default time zone.
|
|
137
|
-
* @returns Current date and time as a Date object.
|
|
138
|
-
*/
|
|
139
|
-
static now(): Date;
|
|
140
|
-
/**
|
|
141
|
-
* Parses a date string into a Date object using the default time zone.
|
|
142
|
-
* @param dateString The date string to parse.
|
|
143
|
-
* @param dateFormat Optional format of the date string (default: ISO_8601_FORMAT).
|
|
144
|
-
* @throws {IllegalArgumentException} If the date string is invalid.
|
|
145
|
-
* @returns Parsed Date object.
|
|
146
|
-
*/
|
|
147
|
-
static readDate(dateString: string, dateFormat?: string): Date;
|
|
148
|
-
/**
|
|
149
|
-
* Formats a Date or timestamp into a string using the default time zone.
|
|
150
|
-
* @param date The date or timestamp to format.
|
|
151
|
-
* @param dateFormat Optional desired output format (default: ISO_8601_FORMAT).
|
|
152
|
-
* @returns Formatted date string.
|
|
153
|
-
*/
|
|
154
|
-
static printDate(date: Date, dateFormat?: string): string;
|
|
155
|
-
static printDate(date: number, dateFormat?: string): string;
|
|
156
|
-
/**
|
|
157
|
-
* Gets the start of the day for a given date or timestamp using the default time zone.
|
|
158
|
-
* @param date The date or timestamp to calculate from.
|
|
159
|
-
* @returns A Date object representing the start of the day.
|
|
160
|
-
*/
|
|
161
|
-
static getStartOfDay(date: Date): Date;
|
|
162
|
-
static getStartOfDay(date: number): Date;
|
|
163
|
-
/**
|
|
164
|
-
* Gets the end of the day for a given date or timestamp using the default time zone.
|
|
165
|
-
* @param date The date or timestamp to calculate from.
|
|
166
|
-
* @returns A Date object representing the end of the day.
|
|
167
|
-
*/
|
|
168
|
-
static getEndOfDay(date: Date): Date;
|
|
169
|
-
static getEndOfDay(date: number): Date;
|
|
170
|
-
}
|
|
171
120
|
|
|
172
121
|
export { DateUtil };
|
package/package.json
CHANGED
|
@@ -1,136 +1,140 @@
|
|
|
1
|
-
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@org-quicko/core",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "A library in typescript for common entities and utilities across Quicko",
|
|
5
|
+
"author": "Quicko",
|
|
6
|
+
"main": "dist/cjs/build/node/index.cjs",
|
|
7
|
+
"module": "dist/esm/build/node/index.js",
|
|
8
|
+
"browser": "dist/browser/build/browser/index.js",
|
|
9
|
+
"types": "dist/types/index.d.ts",
|
|
10
|
+
"type": "module",
|
|
11
|
+
"scripts": {
|
|
12
|
+
"clean": "rm -rf dist && npm cache clean --force",
|
|
13
|
+
"lint": "eslint .",
|
|
14
|
+
"lint:fix": "eslint . --fix",
|
|
15
|
+
"prebuild": "npm run clean && npm run lint",
|
|
16
|
+
"build": "rollup -c",
|
|
17
|
+
"test:date:util": "set NODE_ENV=local && node --experimental-vm-modules node_modules/jest/bin/jest.js run ./tests/DateUtil.test.ts"
|
|
18
|
+
},
|
|
19
|
+
"license": "ISC",
|
|
20
|
+
"files": [
|
|
21
|
+
"dist/**/*"
|
|
22
|
+
],
|
|
23
|
+
"exports": {
|
|
24
|
+
".": {
|
|
25
|
+
"types": "./dist/types/index.d.ts",
|
|
26
|
+
"node": {
|
|
27
|
+
"import": "./dist/esm/build/node/index.js",
|
|
28
|
+
"require": "./dist/cjs/build/node/index.cjs"
|
|
29
|
+
},
|
|
30
|
+
"default": "./dist/browser/build/browser/index.js"
|
|
31
|
+
},
|
|
32
|
+
"./beans": {
|
|
33
|
+
"types": "./dist/types/src/beans/index.d.ts",
|
|
34
|
+
"node": {
|
|
35
|
+
"import": "./dist/esm/beans/index.js",
|
|
36
|
+
"require": "./dist/cjs/beans/index.cjs"
|
|
37
|
+
},
|
|
38
|
+
"default": "./dist/browser/beans/index.js"
|
|
39
|
+
},
|
|
40
|
+
"./types": {
|
|
41
|
+
"types": "./dist/types/src/types/index.d.ts",
|
|
42
|
+
"node": {
|
|
43
|
+
"import": "./dist/esm/types/index.js",
|
|
44
|
+
"require": "./dist/cjs/types/index.cjs"
|
|
45
|
+
},
|
|
46
|
+
"default": "./dist/browser/types/index.js"
|
|
47
|
+
},
|
|
48
|
+
"./utils": {
|
|
49
|
+
"types": "./dist/types/src/utils/index.d.ts",
|
|
50
|
+
"node": {
|
|
51
|
+
"import": "./dist/esm/utils/index.js",
|
|
52
|
+
"require": "./dist/cjs/utils/index.cjs"
|
|
53
|
+
},
|
|
54
|
+
"default": "./dist/browser/utils/index.js"
|
|
55
|
+
},
|
|
56
|
+
"./utils/date": {
|
|
57
|
+
"types": "./dist/types/src/utils/date/index.d.ts",
|
|
58
|
+
"node": {
|
|
59
|
+
"import": "./dist/esm/utils/date/index.js",
|
|
60
|
+
"require": "./dist/cjs/utils/date/index.cjs"
|
|
61
|
+
},
|
|
62
|
+
"default": "./dist/browser/utils/date/index.js"
|
|
63
|
+
},
|
|
64
|
+
"./logger": {
|
|
65
|
+
"types": "./dist/types/src/logger/index.d.ts",
|
|
66
|
+
"node": {
|
|
67
|
+
"import": "./dist/esm/logger/index.js",
|
|
68
|
+
"require": "./dist/cjs/logger/index.cjs"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"./exceptions": {
|
|
72
|
+
"types": "./dist/types/src/exceptions/index.d.ts",
|
|
73
|
+
"node": {
|
|
74
|
+
"import": "./dist/esm/exceptions/index.js",
|
|
75
|
+
"require": "./dist/cjs/exceptions/index.cjs"
|
|
76
|
+
},
|
|
77
|
+
"default": "./dist/browser/exceptions/index.js"
|
|
78
|
+
},
|
|
79
|
+
"./package.json": "./package.json"
|
|
80
|
+
},
|
|
81
|
+
"typesVersions": {
|
|
82
|
+
"*": {
|
|
83
|
+
"*": [
|
|
84
|
+
"dist/types/*"
|
|
85
|
+
],
|
|
86
|
+
"beans": [
|
|
87
|
+
"dist/types/src/beans/index.d.ts"
|
|
88
|
+
],
|
|
89
|
+
"types": [
|
|
90
|
+
"dist/types/src/types/index.d.ts"
|
|
91
|
+
],
|
|
92
|
+
"utils": [
|
|
93
|
+
"dist/types/src/utils/index.d.ts"
|
|
94
|
+
],
|
|
95
|
+
"utils/date": [
|
|
96
|
+
"dist/types/src/utils/date/index.d.ts"
|
|
97
|
+
],
|
|
98
|
+
"exceptions": [
|
|
99
|
+
"dist/types/src/exceptions/index.d.ts"
|
|
100
|
+
],
|
|
101
|
+
"logger": [
|
|
102
|
+
"dist/types/src/logger/index.d.ts"
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"directories": {
|
|
107
|
+
"lib": "./dist"
|
|
108
|
+
},
|
|
109
|
+
"engines": {
|
|
110
|
+
"node": ">=14"
|
|
111
|
+
},
|
|
112
|
+
"dependencies": {
|
|
113
|
+
"@date-fns/tz": "^1.1.2",
|
|
114
|
+
"class-transformer": "^0.5.1",
|
|
115
|
+
"class-validator": "^0.14.1",
|
|
116
|
+
"date-fns": "^4.1.0",
|
|
117
|
+
"tslib": "^2.8.1",
|
|
118
|
+
"winston": "^3.17.0"
|
|
119
|
+
},
|
|
120
|
+
"devDependencies": {
|
|
121
|
+
"@rollup/plugin-commonjs": "^28.0.3",
|
|
122
|
+
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
123
|
+
"@rollup/plugin-typescript": "^12.1.2",
|
|
124
|
+
"@types/node": "^22.7.0",
|
|
125
|
+
"@typescript-eslint/eslint-plugin": "^8.33.1",
|
|
126
|
+
"@typescript-eslint/parser": "^8.33.1",
|
|
127
|
+
"esbuild-plugin-eslint": "^0.3.7",
|
|
128
|
+
"eslint": "^9.28.0",
|
|
129
|
+
"eslint-config-prettier": "^10.1.5",
|
|
130
|
+
"eslint-import-resolver-typescript": "^3.7.0",
|
|
131
|
+
"glob": "^11.0.2",
|
|
132
|
+
"rollup": "^4.40.2",
|
|
133
|
+
"rollup-plugin-dts": "^6.2.1",
|
|
134
|
+
"ts-node": "^10.9.2",
|
|
135
|
+
"typescript": "^5.6.2",
|
|
136
|
+
"@types/jest": "^29.5.12",
|
|
137
|
+
"jest": "^29.7.0",
|
|
138
|
+
"ts-jest": "^29.2.5"
|
|
139
|
+
}
|
|
140
|
+
}
|