@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.mjs
CHANGED
|
@@ -7008,6 +7008,9 @@ function normalizeIntentToken(value) {
|
|
|
7008
7008
|
}
|
|
7009
7009
|
return normalized;
|
|
7010
7010
|
}
|
|
7011
|
+
function shouldValidateGeneratedDbTaskInput(registration) {
|
|
7012
|
+
return registration.options.securityProfile !== "low" && !registration.options.isMeta;
|
|
7013
|
+
}
|
|
7011
7014
|
function buildPostgresActorName(name) {
|
|
7012
7015
|
return `${String(name ?? "").trim()}PostgresActor`;
|
|
7013
7016
|
}
|
|
@@ -8273,7 +8276,7 @@ var DatabaseController = class _DatabaseController {
|
|
|
8273
8276
|
{
|
|
8274
8277
|
isMeta: registration.options.isMeta,
|
|
8275
8278
|
isSubMeta: registration.options.isMeta,
|
|
8276
|
-
validateInputContext: registration
|
|
8279
|
+
validateInputContext: shouldValidateGeneratedDbTaskInput(registration),
|
|
8277
8280
|
inputSchema: querySchema
|
|
8278
8281
|
}
|
|
8279
8282
|
).respondsTo(intentName);
|
|
@@ -8316,7 +8319,7 @@ var DatabaseController = class _DatabaseController {
|
|
|
8316
8319
|
{
|
|
8317
8320
|
isMeta: registration.options.isMeta,
|
|
8318
8321
|
isSubMeta: registration.options.isMeta,
|
|
8319
|
-
validateInputContext: registration
|
|
8322
|
+
validateInputContext: shouldValidateGeneratedDbTaskInput(registration),
|
|
8320
8323
|
inputSchema: insertSchema
|
|
8321
8324
|
}
|
|
8322
8325
|
).respondsTo(upsertIntentName);
|
|
@@ -8457,7 +8460,7 @@ var DatabaseController = class _DatabaseController {
|
|
|
8457
8460
|
{
|
|
8458
8461
|
isMeta: registration.options.isMeta,
|
|
8459
8462
|
isSubMeta: registration.options.isMeta,
|
|
8460
|
-
validateInputContext: registration
|
|
8463
|
+
validateInputContext: shouldValidateGeneratedDbTaskInput(registration),
|
|
8461
8464
|
inputSchema: schema
|
|
8462
8465
|
}
|
|
8463
8466
|
).doOn(
|