@org-quicko/core 1.1.1 → 2.0.1

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.
Files changed (69) hide show
  1. package/README.md +7 -7
  2. package/dist/browser/beans/BaseObject.js.map +1 -1
  3. package/dist/browser/exceptions/BadRequestException.js.map +1 -1
  4. package/dist/browser/exceptions/BaseException.js +1 -21
  5. package/dist/browser/exceptions/BaseException.js.map +1 -1
  6. package/dist/browser/exceptions/ClientException.js.map +1 -1
  7. package/dist/browser/exceptions/ConverterException.js.map +1 -1
  8. package/dist/browser/exceptions/ForbiddenAccessException.js.map +1 -1
  9. package/dist/browser/exceptions/HTTPException.js.map +1 -1
  10. package/dist/browser/exceptions/IllegalArgumentException.js.map +1 -1
  11. package/dist/browser/exceptions/UnauthorizedException.js.map +1 -1
  12. package/dist/browser/types/JSONObject.js +6 -0
  13. package/dist/browser/types/JSONObject.js.map +1 -1
  14. package/dist/browser/types/LoggingLevel.js.map +1 -1
  15. package/dist/browser/types/SortOrder.js.map +1 -1
  16. package/dist/browser/utils/date/DateUtil.js +4 -46
  17. package/dist/browser/utils/date/DateUtil.js.map +1 -1
  18. package/dist/cjs/beans/BaseObject.cjs.map +1 -1
  19. package/dist/cjs/build/node/index.cjs +0 -1
  20. package/dist/cjs/build/node/index.cjs.map +1 -1
  21. package/dist/cjs/exceptions/BadRequestException.cjs.map +1 -1
  22. package/dist/cjs/exceptions/BaseException.cjs +1 -21
  23. package/dist/cjs/exceptions/BaseException.cjs.map +1 -1
  24. package/dist/cjs/exceptions/ClientException.cjs.map +1 -1
  25. package/dist/cjs/exceptions/ConverterException.cjs.map +1 -1
  26. package/dist/cjs/exceptions/ForbiddenAccessException.cjs.map +1 -1
  27. package/dist/cjs/exceptions/HTTPException.cjs.map +1 -1
  28. package/dist/cjs/exceptions/IllegalArgumentException.cjs.map +1 -1
  29. package/dist/cjs/exceptions/UnauthorizedException.cjs.map +1 -1
  30. package/dist/cjs/logger/LoggerFactory.cjs +96 -22
  31. package/dist/cjs/logger/LoggerFactory.cjs.map +1 -1
  32. package/dist/cjs/logger/format/ErrorFormat.cjs +115 -0
  33. package/dist/cjs/logger/format/ErrorFormat.cjs.map +1 -0
  34. package/dist/cjs/logger/index.cjs +0 -1
  35. package/dist/cjs/logger/index.cjs.map +1 -1
  36. package/dist/cjs/types/JSONObject.cjs +6 -0
  37. package/dist/cjs/types/JSONObject.cjs.map +1 -1
  38. package/dist/cjs/types/LoggingLevel.cjs.map +1 -1
  39. package/dist/cjs/types/SortOrder.cjs.map +1 -1
  40. package/dist/cjs/utils/date/DateUtil.cjs +3 -45
  41. package/dist/cjs/utils/date/DateUtil.cjs.map +1 -1
  42. package/dist/esm/beans/BaseObject.js.map +1 -1
  43. package/dist/esm/build/node/index.js +1 -1
  44. package/dist/esm/exceptions/BadRequestException.js.map +1 -1
  45. package/dist/esm/exceptions/BaseException.js +1 -21
  46. package/dist/esm/exceptions/BaseException.js.map +1 -1
  47. package/dist/esm/exceptions/ClientException.js.map +1 -1
  48. package/dist/esm/exceptions/ConverterException.js.map +1 -1
  49. package/dist/esm/exceptions/ForbiddenAccessException.js.map +1 -1
  50. package/dist/esm/exceptions/HTTPException.js.map +1 -1
  51. package/dist/esm/exceptions/IllegalArgumentException.js.map +1 -1
  52. package/dist/esm/exceptions/UnauthorizedException.js.map +1 -1
  53. package/dist/esm/logger/LoggerFactory.js +97 -22
  54. package/dist/esm/logger/LoggerFactory.js.map +1 -1
  55. package/dist/esm/logger/format/ErrorFormat.js +113 -0
  56. package/dist/esm/logger/format/ErrorFormat.js.map +1 -0
  57. package/dist/esm/logger/index.js +1 -1
  58. package/dist/esm/types/JSONObject.js +6 -0
  59. package/dist/esm/types/JSONObject.js.map +1 -1
  60. package/dist/esm/types/LoggingLevel.js.map +1 -1
  61. package/dist/esm/types/SortOrder.js.map +1 -1
  62. package/dist/esm/utils/date/DateUtil.js +4 -46
  63. package/dist/esm/utils/date/DateUtil.js.map +1 -1
  64. package/dist/types/index.d.ts +1 -1
  65. package/dist/types/src/exceptions/BaseException.d.ts +0 -6
  66. package/dist/types/src/logger/LoggerFactory.d.ts +88 -10
  67. package/dist/types/src/logger/index.d.ts +1 -1
  68. package/dist/types/src/utils/date/DateUtil.d.ts +9 -60
  69. package/package.json +140 -136
