@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.
- package/ReleaseNotes.md +17 -1
- package/dist/__tests__/elastic-transport.test.d.ts +1 -0
- package/dist/__tests__/elastic-transport.test.js +78 -0
- package/dist/__tests__/logger.test.js +21 -0
- package/dist/lib/elastic-transport.d.ts +5 -1
- package/dist/lib/elastic-transport.js +49 -11
- package/dist/lib/logger.js +11 -6
- package/dist/types/logger.d.ts +2 -1
- package/package.json +9 -3
- package/.github/workflows/npm-publish.yml +0 -84
- package/.github/workflows/push.yml +0 -83
- package/.husky/pre-commit +0 -62
- package/.prettierrc +0 -8
- package/.prettierrc.json +0 -8
- package/ISSUES.md +0 -0
- package/eslint.config.mjs +0 -64
- package/example.env +0 -6
- package/jest.config.js +0 -13
- package/src/__tests__/colorful.test.ts +0 -77
- package/src/__tests__/formatter.test.ts +0 -96
- package/src/__tests__/logger.test.ts +0 -122
- package/src/env.d.ts +0 -9
- package/src/index.ts +0 -1
- package/src/lib/colorful.ts +0 -167
- package/src/lib/cypto.ts +0 -296
- package/src/lib/elastic-transport.ts +0 -307
- package/src/lib/formatter.ts +0 -125
- package/src/lib/imagefull.ts +0 -41
- package/src/lib/index.ts +0 -12
- package/src/lib/logger.ts +0 -590
- package/src/lib/pdf.ts +0 -25
- package/src/lib/trace-store.ts +0 -46
- package/src/types/index.ts +0 -1
- package/src/types/logger.ts +0 -66
- package/src/utilities/axios.ts +0 -4
- package/src/utilities/index.ts +0 -1
- package/tsconfig.json +0 -16
package/src/types/logger.ts
DELETED
|
@@ -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
|
-
}
|
package/src/utilities/axios.ts
DELETED
package/src/utilities/index.ts
DELETED
|
@@ -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
|
-
}
|