@zintrust/core 2.2.7 → 2.2.9
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.2.
|
|
3
|
+
"version": "2.2.9",
|
|
4
4
|
"description": "Production-grade TypeScript backend framework for JavaScript",
|
|
5
5
|
"homepage": "https://zintrust.com",
|
|
6
6
|
"repository": {
|
|
@@ -209,7 +209,7 @@
|
|
|
209
209
|
"bcryptjs": "^3.0.3",
|
|
210
210
|
"bullmq": "^5.77.6",
|
|
211
211
|
"chalk": "^5.6.2",
|
|
212
|
-
"commander": "^
|
|
212
|
+
"commander": "^15.0.0",
|
|
213
213
|
"inquirer": "^14.0.0",
|
|
214
214
|
"ioredis": "^5.11.0",
|
|
215
215
|
"jsonwebtoken": "^9.0.3",
|
|
@@ -219,8 +219,44 @@
|
|
|
219
219
|
"tsx": "^4.22.3"
|
|
220
220
|
},
|
|
221
221
|
"overrides": {
|
|
222
|
+
"ajv": "^8.18.0",
|
|
223
|
+
"@eslint/plugin-kit": "^0.7.1",
|
|
224
|
+
"follow-redirects": "^1.16.0",
|
|
225
|
+
"@tootallnate/once": "3.0.1",
|
|
226
|
+
"node-forge": "^1.4.0",
|
|
227
|
+
"fast-uri": "3.1.2",
|
|
228
|
+
"fast-xml-parser": "5.8.0",
|
|
229
|
+
"protobufjs": "7.5.9",
|
|
230
|
+
"brace-expansion": "^5.0.5",
|
|
231
|
+
"picomatch": "^4.0.4",
|
|
232
|
+
"cross-spawn": "^7.0.5",
|
|
233
|
+
"glob": "^11.1.0",
|
|
234
|
+
"minimatch": "^10.2.2",
|
|
235
|
+
"rollup": "^4.59.0",
|
|
236
|
+
"vite": "^8.0.5",
|
|
237
|
+
"flatted": "^3.4.2",
|
|
238
|
+
"uuid": "14.0.0",
|
|
222
239
|
"ioredis": "^5.11.0",
|
|
223
|
-
"axios": "^1.16.1"
|
|
240
|
+
"axios": "^1.16.1",
|
|
241
|
+
"@actions/github": {
|
|
242
|
+
"undici": "^6.24.0"
|
|
243
|
+
},
|
|
244
|
+
"@actions/http-client": {
|
|
245
|
+
"undici": "^6.24.0"
|
|
246
|
+
},
|
|
247
|
+
"miniflare": {
|
|
248
|
+
"undici": "^7.24.4"
|
|
249
|
+
},
|
|
250
|
+
"http-proxy-agent": "7.0.2",
|
|
251
|
+
"retry-request": "8.0.2",
|
|
252
|
+
"gaxios": "7.1.4",
|
|
253
|
+
"teeny-request": "10.1.2",
|
|
254
|
+
"braces": "^3.0.3",
|
|
255
|
+
"lodash": "^4.17.21",
|
|
256
|
+
"semver": "^7.6.3",
|
|
257
|
+
"tmp": "^0.2.4",
|
|
258
|
+
"ws": "^8.20.0",
|
|
259
|
+
"micromatch": "^4.0.8"
|
|
224
260
|
},
|
|
225
261
|
"bin": {
|
|
226
262
|
"zintrust": "bin/zintrust.js",
|
|
@@ -16,7 +16,7 @@ type CleanOnceOptions = {
|
|
|
16
16
|
*/
|
|
17
17
|
export declare const cleanOnce: (options?: CleanOnceOptions) => string[];
|
|
18
18
|
export declare const FileLogWriter: Readonly<{
|
|
19
|
-
write(line: string):
|
|
19
|
+
write(line: string): boolean;
|
|
20
20
|
flush(): void;
|
|
21
21
|
}>;
|
|
22
22
|
export default FileLogWriter;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileLogWriter.d.ts","sourceRoot":"","sources":["../../../src/config/FileLogWriter.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAgIH,KAAK,gBAAgB,GAAG;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAiFF;;;GAGG;AACH,eAAO,MAAM,SAAS,GAAI,UAAU,gBAAgB,KAAG,MAAM,EAsB5D,CAAC;AA2EF,eAAO,MAAM,aAAa;gBACZ,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"FileLogWriter.d.ts","sourceRoot":"","sources":["../../../src/config/FileLogWriter.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAgIH,KAAK,gBAAgB,GAAG;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAiFF;;;GAGG;AACH,eAAO,MAAM,SAAS,GAAI,UAAU,gBAAgB,KAAG,MAAM,EAsB5D,CAAC;AA2EF,eAAO,MAAM,aAAa;gBACZ,MAAM,GAAG,OAAO;aAuCnB,IAAI;EAQb,CAAC;AAEH,eAAe,aAAa,CAAC"}
|
|
@@ -263,10 +263,10 @@ const flushPendingWrites = (logFile) => {
|
|
|
263
263
|
export const FileLogWriter = Object.freeze({
|
|
264
264
|
write(line) {
|
|
265
265
|
if (isWorkersRuntime())
|
|
266
|
-
return;
|
|
266
|
+
return false;
|
|
267
267
|
const cwd = getCwdSafe();
|
|
268
268
|
if (cwd === '')
|
|
269
|
-
return;
|
|
269
|
+
return false;
|
|
270
270
|
const logsDir = path.join(cwd, 'logs');
|
|
271
271
|
ensureDirSafeBestEffort(logsDir);
|
|
272
272
|
const dateStr = getDateStr(new Date());
|
|
@@ -277,7 +277,7 @@ export const FileLogWriter = Object.freeze({
|
|
|
277
277
|
if (!canUseWriteStreams()) {
|
|
278
278
|
appendFileSafe(logFile, `${line}\n`);
|
|
279
279
|
cleanupOldLogs(logsDir, Env.LOG_ROTATION_DAYS);
|
|
280
|
-
return;
|
|
280
|
+
return true;
|
|
281
281
|
}
|
|
282
282
|
try {
|
|
283
283
|
// Buffer writes for async processing
|
|
@@ -289,9 +289,10 @@ export const FileLogWriter = Object.freeze({
|
|
|
289
289
|
}
|
|
290
290
|
catch {
|
|
291
291
|
// best-effort
|
|
292
|
-
return;
|
|
292
|
+
return false;
|
|
293
293
|
}
|
|
294
294
|
cleanupOldLogs(logsDir, Env.LOG_ROTATION_DAYS);
|
|
295
|
+
return true;
|
|
295
296
|
},
|
|
296
297
|
// Flush all streams (for graceful shutdown)
|
|
297
298
|
flush() {
|
package/src/config/logger.js
CHANGED
|
@@ -463,14 +463,14 @@ const getFileWriter = () => {
|
|
|
463
463
|
return;
|
|
464
464
|
if (fileWriterPromise !== undefined)
|
|
465
465
|
return;
|
|
466
|
-
fileWriterPromise = import('./FileLogWriter')
|
|
466
|
+
fileWriterPromise = import('./FileLogWriter.js')
|
|
467
467
|
.then((mod) => {
|
|
468
468
|
fileWriter = mod.FileLogWriter;
|
|
469
469
|
return mod;
|
|
470
470
|
})
|
|
471
471
|
.catch(() => {
|
|
472
472
|
fileWriterPromise = undefined;
|
|
473
|
-
return { FileLogWriter: { write: (_line) =>
|
|
473
|
+
return { FileLogWriter: { write: (_line) => false } };
|
|
474
474
|
});
|
|
475
475
|
};
|
|
476
476
|
const shouldLogToFile = () => {
|
|
@@ -570,7 +570,7 @@ const emitCloudLogs = (event) => {
|
|
|
570
570
|
void (async () => {
|
|
571
571
|
try {
|
|
572
572
|
if (event.level === 'error' || event.level === 'fatal') {
|
|
573
|
-
const mod = await import('./logging/KvLogger');
|
|
573
|
+
const mod = await import('./logging/KvLogger.js');
|
|
574
574
|
void mod.KvLogger.enqueue(event);
|
|
575
575
|
}
|
|
576
576
|
}
|
|
@@ -579,7 +579,7 @@ const emitCloudLogs = (event) => {
|
|
|
579
579
|
}
|
|
580
580
|
try {
|
|
581
581
|
if (event.level === 'warn' || event.level === 'error' || event.level === 'fatal') {
|
|
582
|
-
const mod = await import('./logging/SlackLogger');
|
|
582
|
+
const mod = await import('./logging/SlackLogger.js');
|
|
583
583
|
void mod.SlackLogger.enqueue(event);
|
|
584
584
|
}
|
|
585
585
|
}
|
|
@@ -587,7 +587,7 @@ const emitCloudLogs = (event) => {
|
|
|
587
587
|
// best-effort
|
|
588
588
|
}
|
|
589
589
|
try {
|
|
590
|
-
const mod = await import('./logging/HttpLogger');
|
|
590
|
+
const mod = await import('./logging/HttpLogger.js');
|
|
591
591
|
void mod.HttpLogger.enqueue(event);
|
|
592
592
|
}
|
|
593
593
|
catch {
|
|
@@ -789,7 +789,7 @@ export const cleanLogsOnce = async () => {
|
|
|
789
789
|
if (!shouldLogToFile())
|
|
790
790
|
return [];
|
|
791
791
|
try {
|
|
792
|
-
const mod = await import('./FileLogWriter');
|
|
792
|
+
const mod = await import('./FileLogWriter.js');
|
|
793
793
|
const deleted = mod.cleanOnce();
|
|
794
794
|
logInfo('Log cleanup executed', { deletedCount: deleted.length });
|
|
795
795
|
return deleted;
|
package/src/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @zintrust/core v2.2.
|
|
2
|
+
* @zintrust/core v2.2.9
|
|
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-29T15:08:40.454Z
|
|
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-29T15:08:40.412Z'; // 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';
|