@zenstackhq/runtime 3.0.0-alpha.27 → 3.0.0-alpha.28
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/dist/{contract-c8GpEAl3.d.cts → contract-cndmlzV3.d.cts} +0 -4
- package/dist/{contract-c8GpEAl3.d.ts → contract-cndmlzV3.d.ts} +0 -4
- package/dist/index.cjs +2 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -12
- package/dist/index.js.map +1 -1
- package/dist/plugins/policy/index.d.cts +1 -1
- package/dist/plugins/policy/index.d.ts +1 -1
- package/package.json +8 -8
|
@@ -777,10 +777,6 @@ type ClientOptions<Schema extends SchemaDef> = {
|
|
|
777
777
|
* Logging configuration.
|
|
778
778
|
*/
|
|
779
779
|
log?: KyselyConfig['log'];
|
|
780
|
-
/**
|
|
781
|
-
* Debug mode.
|
|
782
|
-
*/
|
|
783
|
-
debug?: boolean;
|
|
784
780
|
} & (HasComputedFields<Schema> extends true ? {
|
|
785
781
|
/**
|
|
786
782
|
* Computed field definitions.
|
|
@@ -777,10 +777,6 @@ type ClientOptions<Schema extends SchemaDef> = {
|
|
|
777
777
|
* Logging configuration.
|
|
778
778
|
*/
|
|
779
779
|
log?: KyselyConfig['log'];
|
|
780
|
-
/**
|
|
781
|
-
* Debug mode.
|
|
782
|
-
*/
|
|
783
|
-
debug?: boolean;
|
|
784
780
|
} & (HasComputedFields<Schema> extends true ? {
|
|
785
781
|
/**
|
|
786
782
|
* Computed field definitions.
|
package/dist/index.cjs
CHANGED
|
@@ -455,7 +455,6 @@ var import_cuid2 = require("@paralleldrive/cuid2");
|
|
|
455
455
|
var import_common_helpers8 = require("@zenstackhq/common-helpers");
|
|
456
456
|
var import_kysely8 = require("kysely");
|
|
457
457
|
var import_nanoid = require("nanoid");
|
|
458
|
-
var import_node_util = require("util");
|
|
459
458
|
var import_ts_pattern9 = require("ts-pattern");
|
|
460
459
|
var import_ulid = require("ulid");
|
|
461
460
|
var uuid = __toESM(require("uuid"), 1);
|
|
@@ -2789,11 +2788,7 @@ var BaseOperationHandler = class {
|
|
|
2789
2788
|
const r = await kysely.getExecutor().executeQuery(compiled, queryId);
|
|
2790
2789
|
result = r.rows;
|
|
2791
2790
|
} catch (err) {
|
|
2792
|
-
|
|
2793
|
-
if (this.options.debug) {
|
|
2794
|
-
message += `, parameters:
|
|
2795
|
-
${compiled.parameters.map((p) => (0, import_node_util.inspect)(p)).join("\n")}`;
|
|
2796
|
-
}
|
|
2791
|
+
const message = `Failed to execute query: ${err}, sql: ${compiled.sql}`;
|
|
2797
2792
|
throw new QueryError(message, err);
|
|
2798
2793
|
}
|
|
2799
2794
|
return result;
|
|
@@ -5633,7 +5628,6 @@ __name(performanceNow, "performanceNow");
|
|
|
5633
5628
|
// src/client/executor/zenstack-query-executor.ts
|
|
5634
5629
|
var import_kysely13 = require("kysely");
|
|
5635
5630
|
var import_nanoid2 = require("nanoid");
|
|
5636
|
-
var import_node_util2 = require("util");
|
|
5637
5631
|
var import_ts_pattern16 = require("ts-pattern");
|
|
5638
5632
|
|
|
5639
5633
|
// src/client/executor/name-mapper.ts
|
|
@@ -5941,11 +5935,7 @@ var ZenStackQueryExecutor = class _ZenStackQueryExecutor extends import_kysely13
|
|
|
5941
5935
|
};
|
|
5942
5936
|
});
|
|
5943
5937
|
} catch (err) {
|
|
5944
|
-
|
|
5945
|
-
if (this.options.debug) {
|
|
5946
|
-
message += `, parameters:
|
|
5947
|
-
${compiled.parameters.map((p) => (0, import_node_util2.inspect)(p)).join("\n")}`;
|
|
5948
|
-
}
|
|
5938
|
+
const message = `Failed to execute query: ${err}, sql: ${compiled.sql}`;
|
|
5949
5939
|
throw new QueryError(message, err);
|
|
5950
5940
|
}
|
|
5951
5941
|
}
|