@@ -4,13 +4,7 @@
4
4
  */
5
5
  declare class BaseException extends Error {
6
6
  code?: number;
7
- cause?: unknown;
8
7
  constructor(message: string, cause?: unknown, code?: number);
9
- /**
10
- * Retrieves the full stack trace of the exception, including causes.
11
- * @returns A string representation of the stack trace.
12
- */
13
- getStackTrace(): string;
14
8
  }
15
9
 
16
10
  export { BaseException };
@@ -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
- * A factory class for managing logger instances.
6
- * Provides methods to retrieve and store loggers in a shared storage.
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
- * Retrieves a logger instance by its name.
26
+ * Base logger instance used by the factory.
12
27
  *
13
- * @param name The name of the logger to retrieve.
14
- * @returns The logger instance if found, otherwise `undefined`.
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 createLogger(name: string, level?: LoggingLevel, format?: winston.Logform.Format): winston.Logger;
94
+ static getLogger(label: string): winston.Logger;
17
95
  }
18
96
 
19
- export { LoggerFactory, loggers };
97
+ export { LoggerFactory };
@@ -1 +1 @@
1
- export { LoggerFactory, loggers } from './LoggerFactory.js';
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 BaseDateUtil {
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
- protected static now(timeZone: string): Date;
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
- protected static readDate(dateString: string, dateFormat: string | undefined, timeZone: string): Date;
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
- protected static printDate(date: Date, timeZone: string, dateFormat?: string): string;
37
- protected static printDate(date: number, timeZone: string, dateFormat?: string): string;
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
- protected static getStartOfDay(date: Date, timeZone: string): Date;
45
- protected static getStartOfDay(date: number, timeZone: string): Date;
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
- protected static getEndOfDay(date: Date, timeZone: string): Date;
53
- protected static getEndOfDay(date: number, timeZone: string): Date;
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
- "name": "@org-quicko/core",
3
- "version": "1.1.1",
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
- },
18
- "license": "ISC",
19
- "files": [
20
- "dist/**/*"
21
- ],
22
- "exports": {
23
- ".": {
24
- "types": "./dist/types/index.d.ts",
25
- "node": {
26
- "import": "./dist/esm/build/node/index.js",
27
- "require": "./dist/cjs/build/node/index.cjs"
28
- },
29
- "default": "./dist/browser/build/browser/index.js"
30
- },
31
- "./beans": {
32
- "types": "./dist/types/src/beans/index.d.ts",
33
- "node": {
34
- "import": "./dist/esm/beans/index.js",
35
- "require": "./dist/cjs/beans/index.cjs"
36
- },
37
- "default": "./dist/browser/beans/index.js"
38
- },
39
- "./types": {
40
- "types": "./dist/types/src/types/index.d.ts",
41
- "node": {
42
- "import": "./dist/esm/types/index.js",
43
- "require": "./dist/cjs/types/index.cjs"
44
- },
45
- "default": "./dist/browser/types/index.js"
46
- },
47
- "./utils": {
48
- "types": "./dist/types/src/utils/index.d.ts",
49
- "node": {
50
- "import": "./dist/esm/utils/index.js",
51
- "require": "./dist/cjs/utils/index.cjs"
52
- },
53
- "default": "./dist/browser/utils/index.js"
54
- },
55
- "./utils/date": {
56
- "types": "./dist/types/src/utils/date/index.d.ts",
57
- "node": {
58
- "import": "./dist/esm/utils/date/index.js",
59
- "require": "./dist/cjs/utils/date/index.cjs"
60
- },
61
- "default": "./dist/browser/utils/date/index.js"
62
- },
63
- "./logger": {
64
- "types": "./dist/types/src/logger/index.d.ts",
65
- "node": {
66
- "import": "./dist/esm/logger/index.js",
67
- "require": "./dist/cjs/logger/index.cjs"
68
- }
69
- },
70
- "./exceptions": {
71
- "types": "./dist/types/src/exceptions/index.d.ts",
72
- "node": {
73
- "import": "./dist/esm/exceptions/index.js",
74
- "require": "./dist/cjs/exceptions/index.cjs"
75
- },
76
- "default": "./dist/browser/exceptions/index.js"
77
- },
78
- "./package.json": "./package.json"
79
- },
80
- "typesVersions": {
81
- "*": {
82
- "*": [
83
- "dist/types/*"
84
- ],
85
- "beans": [
86
- "dist/types/src/beans/index.d.ts"
87
- ],
88
- "types": [
89
- "dist/types/src/types/index.d.ts"
90
- ],
91
- "utils": [
92
- "dist/types/src/utils/index.d.ts"
93
- ],
94
- "utils/date": [
95
- "dist/types/src/utils/date/index.d.ts"
96
- ],
97
- "exceptions": [
98
- "dist/types/src/exceptions/index.d.ts"
99
- ],
100
- "logger": [
101
- "dist/types/src/logger/index.d.ts"
102
- ]
103
- }
104
- },
105
- "directories": {
106
- "lib": "./dist"
107
- },
108
- "engines": {
109
- "node": ">=14"
110
- },
111
- "dependencies": {
112
- "@date-fns/tz": "^1.1.2",
113
- "class-transformer": "^0.5.1",
114
- "class-validator": "^0.14.1",
115
- "date-fns": "^4.1.0",
116
- "tslib": "^2.8.1",
117
- "winston": "^3.17.0"
118
- },
119
- "devDependencies": {
120
- "@rollup/plugin-commonjs": "^28.0.3",
121
- "@rollup/plugin-node-resolve": "^16.0.1",
122
- "@rollup/plugin-typescript": "^12.1.2",
123
- "@types/node": "^22.7.0",
124
- "@typescript-eslint/eslint-plugin": "^8.33.1",
125
- "@typescript-eslint/parser": "^8.33.1",
126
- "esbuild-plugin-eslint": "^0.3.7",
127
- "eslint": "^9.28.0",
128
- "eslint-config-prettier": "^10.1.5",
129
- "eslint-import-resolver-typescript": "^3.7.0",
130
- "glob": "^11.0.2",
131
- "rollup": "^4.40.2",
132
- "rollup-plugin-dts": "^6.2.1",
133
- "ts-node": "^10.9.2",
134
- "typescript": "^5.6.2"
135
- }
136
- }
1
+ {
2
+ "name": "@org-quicko/core",
3
+ "version": "2.0.1",
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
+ }