Skip to content

Make DrupalClient.debug method public #668

Closed
@JohnAlbin

Description

@JohnAlbin

Package

next-drupal (NPM package)

Describe the feature request

To add draft mode to next-drupal will require a new draft JS module that takes an instance of the DrupalClient as its second parameter. It would be nice to add optional debugging output for these new methods, but the current DrupalClient._debug() method is private.

Describe the solution you'd like

Make the DrupalClient.debug() method public.

Additional context

This would also allow 3rd party JS libraries to add debugging statements when extending DrupalClient.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions