@zintrust/core 1.6.3 → 1.6.4
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/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @zintrust/core v1.6.
|
|
2
|
+
* @zintrust/core v1.6.4
|
|
3
3
|
*
|
|
4
4
|
* ZinTrust Framework - Production-Grade TypeScript Backend
|
|
5
5
|
* Built for performance, type safety, and exceptional developer experience
|
|
6
6
|
*
|
|
7
7
|
* Build Information:
|
|
8
|
-
* Built: 2026-04-
|
|
8
|
+
* Built: 2026-04-30T18:16:14.572Z
|
|
9
9
|
* Node: >=20.0.0
|
|
10
10
|
* License: MIT
|
|
11
11
|
*
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* Available at runtime for debugging and health checks
|
|
22
22
|
*/
|
|
23
23
|
export const ZINTRUST_VERSION = '0.1.41';
|
|
24
|
-
export const ZINTRUST_BUILD_DATE = '2026-04-
|
|
24
|
+
export const ZINTRUST_BUILD_DATE = '2026-04-30T18:16:14.537Z'; // Replaced during build
|
|
25
25
|
export { Application } from './boot/Application.js';
|
|
26
26
|
export { AwsSigV4 } from './common/index.js';
|
|
27
27
|
export { SignedRequest } from './security/SignedRequest.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trace-runtime.d.ts","sourceRoot":"","sources":["../../../../src/runtime/plugins/trace-runtime.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"trace-runtime.d.ts","sourceRoot":"","sources":["../../../../src/runtime/plugins/trace-runtime.ts"],"names":[],"mappings":"AACA,KAAK,cAAc,GAAG;IACpB,KAAK,CAAC,SAAS,CAAC,EAAE,OAAO,GAAG;QAAE,OAAO,CAAC,EAAE,OAAO,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACxE,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,cAAc,CAAC,EAAE,EAAE,OAAO,GAAG,OAAO,CAAC;CACtC,CAAC;AA+EF,eAAO,MAAM,WAAW,QAAO,OAA0C,CAAC;AAE1E,eAAO,MAAM,WAAW,EAAE,cAIxB,CAAC;AAEH,eAAO,MAAM,YAAY,EAAE,eAIzB,CAAC;AAEH,eAAO,MAAM,sBAAsB,GACjC,QAAQ,OAAO,EACf,UAAU;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAA;CAAE,KAClE,IAEF,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAC9B,QAAQ,OAAO,EACf,SAAS,OAAO,EAChB,UAAU;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAA;CAAE,KAClE,IAEF,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAChC,OAAO,OAAO,EACd,UAAU;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,KAChF,IASF,CAAC;AAWF,eAAO,MAAM,2BAA2B,QAAa,OAAO,CAAC,IAAI,CAoBhE,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { isNullish } from '../../helper/index.js';
|
|
1
2
|
const fallbackTraceConfig = Object.freeze({
|
|
2
3
|
merge: () => ({ enabled: false }),
|
|
3
4
|
});
|
|
@@ -55,14 +56,23 @@ export const captureTraceException = (error, context) => {
|
|
|
55
56
|
(module?.captureTraceException ?? fallbackCaptureTraceException)(error, context);
|
|
56
57
|
});
|
|
57
58
|
};
|
|
58
|
-
const
|
|
59
|
+
const tryImport = async (specifier) => {
|
|
60
|
+
try {
|
|
61
|
+
const load = (await import(specifier));
|
|
62
|
+
return load;
|
|
63
|
+
}
|
|
64
|
+
catch {
|
|
65
|
+
return undefined;
|
|
66
|
+
}
|
|
67
|
+
};
|
|
59
68
|
export const ensureSystemTraceRegistered = async () => {
|
|
60
69
|
const module = await loadSystemTraceModule();
|
|
61
70
|
if (module === undefined)
|
|
62
71
|
return;
|
|
63
|
-
let registerModule = await
|
|
64
|
-
|
|
65
|
-
|
|
72
|
+
let registerModule = (await tryImport('@zintrust/trace/register'));
|
|
73
|
+
if (isNullish(registerModule)) {
|
|
74
|
+
registerModule = (await import('@zintrust/' + 'trace/register').catch(() => undefined));
|
|
75
|
+
}
|
|
66
76
|
const registerReady = registerModule?.registerTraceReady ?? registerModule?.default?.registerTraceReady;
|
|
67
77
|
if (typeof registerReady !== 'function')
|
|
68
78
|
return;
|
|
@@ -10,7 +10,7 @@ const tryImport = async (specifier) => {
|
|
|
10
10
|
const loadTracePlugin = async () => {
|
|
11
11
|
const importedPackagePlugin = await tryImport('@zintrust/trace/plugin');
|
|
12
12
|
if (!importedPackagePlugin) {
|
|
13
|
-
await import('
|
|
13
|
+
await import('@zintrust/' + 'trace/plugin').catch(() => undefined);
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
export const ready = loadTracePlugin();
|