@zintrust/core 2.1.4 → 2.1.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/package.json +2 -2
- package/src/boot/Server.d.ts.map +1 -1
- package/src/boot/Server.js +1 -1
- package/src/boot/bootstrap.d.ts.map +1 -1
- package/src/boot/bootstrap.js +4 -0
- package/src/errors-index.d.ts +1 -1
- package/src/errors-index.d.ts.map +1 -1
- package/src/index.js +3 -3
- package/src/security/JwtVerifier.js +1 -1
- package/src/security-index.d.ts +1 -0
- package/src/security-index.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zintrust/core",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.6",
|
|
4
4
|
"description": "Production-grade TypeScript backend framework for JavaScript",
|
|
5
5
|
"homepage": "https://zintrust.com",
|
|
6
6
|
"repository": {
|
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
"dependencies": {
|
|
208
208
|
"@cloudflare/containers": "^0.3.5",
|
|
209
209
|
"bcryptjs": "^3.0.3",
|
|
210
|
-
"bullmq": "^5.77.
|
|
210
|
+
"bullmq": "^5.77.6",
|
|
211
211
|
"chalk": "^5.6.2",
|
|
212
212
|
"commander": "^14.0.3",
|
|
213
213
|
"inquirer": "^14.0.0",
|
package/src/boot/Server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Server.d.ts","sourceRoot":"","sources":["../../../src/boot/Server.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAQH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"Server.d.ts","sourceRoot":"","sources":["../../../src/boot/Server.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAQH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAM5C,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAE9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAGnD,MAAM,WAAW,OAAO;IACtB,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACxB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACvB,aAAa,IAAI,IAAI,CAAC,MAAM,CAAC;CAC9B;AAiHD;;;GAGG;AACH,eAAO,MAAM,MAAM;IACjB;;OAEG;gBACS,YAAY,SAAS,MAAM,SAAS,MAAM,WAAU,OAAO,GAAG,IAAI,GAAU,OAAO;EA+D/F,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
package/src/boot/Server.js
CHANGED
|
@@ -11,8 +11,8 @@ import { ErrorFactory } from '../exceptions/ZintrustError.js';
|
|
|
11
11
|
import { Kernel } from '../http/Kernel.js';
|
|
12
12
|
import { Request } from '../http/Request.js';
|
|
13
13
|
import { Response } from '../http/Response.js';
|
|
14
|
-
import { SocketRuntimeRegistry } from '../sockets/SocketRuntimeRegistry.js';
|
|
15
14
|
import * as http from '../node-singletons/http.js';
|
|
15
|
+
import { SocketRuntimeRegistry } from '../sockets/SocketRuntimeRegistry.js';
|
|
16
16
|
/**
|
|
17
17
|
* Set security headers on response
|
|
18
18
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap.d.ts","sourceRoot":"","sources":["../../../src/boot/bootstrap.ts"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"bootstrap.d.ts","sourceRoot":"","sources":["../../../src/boot/bootstrap.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAobH,eAAO,MAAM,cAAc,eAAmB,CAAC"}
|
package/src/boot/bootstrap.js
CHANGED
|
@@ -94,6 +94,10 @@ const withTimeout = async (promise, timeoutMs, label) => {
|
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
96
|
const shutdownWorkersIfNeeded = async (signal, remainingMs) => {
|
|
97
|
+
const shutdownWorkers = Env.getBool('SHUTDOWN_WORKER', true);
|
|
98
|
+
if (!shutdownWorkers) {
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
97
101
|
if (appConfig.worker !== true ||
|
|
98
102
|
(appConfig.detectRuntime() !== 'nodejs' && appConfig.detectRuntime() !== 'lambda') ||
|
|
99
103
|
appConfig.dockerWorker === true) {
|
package/src/errors-index.d.ts
CHANGED
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* Provides error factory and error-related utilities
|
|
4
4
|
*/
|
|
5
5
|
export { ErrorFactory } from './exceptions/ZintrustError';
|
|
6
|
-
export type { ZintrustError, ZintrustErrorInit } from './exceptions/ZintrustError';
|
|
6
|
+
export type { SanitizerError, ZintrustError, ZintrustErrorInit } from './exceptions/ZintrustError';
|
|
7
7
|
//# sourceMappingURL=errors-index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors-index.d.ts","sourceRoot":"","sources":["../../src/errors-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,YAAY,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
1
|
+
{"version":3,"file":"errors-index.d.ts","sourceRoot":"","sources":["../../src/errors-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC"}
|
package/src/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @zintrust/core v2.1.
|
|
2
|
+
* @zintrust/core v2.1.6
|
|
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-05-
|
|
8
|
+
* Built: 2026-05-27T10:20:50.251Z
|
|
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-05-
|
|
24
|
+
export const ZINTRUST_BUILD_DATE = '2026-05-27T10:20:50.216Z'; // 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';
|
package/src/security-index.d.ts
CHANGED
|
@@ -22,5 +22,6 @@ export { XssProtection } from './security/XssProtection';
|
|
|
22
22
|
export { SecurePayload, type SecurePayloadCoercionShape, type SecurePayloadCoercionType, type SecurePayloadDecodeOptions, type SecurePayloadDecryptor, type SecurePayloadPipeline, type SecurePayloadPipelineIssue, type SecurePayloadPipelineStage, } from './security/SecurePayload';
|
|
23
23
|
export { RemoteSignedJson } from './common/RemoteSignedJson';
|
|
24
24
|
export type { RemoteSignedJsonSettings } from './common/RemoteSignedJson';
|
|
25
|
+
export type { SanitizerError } from './exceptions/ZintrustError';
|
|
25
26
|
export { SignedRequest } from './security/SignedRequest';
|
|
26
27
|
//# sourceMappingURL=security-index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"security-index.d.ts","sourceRoot":"","sources":["../../src/security-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAG1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,YAAY,EACV,aAAa,EACb,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,4BAA4B,CAAC;AAGpC,OAAO,EAAE,iBAAi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