@zintrust/core 2.1.5 → 2.1.7
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zintrust/core",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.7",
|
|
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) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workers.d.ts","sourceRoot":"","sources":["../../../src/config/workers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAGL,KAAK,qBAAqB,EAC3B,MAAM,8BAA8B,CAAC;AAItC,OAAO,KAAK,EACV,WAAW,EAIX,mBAAmB,EACpB,MAAM,cAAc,CAAC;AAItB,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"workers.d.ts","sourceRoot":"","sources":["../../../src/config/workers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAGL,KAAK,qBAAqB,EAC3B,MAAM,8BAA8B,CAAC;AAItC,OAAO,KAAK,EACV,WAAW,EAIX,mBAAmB,EACpB,MAAM,cAAc,CAAC;AAItB,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AAqXnC,eAAO,MAAM,qBAAqB,GAChC,QAAQ,WAAW,EACnB,mBAAc,EACd,UAAU,qBAAqB,KAC9B,OA6CF,CAAC;AAEF,eAAO,MAAM,wBAAwB,QAAa,OAAO,CAAC,IAAI,CAmB7D,CAAC;AAgFF,QAAA,MAAM,mBAAmB,QAAO,mBA2D/B,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAkBnE,eAAO,MAAM,aAAa,EAAE,aAY1B,CAAC"}
|
package/src/config/workers.js
CHANGED
|
@@ -243,8 +243,13 @@ const setupRedisErrorHandler = (client) => {
|
|
|
243
243
|
if (err?.message?.includes('NOAUTH')) {
|
|
244
244
|
Logger.error('[workers][redis] NOAUTH: Redis requires authentication. Provide `password` in the workers Redis config.');
|
|
245
245
|
}
|
|
246
|
-
|
|
247
|
-
|
|
246
|
+
else if (err?.message?.includes('WRONGPASS')) {
|
|
247
|
+
Logger.error('[workers][redis] WRONGPASS: Redis password is incorrect. Provide correct `password` in the workers Redis config.');
|
|
248
|
+
}
|
|
249
|
+
else {
|
|
250
|
+
// eslint-disable-next-line no-console
|
|
251
|
+
console.error('[workers][redis] Redis error:', err.message || err);
|
|
252
|
+
}
|
|
248
253
|
}
|
|
249
254
|
catch (error_) {
|
|
250
255
|
Logger.error('Redis error handler failed', error_);
|
package/src/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @zintrust/core v2.1.
|
|
2
|
+
* @zintrust/core v2.1.7
|
|
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:49:59.719Z
|
|
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:49:59.685Z'; // 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';
|