Documentation
    Preparing search index...

    Sanitizes a relative URL string.

    • Ensures it starts with /
    • Resolves away path traversal sequences (../../etc)
    • Preserves query string and hash
    • Runs fn() while holding a cross-node exclusive lock named name, released as soon as fn() finishes or throws.

      Type Parameters

      • T

      Parameters

      • name: string
      • fn: () => Promise<T>
      • opts: { timeoutMs?: number } = {}

      Returns Promise<T>