@dudousxd/nestjs-agent 2.0.0 → 2.0.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/durable/index.cjs +1 -1
- package/dist/durable/index.cjs.map +1 -1
- package/dist/durable/index.js +1 -1
- package/dist/durable/index.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/durable/index.cjs
CHANGED
|
@@ -19675,7 +19675,7 @@ function resolveRolesPolicy(options, modules) {
|
|
|
19675
19675
|
const external = externalWrapper(modules, import_nestjs_agent_core47.AGENT_ROLES_POLICY);
|
|
19676
19676
|
if (options.rolesPolicy !== void 0) {
|
|
19677
19677
|
if (external !== void 0) {
|
|
19678
|
-
logger4.warn("Both a `rolesPolicy` option and a module binding AGENT_ROLES_POLICY
|
|
19678
|
+
logger4.warn("Both a `rolesPolicy` option and a module binding AGENT_ROLES_POLICY are configured \u2014 the `rolesPolicy` option wins. (For ability checks, use `@Can()` from @nestjs/authorization on the tool instead of a roles policy.)");
|
|
19679
19679
|
}
|
|
19680
19680
|
return options.rolesPolicy;
|
|
19681
19681
|
}
|