logixia 1.12.4 → 1.12.6
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 +80 -27
- package/dist/.tsbuildinfo +1 -1
- package/dist/async-context-CSHWoHMB.js +88 -0
- package/dist/async-context-CSHWoHMB.js.map +1 -0
- package/dist/async-context-CwBNMm2E.mjs +68 -0
- package/dist/async-context-CwBNMm2E.mjs.map +1 -0
- package/dist/azure-monitor.transport-CG7ClkYj.d.ts +62 -0
- package/dist/azure-monitor.transport-CG7ClkYj.d.ts.map +1 -0
- package/dist/azure-monitor.transport-CHnjVRF-.mjs +152 -0
- package/dist/azure-monitor.transport-CHnjVRF-.mjs.map +1 -0
- package/dist/azure-monitor.transport-Cm74kXZS.d.mts +62 -0
- package/dist/azure-monitor.transport-Cm74kXZS.d.mts.map +1 -0
- package/dist/azure-monitor.transport-CrvfHd9C.js +157 -0
- package/dist/azure-monitor.transport-CrvfHd9C.js.map +1 -0
- package/dist/azure.d.mts +3 -0
- package/dist/azure.d.ts +3 -0
- package/dist/azure.js +6 -0
- package/dist/azure.mjs +6 -0
- package/dist/batch-buffer-BY-mRWIK.js +170 -0
- package/dist/batch-buffer-BY-mRWIK.js.map +1 -0
- package/dist/batch-buffer-PGvSgbmd.mjs +132 -0
- package/dist/batch-buffer-PGvSgbmd.mjs.map +1 -0
- package/dist/browser.d.mts +427 -0
- package/dist/browser.d.mts.map +1 -0
- package/dist/browser.d.ts +427 -0
- package/dist/browser.d.ts.map +1 -0
- package/dist/browser.js +590 -0
- package/dist/browser.js.map +1 -0
- package/dist/browser.mjs +586 -0
- package/dist/browser.mjs.map +1 -0
- package/dist/chunk-DLSkYcPk.mjs +7 -0
- package/dist/chunk-nOFOJqeH.js +30 -0
- package/dist/cloudwatch.d.mts +3 -0
- package/dist/cloudwatch.d.ts +3 -0
- package/dist/cloudwatch.js +6 -0
- package/dist/cloudwatch.mjs +6 -0
- package/dist/cloudwatch.transport-CGHY4buE.d.mts +81 -0
- package/dist/cloudwatch.transport-CGHY4buE.d.mts.map +1 -0
- package/dist/cloudwatch.transport-DK_8cKd3.d.ts +81 -0
- package/dist/cloudwatch.transport-DK_8cKd3.d.ts.map +1 -0
- package/dist/cloudwatch.transport-pNBNWJLt.js +370 -0
- package/dist/cloudwatch.transport-pNBNWJLt.js.map +1 -0
- package/dist/cloudwatch.transport-yBwm4OeO.mjs +360 -0
- package/dist/cloudwatch.transport-yBwm4OeO.mjs.map +1 -0
- package/dist/coerce.utils-BN980Y9V.js +44 -0
- package/dist/coerce.utils-BN980Y9V.js.map +1 -0
- package/dist/coerce.utils-Dxv4_ikC.mjs +38 -0
- package/dist/coerce.utils-Dxv4_ikC.mjs.map +1 -0
- package/dist/correlation.d.mts +238 -0
- package/dist/correlation.d.mts.map +1 -0
- package/dist/correlation.d.ts +238 -0
- package/dist/correlation.d.ts.map +1 -0
- package/dist/correlation.js +272 -0
- package/dist/correlation.js.map +1 -0
- package/dist/correlation.mjs +261 -0
- package/dist/correlation.mjs.map +1 -0
- package/dist/gcp.d.mts +3 -0
- package/dist/gcp.d.ts +3 -0
- package/dist/gcp.js +6 -0
- package/dist/gcp.mjs +6 -0
- package/dist/gcp.transport-BJuNRFe_.mjs +192 -0
- package/dist/gcp.transport-BJuNRFe_.mjs.map +1 -0
- package/dist/gcp.transport-BOhkVKlI.d.ts +71 -0
- package/dist/gcp.transport-BOhkVKlI.d.ts.map +1 -0
- package/dist/gcp.transport-Bi6CUqZR.d.mts +71 -0
- package/dist/gcp.transport-Bi6CUqZR.d.mts.map +1 -0
- package/dist/gcp.transport-SHdtc1n0.js +198 -0
- package/dist/gcp.transport-SHdtc1n0.js.map +1 -0
- package/dist/{index-CwFww7VC.d.ts → index-BPKwwERo.d.mts} +18 -174
- package/dist/index-BPKwwERo.d.mts.map +1 -0
- package/dist/{index-DnyeaoZU.d.mts → index-C1X-TE5I.d.ts} +18 -174
- package/dist/index-C1X-TE5I.d.ts.map +1 -0
- package/dist/index.d.mts +41 -11
- package/dist/index.d.mts.map +1 -1
- package/dist/index.d.ts +40 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +87 -147
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +62 -132
- package/dist/index.mjs.map +1 -1
- package/dist/internal-log-BUJYMZbE.js +70 -0
- package/dist/internal-log-BUJYMZbE.js.map +1 -0
- package/dist/internal-log-Cm8SOWSV.mjs +52 -0
- package/dist/internal-log-Cm8SOWSV.mjs.map +1 -0
- package/dist/{logitron-logger.module-BIGTm2V6.mjs → logitron-logger.module-Bs3XYZgF.mjs} +266 -166
- package/dist/logitron-logger.module-Bs3XYZgF.mjs.map +1 -0
- package/dist/{logitron-logger.module-BTxDpK6u.js → logitron-logger.module-BsDZR5BH.js} +297 -203
- package/dist/logitron-logger.module-BsDZR5BH.js.map +1 -0
- package/dist/{logitron-logger.module-BmT-ewin.d.ts → logitron-logger.module-CxT1F6Cm.d.ts} +23 -10
- package/dist/logitron-logger.module-CxT1F6Cm.d.ts.map +1 -0
- package/dist/{logitron-logger.module-BCq3sF27.d.mts → logitron-logger.module-zDKVd_o0.d.mts} +23 -10
- package/dist/logitron-logger.module-zDKVd_o0.d.mts.map +1 -0
- package/dist/middleware.d.mts +5 -2
- package/dist/middleware.d.mts.map +1 -1
- package/dist/middleware.d.ts +5 -2
- package/dist/middleware.d.ts.map +1 -1
- package/dist/middleware.js +13 -4
- package/dist/middleware.js.map +1 -1
- package/dist/middleware.mjs +14 -4
- package/dist/middleware.mjs.map +1 -1
- package/dist/nest.d.mts +3 -2
- package/dist/nest.d.mts.map +1 -1
- package/dist/nest.d.ts +3 -2
- package/dist/nest.d.ts.map +1 -1
- package/dist/nest.js +6 -2
- package/dist/nest.mjs +6 -2
- package/dist/safe-stringify-DJ66tW5I.mjs +118 -0
- package/dist/safe-stringify-DJ66tW5I.mjs.map +1 -0
- package/dist/safe-stringify-DWo3aZp_.js +142 -0
- package/dist/safe-stringify-DWo3aZp_.js.map +1 -0
- package/dist/search-CFQRISUv.mjs +1596 -0
- package/dist/search-CFQRISUv.mjs.map +1 -0
- package/dist/search-CQOo-Iq6.d.mts +816 -0
- package/dist/search-CQOo-Iq6.d.mts.map +1 -0
- package/dist/search-DujhR94O.d.ts +816 -0
- package/dist/search-DujhR94O.d.ts.map +1 -0
- package/dist/search-njTI2hdo.js +1631 -0
- package/dist/search-njTI2hdo.js.map +1 -0
- package/dist/search.d.mts +4 -1
- package/dist/search.d.ts +4 -1
- package/dist/search.js +9 -1
- package/dist/search.mjs +3 -2
- package/dist/testing.d.mts +2 -1
- package/dist/testing.d.mts.map +1 -1
- package/dist/testing.d.ts +2 -1
- package/dist/testing.d.ts.map +1 -1
- package/dist/{transport.manager-ciG4r5uz.js → transport.manager-BivyUTtU.js} +497 -437
- package/dist/transport.manager-BivyUTtU.js.map +1 -0
- package/dist/{transport.manager-DETpXuaY.mjs → transport.manager-D6KL3t9V.mjs} +473 -364
- package/dist/transport.manager-D6KL3t9V.mjs.map +1 -0
- package/dist/transport.types-B5vcyv2k.d.mts +187 -0
- package/dist/transport.types-B5vcyv2k.d.mts.map +1 -0
- package/dist/transport.types-BuY84TwO.d.ts +187 -0
- package/dist/transport.types-BuY84TwO.d.ts.map +1 -0
- package/dist/transports.d.mts +90 -29
- package/dist/transports.d.mts.map +1 -1
- package/dist/transports.d.ts +90 -29
- package/dist/transports.d.ts.map +1 -1
- package/dist/transports.js +14 -2
- package/dist/transports.mjs +10 -2
- package/dist/worker-entry.js +1241 -0
- package/dist/worker.d.mts +3 -0
- package/dist/worker.d.ts +3 -0
- package/dist/worker.js +4 -0
- package/dist/worker.mjs +4 -0
- package/dist/worker.transport-BP8Q28Z2.d.mts +76 -0
- package/dist/worker.transport-BP8Q28Z2.d.mts.map +1 -0
- package/dist/worker.transport-BhMyvqQ2.mjs +167 -0
- package/dist/worker.transport-BhMyvqQ2.mjs.map +1 -0
- package/dist/worker.transport-CfH6z37Z.js +168 -0
- package/dist/worker.transport-CfH6z37Z.js.map +1 -0
- package/dist/worker.transport-mKXgNK0L.d.ts +76 -0
- package/dist/worker.transport-mKXgNK0L.d.ts.map +1 -0
- package/package.json +23 -18
- package/dist/index-CwFww7VC.d.ts.map +0 -1
- package/dist/index-DnyeaoZU.d.mts.map +0 -1
- package/dist/logitron-logger.module-BCq3sF27.d.mts.map +0 -1
- package/dist/logitron-logger.module-BIGTm2V6.mjs.map +0 -1
- package/dist/logitron-logger.module-BTxDpK6u.js.map +0 -1
- package/dist/logitron-logger.module-BmT-ewin.d.ts.map +0 -1
- package/dist/search-Cg_OasF-.d.ts +0 -1
- package/dist/search-DN676Dnz.d.mts +0 -1
- package/dist/search-DOvSI-mb.mjs +0 -1
- package/dist/search-DoZF3RZj.js +0 -0
- package/dist/transport.manager-DETpXuaY.mjs.map +0 -1
- package/dist/transport.manager-ciG4r5uz.js.map +0 -1
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/utils/internal-log.ts
|
|
3
|
+
/**
|
|
4
|
+
* Internal logging helpers for use within the logixia library itself.
|
|
5
|
+
*
|
|
6
|
+
* These functions write directly to stderr/stdout without going through
|
|
7
|
+
* LogixiaLogger — this avoids circular dependencies and ensures internal
|
|
8
|
+
* diagnostics still surface even when the logger is misconfigured.
|
|
9
|
+
*
|
|
10
|
+
* Library code must NEVER call console.log/warn/error directly. Use these
|
|
11
|
+
* helpers instead so that internal output can be silenced in tests by setting
|
|
12
|
+
* the LOGIXIA_SILENT_INTERNAL=1 environment variable.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Read the silence flag on each call rather than caching it at import time, so
|
|
16
|
+
* setting LOGIXIA_SILENT_INTERNAL=1 AFTER the module is first imported (e.g. in
|
|
17
|
+
* a test setup file) still takes effect — the documented test-silencing
|
|
18
|
+
* behavior was previously unreliable because the value was frozen at load.
|
|
19
|
+
*/
|
|
20
|
+
function isSilent() {
|
|
21
|
+
return process.env.LOGIXIA_SILENT_INTERNAL === "1";
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Emit an internal debug/info message to stderr.
|
|
25
|
+
* Use for field-enable/disable notifications that a developer might want to see
|
|
26
|
+
* during development but should not appear in production log streams.
|
|
27
|
+
*/
|
|
28
|
+
function internalLog(message) {
|
|
29
|
+
if (!isSilent()) process.stderr.write(`[logixia] ${message}\n`);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Emit an internal warning to stderr.
|
|
33
|
+
* Use when something is misconfigured but logixia can continue operating.
|
|
34
|
+
*/
|
|
35
|
+
function internalWarn(message) {
|
|
36
|
+
if (!isSilent()) process.stderr.write(`[logixia:warn] ${message}\n`);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Emit an internal error to stderr.
|
|
40
|
+
* Use when a transport write fails or a serious internal error occurs.
|
|
41
|
+
*/
|
|
42
|
+
function internalError(message, error) {
|
|
43
|
+
if (!isSilent()) {
|
|
44
|
+
let errStr = "";
|
|
45
|
+
if (error instanceof Error) errStr = ` — ${error.message}`;
|
|
46
|
+
else if (error != null) errStr = ` — ${String(error)}`;
|
|
47
|
+
process.stderr.write(`[logixia:error] ${message}${errStr}\n`);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
//#endregion
|
|
52
|
+
Object.defineProperty(exports, 'internalError', {
|
|
53
|
+
enumerable: true,
|
|
54
|
+
get: function () {
|
|
55
|
+
return internalError;
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
Object.defineProperty(exports, 'internalLog', {
|
|
59
|
+
enumerable: true,
|
|
60
|
+
get: function () {
|
|
61
|
+
return internalLog;
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
Object.defineProperty(exports, 'internalWarn', {
|
|
65
|
+
enumerable: true,
|
|
66
|
+
get: function () {
|
|
67
|
+
return internalWarn;
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
//# sourceMappingURL=internal-log-BUJYMZbE.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal-log-BUJYMZbE.js","names":[],"sources":["../src/utils/internal-log.ts"],"sourcesContent":["/**\n * Internal logging helpers for use within the logixia library itself.\n *\n * These functions write directly to stderr/stdout without going through\n * LogixiaLogger — this avoids circular dependencies and ensures internal\n * diagnostics still surface even when the logger is misconfigured.\n *\n * Library code must NEVER call console.log/warn/error directly. Use these\n * helpers instead so that internal output can be silenced in tests by setting\n * the LOGIXIA_SILENT_INTERNAL=1 environment variable.\n */\n\n/**\n * Read the silence flag on each call rather than caching it at import time, so\n * setting LOGIXIA_SILENT_INTERNAL=1 AFTER the module is first imported (e.g. in\n * a test setup file) still takes effect — the documented test-silencing\n * behavior was previously unreliable because the value was frozen at load.\n */\nfunction isSilent(): boolean {\n return process.env.LOGIXIA_SILENT_INTERNAL === '1';\n}\n\n/**\n * Emit an internal debug/info message to stderr.\n * Use for field-enable/disable notifications that a developer might want to see\n * during development but should not appear in production log streams.\n */\nexport function internalLog(message: string): void {\n if (!isSilent()) {\n process.stderr.write(`[logixia] ${message}\\n`);\n }\n}\n\n/**\n * Emit an internal warning to stderr.\n * Use when something is misconfigured but logixia can continue operating.\n */\nexport function internalWarn(message: string): void {\n if (!isSilent()) {\n process.stderr.write(`[logixia:warn] ${message}\\n`);\n }\n}\n\n/**\n * Emit an internal error to stderr.\n * Use when a transport write fails or a serious internal error occurs.\n */\nexport function internalError(message: string, error?: unknown): void {\n if (!isSilent()) {\n let errStr = '';\n if (error instanceof Error) {\n errStr = ` — ${error.message}`;\n } else if (error != null) {\n errStr = ` — ${String(error)}`;\n }\n process.stderr.write(`[logixia:error] ${message}${errStr}\\n`);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAkBA,SAAS,WAAoB;AAC3B,QAAO,QAAQ,IAAI,4BAA4B;;;;;;;AAQjD,SAAgB,YAAY,SAAuB;AACjD,KAAI,CAAC,UAAU,CACb,SAAQ,OAAO,MAAM,aAAa,QAAQ,IAAI;;;;;;AAQlD,SAAgB,aAAa,SAAuB;AAClD,KAAI,CAAC,UAAU,CACb,SAAQ,OAAO,MAAM,kBAAkB,QAAQ,IAAI;;;;;;AAQvD,SAAgB,cAAc,SAAiB,OAAuB;AACpE,KAAI,CAAC,UAAU,EAAE;EACf,IAAI,SAAS;AACb,MAAI,iBAAiB,MACnB,UAAS,MAAM,MAAM;WACZ,SAAS,KAClB,UAAS,MAAM,OAAO,MAAM;AAE9B,UAAQ,OAAO,MAAM,mBAAmB,UAAU,OAAO,IAAI"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
//#region src/utils/internal-log.ts
|
|
2
|
+
/**
|
|
3
|
+
* Internal logging helpers for use within the logixia library itself.
|
|
4
|
+
*
|
|
5
|
+
* These functions write directly to stderr/stdout without going through
|
|
6
|
+
* LogixiaLogger — this avoids circular dependencies and ensures internal
|
|
7
|
+
* diagnostics still surface even when the logger is misconfigured.
|
|
8
|
+
*
|
|
9
|
+
* Library code must NEVER call console.log/warn/error directly. Use these
|
|
10
|
+
* helpers instead so that internal output can be silenced in tests by setting
|
|
11
|
+
* the LOGIXIA_SILENT_INTERNAL=1 environment variable.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Read the silence flag on each call rather than caching it at import time, so
|
|
15
|
+
* setting LOGIXIA_SILENT_INTERNAL=1 AFTER the module is first imported (e.g. in
|
|
16
|
+
* a test setup file) still takes effect — the documented test-silencing
|
|
17
|
+
* behavior was previously unreliable because the value was frozen at load.
|
|
18
|
+
*/
|
|
19
|
+
function isSilent() {
|
|
20
|
+
return process.env.LOGIXIA_SILENT_INTERNAL === "1";
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Emit an internal debug/info message to stderr.
|
|
24
|
+
* Use for field-enable/disable notifications that a developer might want to see
|
|
25
|
+
* during development but should not appear in production log streams.
|
|
26
|
+
*/
|
|
27
|
+
function internalLog(message) {
|
|
28
|
+
if (!isSilent()) process.stderr.write(`[logixia] ${message}\n`);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Emit an internal warning to stderr.
|
|
32
|
+
* Use when something is misconfigured but logixia can continue operating.
|
|
33
|
+
*/
|
|
34
|
+
function internalWarn(message) {
|
|
35
|
+
if (!isSilent()) process.stderr.write(`[logixia:warn] ${message}\n`);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Emit an internal error to stderr.
|
|
39
|
+
* Use when a transport write fails or a serious internal error occurs.
|
|
40
|
+
*/
|
|
41
|
+
function internalError(message, error) {
|
|
42
|
+
if (!isSilent()) {
|
|
43
|
+
let errStr = "";
|
|
44
|
+
if (error instanceof Error) errStr = ` — ${error.message}`;
|
|
45
|
+
else if (error != null) errStr = ` — ${String(error)}`;
|
|
46
|
+
process.stderr.write(`[logixia:error] ${message}${errStr}\n`);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
//#endregion
|
|
51
|
+
export { internalLog as n, internalWarn as r, internalError as t };
|
|
52
|
+
//# sourceMappingURL=internal-log-Cm8SOWSV.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal-log-Cm8SOWSV.mjs","names":[],"sources":["../src/utils/internal-log.ts"],"sourcesContent":["/**\n * Internal logging helpers for use within the logixia library itself.\n *\n * These functions write directly to stderr/stdout without going through\n * LogixiaLogger — this avoids circular dependencies and ensures internal\n * diagnostics still surface even when the logger is misconfigured.\n *\n * Library code must NEVER call console.log/warn/error directly. Use these\n * helpers instead so that internal output can be silenced in tests by setting\n * the LOGIXIA_SILENT_INTERNAL=1 environment variable.\n */\n\n/**\n * Read the silence flag on each call rather than caching it at import time, so\n * setting LOGIXIA_SILENT_INTERNAL=1 AFTER the module is first imported (e.g. in\n * a test setup file) still takes effect — the documented test-silencing\n * behavior was previously unreliable because the value was frozen at load.\n */\nfunction isSilent(): boolean {\n return process.env.LOGIXIA_SILENT_INTERNAL === '1';\n}\n\n/**\n * Emit an internal debug/info message to stderr.\n * Use for field-enable/disable notifications that a developer might want to see\n * during development but should not appear in production log streams.\n */\nexport function internalLog(message: string): void {\n if (!isSilent()) {\n process.stderr.write(`[logixia] ${message}\\n`);\n }\n}\n\n/**\n * Emit an internal warning to stderr.\n * Use when something is misconfigured but logixia can continue operating.\n */\nexport function internalWarn(message: string): void {\n if (!isSilent()) {\n process.stderr.write(`[logixia:warn] ${message}\\n`);\n }\n}\n\n/**\n * Emit an internal error to stderr.\n * Use when a transport write fails or a serious internal error occurs.\n */\nexport function internalError(message: string, error?: unknown): void {\n if (!isSilent()) {\n let errStr = '';\n if (error instanceof Error) {\n errStr = ` — ${error.message}`;\n } else if (error != null) {\n errStr = ` — ${String(error)}`;\n }\n process.stderr.write(`[logixia:error] ${message}${errStr}\\n`);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAkBA,SAAS,WAAoB;AAC3B,QAAO,QAAQ,IAAI,4BAA4B;;;;;;;AAQjD,SAAgB,YAAY,SAAuB;AACjD,KAAI,CAAC,UAAU,CACb,SAAQ,OAAO,MAAM,aAAa,QAAQ,IAAI;;;;;;AAQlD,SAAgB,aAAa,SAAuB;AAClD,KAAI,CAAC,UAAU,CACb,SAAQ,OAAO,MAAM,kBAAkB,QAAQ,IAAI;;;;;;AAQvD,SAAgB,cAAc,SAAiB,OAAuB;AACpE,KAAI,CAAC,UAAU,EAAE;EACf,IAAI,SAAS;AACb,MAAI,iBAAiB,MACnB,UAAS,MAAM,MAAM;WACZ,SAAS,KAClB,UAAS,MAAM,OAAO,MAAM;AAE9B,UAAQ,OAAO,MAAM,mBAAmB,UAAU,OAAO,IAAI"}
|