@xeno-js/core 4.1.1 → 4.1.2
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/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -958,7 +958,7 @@ var LoggerUtils = Object.freeze({
|
|
|
958
958
|
* @returns The converted LoggerContext object.
|
|
959
959
|
*/
|
|
960
960
|
toSafeContext(ctx) {
|
|
961
|
-
|
|
961
|
+
const context = {
|
|
962
962
|
identity: {
|
|
963
963
|
userId: ctx?.identity?.userId,
|
|
964
964
|
tenantId: ctx?.identity?.tenantId
|
|
@@ -977,6 +977,7 @@ var LoggerUtils = Object.freeze({
|
|
|
977
977
|
},
|
|
978
978
|
messaging: ctx?.messaging
|
|
979
979
|
};
|
|
980
|
+
return import_shared32.StringHelper.safeStringify(context);
|
|
980
981
|
}
|
|
981
982
|
});
|
|
982
983
|
|
|
@@ -2340,6 +2341,7 @@ var CreateServicesProxy = class {
|
|
|
2340
2341
|
// src/infrastructure/modules/context.module.ts
|
|
2341
2342
|
var ContextModule = class {
|
|
2342
2343
|
async configure(container, opts) {
|
|
2344
|
+
if (container.isRegistered(import_shared63.TOKENS.REQUEST_CONTEXT)) return;
|
|
2343
2345
|
const requestContext = await this._getRequestContext(container, opts);
|
|
2344
2346
|
container.addSingleton(import_shared63.TOKENS.REQUEST_CONTEXT, () => requestContext);
|
|
2345
2347
|
container.addSingleton(import_shared63.TOKENS.CONTEXT_ACCESSOR, () => requestContext);
|