@zintrust/core 3.1.2 → 3.1.3
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": "3.1.
|
|
3
|
+
"version": "3.1.3",
|
|
4
4
|
"description": "Production-grade TypeScript backend framework for JavaScript",
|
|
5
5
|
"homepage": "https://zintrust.com",
|
|
6
6
|
"repository": {
|
|
@@ -216,16 +216,16 @@
|
|
|
216
216
|
"@cloudflare/containers": "^0.3.7",
|
|
217
217
|
"@zedgi/zedgi-client": "^1.1.1",
|
|
218
218
|
"bcryptjs": "^3.0.3",
|
|
219
|
-
"bullmq": "^6.3.
|
|
220
|
-
"chalk": "^6.0.
|
|
219
|
+
"bullmq": "^6.3.17",
|
|
220
|
+
"chalk": "^6.0.1",
|
|
221
221
|
"commander": "^15.0.0",
|
|
222
|
-
"inquirer": "^14.2.
|
|
222
|
+
"inquirer": "^14.2.4",
|
|
223
223
|
"ioredis": "^6.0.0",
|
|
224
224
|
"jsonwebtoken": "^9.0.3",
|
|
225
|
-
"mysql2": "^3.24.
|
|
226
|
-
"pg": "^8.23.
|
|
227
|
-
"redis": "^6.
|
|
228
|
-
"tsx": "^4.23.
|
|
225
|
+
"mysql2": "^3.24.6",
|
|
226
|
+
"pg": "^8.23.1",
|
|
227
|
+
"redis": "^6.3.0",
|
|
228
|
+
"tsx": "^4.23.15"
|
|
229
229
|
},
|
|
230
230
|
"overrides": {
|
|
231
231
|
"ajv": "^8.18.0",
|
|
@@ -233,7 +233,7 @@
|
|
|
233
233
|
"follow-redirects": "^1.16.0",
|
|
234
234
|
"@tootallnate/once": "3.0.1",
|
|
235
235
|
"node-forge": "^1.4.0",
|
|
236
|
-
"fast-uri": "3.1.
|
|
236
|
+
"fast-uri": "^3.1.8",
|
|
237
237
|
"nanoid": "^3.3.18",
|
|
238
238
|
"fast-xml-parser": "5.8.0",
|
|
239
239
|
"@babel/core": "^7.29.7",
|
|
@@ -247,21 +247,24 @@
|
|
|
247
247
|
"flatted": "^3.4.2",
|
|
248
248
|
"uuid": "14.0.0",
|
|
249
249
|
"ioredis": "^6.0.0",
|
|
250
|
-
"axios": "^1.
|
|
250
|
+
"axios": "^1.20.0",
|
|
251
|
+
"@grpc/grpc-js": "^1.14.5",
|
|
252
|
+
"source-map-js": "^1.2.2",
|
|
253
|
+
"tedious": "^20.3.8",
|
|
251
254
|
"form-data": "^4.0.6",
|
|
252
255
|
"js-yaml": "^4.2.0",
|
|
253
256
|
"tmp": "^0.2.7",
|
|
254
257
|
"sonarqube-scanner": {
|
|
255
|
-
"axios": "^1.
|
|
258
|
+
"axios": "^1.20.0"
|
|
256
259
|
},
|
|
257
260
|
"@actions/github": {
|
|
258
|
-
"undici": "^6.28.
|
|
261
|
+
"undici": "^6.28.1"
|
|
259
262
|
},
|
|
260
263
|
"@actions/http-client": {
|
|
261
|
-
"undici": "^6.28.
|
|
264
|
+
"undici": "^6.28.1"
|
|
262
265
|
},
|
|
263
266
|
"miniflare": {
|
|
264
|
-
"undici": "^7.29.
|
|
267
|
+
"undici": "^7.29.1"
|
|
265
268
|
},
|
|
266
269
|
"http-proxy-agent": "7.0.2",
|
|
267
270
|
"retry-request": "8.0.2",
|
|
@@ -272,7 +275,7 @@
|
|
|
272
275
|
"semver": "^7.6.3",
|
|
273
276
|
"ws": "^8.21.0",
|
|
274
277
|
"micromatch": "^4.0.8",
|
|
275
|
-
"brace-expansion": "^5.0.
|
|
278
|
+
"brace-expansion": "^5.0.12",
|
|
276
279
|
"postcss": "^8.5.18",
|
|
277
280
|
"esbuild": "0.28.1",
|
|
278
281
|
"qs": "^6.15.2",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestContext.d.ts","sourceRoot":"","sources":["../../../src/http/RequestContext.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,E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U,MAAM,GAAG,SAAS,GAAG,IAAI;qBAIzC,QAAQ,YAAY,MAAM,GAAG,SAAS,GAAG,IAAI;oBAI9C,QAAQ,WAAW,MAAM,GAAG,SAAS,GAAG,IAAI;EAG5D,CAAC;AAEH,eAAe,cAAc,CAAC"}
|
|
@@ -1,15 +1,26 @@
|
|
|
1
1
|
import { generateUuid } from '../common/utility.js';
|
|
2
2
|
const createFallbackStorage = () => {
|
|
3
3
|
let store;
|
|
4
|
+
const restore = (prev) => {
|
|
5
|
+
store = prev;
|
|
6
|
+
};
|
|
4
7
|
return {
|
|
5
8
|
run(ctx, callback) {
|
|
6
9
|
const prev = store;
|
|
7
10
|
store = ctx;
|
|
8
11
|
try {
|
|
9
|
-
|
|
12
|
+
const result = callback();
|
|
13
|
+
if (result instanceof Promise) {
|
|
14
|
+
return result.finally(() => {
|
|
15
|
+
restore(prev);
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
restore(prev);
|
|
19
|
+
return result;
|
|
10
20
|
}
|
|
11
|
-
|
|
12
|
-
|
|
21
|
+
catch (error) {
|
|
22
|
+
restore(prev);
|
|
23
|
+
throw error;
|
|
13
24
|
}
|
|
14
25
|
},
|
|
15
26
|
getStore() {
|
package/src/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @zintrust/core v3.1.
|
|
2
|
+
* @zintrust/core v3.1.3
|
|
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-
|
|
8
|
+
* Built: 2026-10-20T06:31:53.978Z
|
|
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-
|
|
24
|
+
export const ZINTRUST_BUILD_DATE = '2026-10-20T06:31:53.935Z'; // 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';
|
|
@@ -187,7 +187,7 @@ const getInternalPublishConfig = () => {
|
|
|
187
187
|
const baseUrls = [];
|
|
188
188
|
appendUnique(baseUrls, toAbsoluteBaseUrl(Env.get('BROADCAST_INTERNAL_URL', '')));
|
|
189
189
|
appendUnique(baseUrls, toAbsoluteBaseUrl(Env.get('APP_URL', '')));
|
|
190
|
-
appendUnique(baseUrls, toAbsoluteBaseUrl(Env.get('BASE_URL',
|
|
190
|
+
appendUnique(baseUrls, toAbsoluteBaseUrl(Env.get('BASE_URL', '')));
|
|
191
191
|
const appId = resolveBroadcastAppId();
|
|
192
192
|
const secret = resolveBroadcastSecret();
|
|
193
193
|
return Object.freeze({
|