@cadenza.io/service 2.18.0 → 2.18.1
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/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7061,6 +7061,9 @@ function normalizeIntentToken(value) {
|
|
|
7061
7061
|
}
|
|
7062
7062
|
return normalized;
|
|
7063
7063
|
}
|
|
7064
|
+
function shouldValidateGeneratedDbTaskInput(registration) {
|
|
7065
|
+
return registration.options.securityProfile !== "low" && !registration.options.isMeta;
|
|
7066
|
+
}
|
|
7064
7067
|
function buildPostgresActorName(name) {
|
|
7065
7068
|
return `${String(name ?? "").trim()}PostgresActor`;
|
|
7066
7069
|
}
|
|
@@ -8326,7 +8329,7 @@ var DatabaseController = class _DatabaseController {
|
|
|
8326
8329
|
{
|
|
8327
8330
|
isMeta: registration.options.isMeta,
|
|
8328
8331
|
isSubMeta: registration.options.isMeta,
|
|
8329
|
-
validateInputContext: registration
|
|
8332
|
+
validateInputContext: shouldValidateGeneratedDbTaskInput(registration),
|
|
8330
8333
|
inputSchema: querySchema
|
|
8331
8334
|
}
|
|
8332
8335
|
).respondsTo(intentName);
|
|
@@ -8369,7 +8372,7 @@ var DatabaseController = class _DatabaseController {
|
|
|
8369
8372
|
{
|
|
8370
8373
|
isMeta: registration.options.isMeta,
|
|
8371
8374
|
isSubMeta: registration.options.isMeta,
|
|
8372
|
-
validateInputContext: registration
|
|
8375
|
+
validateInputContext: shouldValidateGeneratedDbTaskInput(registration),
|
|
8373
8376
|
inputSchema: insertSchema
|
|
8374
8377
|
}
|
|
8375
8378
|
).respondsTo(upsertIntentName);
|
|
@@ -8510,7 +8513,7 @@ var DatabaseController = class _DatabaseController {
|
|
|
8510
8513
|
{
|
|
8511
8514
|
isMeta: registration.options.isMeta,
|
|
8512
8515
|
isSubMeta: registration.options.isMeta,
|
|
8513
|
-
validateInputContext: registration
|
|
8516
|
+
validateInputContext: shouldValidateGeneratedDbTaskInput(registration),
|
|
8514
8517
|
inputSchema: schema
|
|
8515
8518
|
}
|
|
8516
8519
|
).doOn(
|