reticulum-js
    Preparing search index...

    Function warnIfFragmented

    • Warns (once per token pair) when the module copy a dependent package was bundled with differs from the copy that created a Reticulum instance — i.e. the install tree contains two physical copies of @reticulum/core (the npm nesting / stale-hoist layout). With the instance-scoped caches this is not fatal anymore (state converges through the shared instance), but it still means duplicate protocol code in the process and divergent class identity (instanceof across copies fails), so it deserves a loud warning.

      Dependent packages pass their own copy's CORE_INSTANCE_TOKEN import and the instance's token (e.g. rns.coreInstanceToken).

      Parameters

      • packageName: string

        Name of the dependent package, for the log message (e.g. "@reticulum/lxmf").

      • dependentToken: object

        The dependent's CORE_INSTANCE_TOKEN import.

      • coreToken: object

        The Reticulum instance's core token.

      Returns boolean

      true when the install is fragmented (a warning was emitted), false when both sides come from the same module copy.