Sign up (with export icon)

watchdog/actionsrecorder

Api-module icon module

Classes

Functions

  • Chevron-right icon

    serializeValue( value, visited ) → any
    internal

    Serializes a value into a JSON-serializable format.

    Parameters

    value : any

    The value to serialize.

    visited : WeakSet<object>

    Set of already serialized objects to avoid circular references.

    Defaults to ...

    Returns

    any

    A JSON-serializable representation of the value.

  • Chevron-right icon

    tapObjectMethod( object, methodName, tap, context ) → void
    internal

    Creates a wrapper around a method to record its calls, results, and errors.

    Parameters

    object : any

    The object containing the method to tap.

    methodName : string

    The name of the method to tap.

    tap : MethodTap

    The tap configuration with before/after/error hooks.

    context : Record<string, any>

    Additional context to include with the method calls.

    Defaults to {}

    Returns

    void