@zintrust/core 2.0.1 → 2.0.2

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.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Production-grade TypeScript backend framework for JavaScript",
5
5
  "homepage": "https://zintrust.com",
6
6
  "repository": {
@@ -59,7 +59,7 @@
59
59
  "dependencies": {
60
60
  "@cloudflare/containers": "^0.3.4",
61
61
  "bcryptjs": "^3.0.3",
62
- "bullmq": "^5.76.10",
62
+ "bullmq": "^5.77.0",
63
63
  "chalk": "^5.6.2",
64
64
  "commander": "^14.0.3",
65
65
  "inquirer": "^13.4.3",
@@ -7,7 +7,8 @@ type ApplyOptions = {
7
7
  type ExecuteSqlOptions = {
8
8
  dbName: string;
9
9
  isLocal: boolean;
10
- sql: string;
10
+ sql?: string;
11
+ file?: string;
11
12
  cmd?: IBaseCommand;
12
13
  };
13
14
  export declare const WranglerD1: Readonly<{
@@ -1 +1 @@
1
- {"version":3,"file":"WranglerD1.d.ts","sourceRoot":"","sources":["../../../../src/cli/d1/WranglerD1.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD,KAAK,YAAY,GAAG;IAClB,GAAG,EAAE,YAAY,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,YAAY,CAAC;CACpB,CAAC;AAmCF,eAAO,MAAM,UAAU;0BACC,YAAY,GAAG,MAAM;qBAK1B,iBAAiB,GAAG,MAAM;EAY3C,CAAC"}
1
+ {"version":3,"file":"WranglerD1.d.ts","sourceRoot":"","sources":["../../../../src/cli/d1/WranglerD1.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD,KAAK,YAAY,GAAG;IAClB,GAAG,EAAE,YAAY,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,YAAY,CAAC;CACpB,CAAC;AAmCF,eAAO,MAAM,UAAU;0BACC,YAAY,GAAG,MAAM;qBAK1B,iBAAiB,GAAG,MAAM;EAe3C,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import { resolveNpmPath } from '../../common/index.js';
2
2
  import { appConfig } from '../../config/app.js';
3
3
  import { Logger } from '../../config/logger.js';
4
+ import { ErrorFactory } from '../../exceptions/ZintrustError.js';
4
5
  import { execFileSync } from '../../node-singletons/child-process.js';
5
6
  const createWranglerLogMessage = (args) => {
6
7
  const command = args[0] ?? 'wrangler';
@@ -37,15 +38,16 @@ export const WranglerD1 = Object.freeze({
37
38
  return runWrangler(args, opts.cmd);
38
39
  },
39
40
  executeSql(opts) {
40
- const args = [
41
- 'd1',
42
- 'execute',
43
- opts.dbName,
44
- opts.isLocal ? '--local' : '--remote',
45
- '--json',
46
- '--command',
47
- opts.sql,
48
- ];
41
+ const args = ['d1', 'execute', opts.dbName, opts.isLocal ? '--local' : '--remote', '--json'];
42
+ if (typeof opts.file === 'string') {
43
+ args.push('--file', opts.file);
44
+ }
45
+ else if (typeof opts.sql === 'string') {
46
+ args.push('--command', opts.sql);
47
+ }
48
+ else {
49
+ throw ErrorFactory.createValidationError('Must provide either sql command or file for D1 execution');
50
+ }
49
51
  return runWrangler(args, opts.cmd);
50
52
  },
51
53
  });
package/src/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @zintrust/core v2.0.1
2
+ * @zintrust/core v2.0.2
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-21T13:37:36.589Z
8
+ * Built: 2026-05-21T19:13:22.781Z
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-21T13:37:36.553Z'; // Replaced during build
24
+ export const ZINTRUST_BUILD_DATE = '2026-05-21T19:13:22.740Z'; // 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';