#977889 ctype=nodejs seems not working in node-yarnpkg

Package:
devscripts
Source:
devscripts
Description:
scripts to make the life of a Debian Package maintainer easier
Submitter:
Pirate Praveen
Date:
2020-12-22 12:27:04 UTC
Severity:
important
#977889#5
Date:
2020-12-22 12:23:28 UTC
From:
To:
For node-yarnpkg, package.json has

"normalize-url": "^2.0.0",

But without forcing version 2 like

https://registry.npmjs.org/normalize-url/-/normalize-url-(2[\d\.]+)@ARCHIVE_EXT@
checksum

it downloads the latest version 5.3.0 negating the usefulness of
ctype=nodejs.

open ended versions like,
https://registry.npmjs.org/normalize-url/-/normalize-url-([\d\.]+)@ARCHIVE_EXT@
checksum

does not work. So we have to always select the versions manually.