@putkoff/abstract-logger 0.0.73 → 0.0.74
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/dist/cjs/index.js +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/logger/logit/logger.d.ts +1 -1
- package/dist/cjs/types/types/types.d.ts +1 -0
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/logger/logit/logger.d.ts +1 -1
- package/dist/esm/types/types/types.d.ts +1 -0
- package/dist/types/logger/logit/logger.d.ts +1 -1
- package/dist/types/types/types.d.ts +1 -0
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -15014,7 +15014,7 @@ function getCheapCallerHint(opts) {
|
|
|
15014
15014
|
file: opts.file_location ?? null,
|
|
15015
15015
|
};
|
|
15016
15016
|
}
|
|
15017
|
-
function logit(messageOrOptions, logType = null, details = null, function_name = null, file_location = null, consumerLogger = null) {
|
|
15017
|
+
function logit(messageOrOptions, logType = null, details = null, function_name = null, file_location = null, consumerLogger = null, skip = null) {
|
|
15018
15018
|
/* -------------------------------------------------- */
|
|
15019
15019
|
/* Normalize inputs */
|
|
15020
15020
|
/* -------------------------------------------------- */
|
|
@@ -15027,6 +15027,7 @@ function logit(messageOrOptions, logType = null, details = null, function_name =
|
|
|
15027
15027
|
function_name,
|
|
15028
15028
|
file_location,
|
|
15029
15029
|
consumerLogger,
|
|
15030
|
+
skip
|
|
15030
15031
|
};
|
|
15031
15032
|
let { message, logType: resolvedLogType, details: resolvedDetails, function_name: resolvedFunctionName, file_location: resolvedFileLocation, consumerLogger: resolvedLoggerInput, } = opts;
|
|
15032
15033
|
/* -------------------------------------------------- */
|
|
@@ -15040,8 +15041,7 @@ function logit(messageOrOptions, logType = null, details = null, function_name =
|
|
|
15040
15041
|
return "";
|
|
15041
15042
|
}
|
|
15042
15043
|
// 🔹 Phase 2: expensive caller inspection (ONLY NOW)
|
|
15043
|
-
const caller = getCallerInfo();
|
|
15044
|
-
// 🔹 Phase 3: finalize names
|
|
15044
|
+
const caller = getCallerInfo(opts.skip ?? 0);
|
|
15045
15045
|
resolvedFunctionName = resolveValue(resolvedFunctionName, caller.functionName);
|
|
15046
15046
|
resolvedFileLocation = resolveValue(resolvedFileLocation, caller.file);
|
|
15047
15047
|
/* -------------------------------------------------- */
|