@dudousxd/nestjs-agent 2.0.0 → 2.0.2

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 CHANGED
@@ -18645,7 +18645,7 @@ function resolveRolesPolicy(options, modules) {
18645
18645
  const external = externalWrapper(modules, AGENT_ROLES_POLICY2);
18646
18646
  if (options.rolesPolicy !== void 0) {
18647
18647
  if (external !== void 0) {
18648
- logger4.warn("Both a `rolesPolicy` option and a module binding AGENT_ROLES_POLICY (e.g. AgentAuthzModule) are configured \u2014 the `rolesPolicy` option wins.");
18648
+ 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.)");
18649
18649
  }
18650
18650
  return options.rolesPolicy;
18651
18651
  }