@elsikora/nestjs-crud-automator
Version:
A library for automating the creation of CRUD operations in NestJS.
19 lines (15 loc) • 776 B
JavaScript
;
var exception_utility = require('../../../error/exception.utility.js');
/**
* Prevents low-level controller facades from silently ignoring an uncompiled identity alias.
* @param {object} routeConfig - Route configuration supplied to the facade.
* @param {IApiControllerIdentityPlan} [identityPlan] - Factory-compiled identity plan.
* @returns {void}
*/
function ApiControllerIdentityPlanAssert(routeConfig, identityPlan) {
if (Reflect.has(routeConfig, "identity") && !identityPlan) {
throw exception_utility.ErrorException("Generated identity configuration requires compilation by the @ApiController factory");
}
}
exports.ApiControllerIdentityPlanAssert = ApiControllerIdentityPlanAssert;
//# sourceMappingURL=assert-plan.utility.js.map