@zintrust/core 3.1.2 → 3.4.0
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 +22 -19
- package/public/index.html +18 -0
- package/src/http/RequestContext.d.ts.map +1 -1
- package/src/http/RequestContext.js +14 -3
- package/src/index.js +3 -3
- package/src/tools/broadcast/Broadcast.js +1 -1
- package/src/zintrust.plugins.d.ts +3 -6
- package/src/zintrust.plugins.d.ts.map +1 -1
- package/src/zintrust.plugins.js +3 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zintrust/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"description": "Production-grade TypeScript backend framework for JavaScript",
|
|
5
5
|
"homepage": "https://zintrust.com",
|
|
6
6
|
"repository": {
|
|
@@ -216,24 +216,24 @@
|
|
|
216
216
|
"@cloudflare/containers": "^0.3.7",
|
|
217
217
|
"@zedgi/zedgi-client": "^1.1.1",
|
|
218
218
|
"bcryptjs": "^3.0.3",
|
|
219
|
-
"bullmq": "^6.
|
|
220
|
-
"chalk": "^6.0.
|
|
219
|
+
"bullmq": "^6.7.1",
|
|
220
|
+
"chalk": "^6.0.1",
|
|
221
221
|
"commander": "^15.0.0",
|
|
222
|
-
"inquirer": "^14.2.
|
|
222
|
+
"inquirer": "^14.2.5",
|
|
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.1",
|
|
228
|
+
"tsx": "^4.23.15"
|
|
229
229
|
},
|
|
230
230
|
"overrides": {
|
|
231
|
+
"@opentelemetry/api": "$@opentelemetry/api",
|
|
231
232
|
"ajv": "^8.18.0",
|
|
232
233
|
"@eslint/plugin-kit": "^0.7.1",
|
|
233
234
|
"follow-redirects": "^1.16.0",
|
|
234
235
|
"@tootallnate/once": "3.0.1",
|
|
235
|
-
"
|
|
236
|
-
"fast-uri": "3.1.6",
|
|
236
|
+
"fast-uri": "^3.1.9",
|
|
237
237
|
"nanoid": "^3.3.18",
|
|
238
238
|
"fast-xml-parser": "5.8.0",
|
|
239
239
|
"@babel/core": "^7.29.7",
|
|
@@ -241,27 +241,30 @@
|
|
|
241
241
|
"picomatch": "^4.0.4",
|
|
242
242
|
"cross-spawn": "^7.0.5",
|
|
243
243
|
"glob": "^11.1.0",
|
|
244
|
-
"minimatch": "^
|
|
244
|
+
"minimatch": "^11.0.1",
|
|
245
245
|
"rollup": "^4.59.0",
|
|
246
|
-
"vite": "^8.
|
|
246
|
+
"vite": "^8.3.6",
|
|
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.
|
|
261
|
+
"undici": "^6.29.1"
|
|
259
262
|
},
|
|
260
263
|
"@actions/http-client": {
|
|
261
|
-
"undici": "^6.
|
|
264
|
+
"undici": "^6.29.1"
|
|
262
265
|
},
|
|
263
266
|
"miniflare": {
|
|
264
|
-
"undici": "^7.
|
|
267
|
+
"undici": "^7.30.1"
|
|
265
268
|
},
|
|
266
269
|
"http-proxy-agent": "7.0.2",
|
|
267
270
|
"retry-request": "8.0.2",
|
|
@@ -272,14 +275,14 @@
|
|
|
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",
|
|
279
282
|
"adm-zip": "^0.6.1",
|
|
280
283
|
"baseline-browser-mapping": "^2.11.0",
|
|
281
284
|
"browserslist": "^4.28.9",
|
|
282
|
-
"sharp": "^0.35.
|
|
285
|
+
"sharp": "^0.35.5"
|
|
283
286
|
},
|
|
284
287
|
"bin": {
|
|
285
288
|
"zintrust": "bin/zintrust.js",
|
package/public/index.html
CHANGED
|
@@ -221,6 +221,24 @@
|
|
|
221
221
|
</a>
|
|
222
222
|
</div>
|
|
223
223
|
|
|
224
|
+
<div class="mt-5 flex flex-wrap items-center gap-4">
|
|
225
|
+
<iframe
|
|
226
|
+
src="https://github.com/sponsors/diadal/button"
|
|
227
|
+
title="Sponsor diadal"
|
|
228
|
+
height="32"
|
|
229
|
+
width="114"
|
|
230
|
+
style="border: 0; border-radius: 6px"
|
|
231
|
+
></iframe>
|
|
232
|
+
<a
|
|
233
|
+
href="https://patreon.com/diadal"
|
|
234
|
+
class="text-sm font-semibold text-slate-600 underline decoration-emerald-500 underline-offset-4 hover:text-slate-900 dark:text-slate-300 dark:hover:text-white"
|
|
235
|
+
target="_blank"
|
|
236
|
+
rel="noopener noreferrer"
|
|
237
|
+
>
|
|
238
|
+
Support on Patreon
|
|
239
|
+
</a>
|
|
240
|
+
</div>
|
|
241
|
+
|
|
224
242
|
<div class="mt-12">
|
|
225
243
|
<a href="https://zintrust.com/doc/getting-started" class="lang-card group block">
|
|
226
244
|
<div
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestContext.d.ts","sourceRoot":"","sources":["../../../src/http/RequestContext.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;
|
|
1
|
+
{"version":3,"file":"RequestContext.d.ts","sourceRoot":"","sources":["../../../src/http/RequestContext.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAoHD,eAAO,MAAM,cAAc;QACf,CAAC,WAAW,eAAe,YAAY,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;eAKpD,OAAO,CAAC,eAAe,GAAG,SAAS,CAAC;YAK7C,eAAe,GAAG,SAAS;gBAIvB,QAAQ,GAAG,eAAe;gBAoC1B,QAAQ,WAAW,eAAe,GAAG,IAAI;aAS5C,QAAQ,GAAG,eAAe,GAAG,SAAS;oBAM/B,eAAe,UAAU,MAAM,GAAG,eAAe;mBASlD,QAAQ,UAAU,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.
|
|
2
|
+
* @zintrust/core v3.4.0
|
|
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-11-06T08:27:46.222Z
|
|
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-11-06T08:27:46.195Z'; // 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({
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* side-effect imports (e.g. `@zintrust/db-sqlite/register`) that register
|
|
6
|
-
* optional adapters/drivers into core registries.
|
|
7
|
-
*
|
|
2
|
+
* Auto-generated fallback module.
|
|
3
|
+
* This file is created by scripts/ensure-worker-plugins.mjs when missing.
|
|
4
|
+
* It allows optional runtime plugin imports to resolve in CI/scaffolded setups.
|
|
8
5
|
*/
|
|
9
6
|
export type {};
|
|
10
7
|
export declare const __zintrustGeneratedPluginStub = "zintrust.plugins.ts";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zintrust.plugins.d.ts","sourceRoot":"","sources":["../../src/zintrust.plugins.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"zintrust.plugins.d.ts","sourceRoot":"","sources":["../../src/zintrust.plugins.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,YAAY,EAAE,CAAC;AAgBf,eAAO,MAAM,6BAA6B,wBAAwB,CAAC;;AACnE,wBAAkB"}
|
package/src/zintrust.plugins.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* side-effect imports (e.g. `@zintrust/db-sqlite/register`) that register
|
|
6
|
-
* optional adapters/drivers into core registries.
|
|
7
|
-
*
|
|
2
|
+
* Auto-generated fallback module.
|
|
3
|
+
* This file is created by scripts/ensure-worker-plugins.mjs when missing.
|
|
4
|
+
* It allows optional runtime plugin imports to resolve in CI/scaffolded setups.
|
|
8
5
|
*/
|
|
9
6
|
import * as TraceRuntime from './runtime/plugins/trace-runtime.js';
|
|
10
7
|
globalThis.__zintrust_system_trace_plugin_requested__ = true;
|