Debian Patches

Status for node-tap/21.7.0+ds1+~cs69.22.41-1

Patch Description Author Forwarded Bugs Origin Last update
processinfo-fix-spawnopts-return-type.patch processinfo: build against current @types/node and node:crypto Three issues block the tshy build of @tapjs/processinfo:
.
1. spawn-opts.ts declared the return-type field "env" as
ProcessEnvOptions, which is the *options* object containing
{ uid, gid, cwd, env, ... }, not the env hash itself.
The correct type is NodeJS.ProcessEnv (a plain Record).
.
2. child_process.ts:333 calls cpExec with the destructured "options"
used as a callback after a typeof options === 'function' guard.
The narrowed union of the 5 ExecArgs overloads does not match
cpExec's overload-3 callback signature exactly (string vs
string|Buffer for stdout/stderr). Cast to any so the call
type-checks; runtime behaviour is unchanged.
.
3. The "uuid" npm package is replaced by node:crypto's randomUUID().
Debian's node-uuid 8.3.2 ships a wrapper.mjs in
package.json#exports.node.import which makes "import { v4 } from
'uuid'" resolve to ESM in the CJS-output build (TS1479).
randomUUID() has been a Node built-in since Node 14.17 / 16, well
below processinfo's stated engines.node ">=16.17", so the swap
produces identical RFC-4122 v4 UUIDs without any external dep.
not-needed 2026-04-26
npm-init-template-mustache-render-cast.patch npm-init-template: cast settings to any in mustache.render call With Debian's @types/mustache (3.2.0), the 4th argument of render() is
strictly typed as OpeningAndClosingTags ([string, string]). Upstream
passes a TemplateSetting object containing { tags?, escape? } which is
not assignable. This is a latent bug visible only when the typings are
present; runtime behaviour is unchanged.
not-needed 2026-04-26
run-select-version-mani-cast.patch run: cast pacote manifest entries to any Object.entries(packu.versions) where pacote is untyped (no @types/pacote)
yields [string, unknown][], so the inferred type for "mani" is unknown,
which breaks property access. Cast to any.
not-needed 2026-04-27
tsc-workarounds.patch tsc workarounds Xavier Guimard <yadd@debian.org> not-needed 2026-04-27

All known versions for source package 'node-tap'

Links