@mhmdhammoud/meritt-utils 1.6.1 → 1.6.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.
@@ -1,66 +0,0 @@
1
- /**
2
- * Log levels
3
- */
4
- export type LOG_LEVEL = 'error' | 'warn' | 'info' | 'debug' | 'trace'
5
-
6
- /**
7
- * Represents a log event.
8
- */
9
- export interface LogEvent {
10
- /**
11
- * The code associated with the log event.
12
- */
13
- code: string
14
- /**
15
- * The message describing the log event.
16
- */
17
- msg: string
18
- }
19
-
20
- /**
21
- * Configuration options for Elasticsearch.
22
- */
23
- export interface ElasticConfig {
24
- /**
25
- * The Elasticsearch index to write logs to.
26
- */
27
- index?: string
28
- /**
29
- * The URL of the Elasticsearch node.
30
- */
31
- node?: string
32
- /**
33
- * Authentication details for accessing Elasticsearch.
34
- */
35
- auth?: {
36
- /**
37
- * The username for authentication.
38
- */
39
- username: string
40
- /**
41
- * The password for authentication.
42
- */
43
- password: string
44
- }
45
- /**
46
- * The interval (in milliseconds) at which logs are flushed to Elasticsearch.
47
- */
48
- flushInterval?: number
49
- /**
50
- * The number of bytes to buffer before flushing to Elasticsearch.
51
- */
52
- 'flush-bytes'?: number
53
- /**
54
- * Maximum number of retries for failed Elasticsearch requests.
55
- */
56
- maxRetries?: number
57
- /**
58
- * Request timeout in milliseconds before considering a request failed.
59
- */
60
- requestTimeout?: number
61
- /**
62
- * Whether to sniff for additional Elasticsearch nodes on connection fault.
63
- * Enables automatic reconnection when a node fails.
64
- */
65
- sniffOnConnectionFault?: boolean
66
- }
@@ -1,4 +0,0 @@
1
- import axios from 'axios'
2
-
3
- const axiosInstance = axios.create({})
4
- export default axiosInstance
@@ -1 +0,0 @@
1
- export { default as AxiosInstance } from './axios'
package/tsconfig.json DELETED
@@ -1,16 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es2018",
4
- "module": "commonjs",
5
- "lib": ["es2018", "esnext.asynciterable", "DOM"],
6
- "resolveJsonModule": false,
7
- "declaration": true,
8
- "outDir": "./dist",
9
- "rootDir": "./src",
10
- "strict": true,
11
- "strictPropertyInitialization": false,
12
- "esModuleInterop": true,
13
- "skipLibCheck": true,
14
- "forceConsistentCasingInFileNames": true
15
- }
16
- }