Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin namespace conflict #914

Open
vitorclelis96 opened this issue Dec 21, 2022 · 0 comments
Open

Plugin namespace conflict #914

vitorclelis96 opened this issue Dec 21, 2022 · 0 comments

Comments

@vitorclelis96
Copy link

When using the debug plugin, it's namespace will conflict with seneca definition types and it's configuration parameters will get inject with new parameters.

Seneca debug namespace:

debug?: {
      // Throw (some) errors from seneca.act.
      fragile?:    boolean | undefined;
      // Fatal errors ... aren't fatal. Not for production!
      undead?:     boolean | undefined;
      // Print debug info to console
      print?: {
          // Print options. Best used via --seneca.print.options.
          options?: boolean | undefined;
      } | undefined;
      // Trace action caller and place in args.caller$.
      act_caller?: boolean | undefined;
      // Shorten all identifiers to 2 characters.
      short_logs?: boolean | undefined;
      // Record and log callpoints (calling code locations).
      callpoint?: boolean | undefined;
  } | undefined;

Those parameters will get injected in the debug config parameters if you boot it like this:

seneca.use('debug', { ...myParams })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant