Debian Patches

Status for node-license-webpack-plugin/4.0.2-4

Patch Description Author Forwarded Bugs Origin Last update
fix-test.patch workarounf tsc problems Yadd <yadd@debian.org> not-needed 2023-05-06
webpack-5.107-provide-module.patch Support webpack >= 5.107 "provide module" identifiers webpack 5.107.0 changed ProvideSharedModule.identifier() to separate the
request with "|" instead of " = " (webpack PR #20860), so split('=')[1] is
undefined and .trim() throws. The error escapes
Compilation.hooks.processAssets as a HookWebpackError and fails the entire
build, which breaks every JupyterLab extension build.
.
Both identifier formats are now handled, and an unrecognized one returns
null rather than throwing.

diff --git a/src/WebpackInnerModuleIterator.ts b/src/WebpackInnerModuleIterator.ts
index 198f3e2..c6ac051 100644
Claude Opus 5 <noreply@anthropic.com> yes debian upstream 2026-08-02
ts6-compat.patch fix build and tests with TypeScript 6 TypeScript 6 rejects "target": "es5" and the now pointless
"downlevelIteration" with TS5101/TS5107, no longer scans node_modules/@types,
and no longer offers Object.entries &co. with a bare ES2015 library, hence
"lib": ["es2017"].
.
The jest globals are declared through the ts-jest transform so that
@types/jest, which is only a test dependency, stays out of the library build.
.
TypeScript 6 is also stricter about the type of an assignment expression:
getModule() returns the result of caching a Partial<LicenseIdentifiedModule>,
which it already narrowed by contract, so the assertion is spelled out.
.
TypeScript 5 accepts all of this unchanged.
Xavier Guimard <yadd@debian.org> not-needed 2026-08-15

All known versions for source package 'node-license-webpack-plugin'

Links