Package: uglifyjs.terser
Version: 4.1.0-1
Severity: serious
justification: insufficient minimum version breaks the package

If uglify.terser is updated to 4.1.0, node-terser and libjs-terser is 
not updated along with it, causing the following error.


uglifyjs.terser dist/d3-zoom.js -o dist/d3-zoom.min.js

/usr/lib/nodejs/terser/bin/uglifyjs:196
    UglifyJS.AST_Node.warn_function = function(msg) {
                                    ^
TypeError: Cannot set property 'warn_function' of undefined

The following patch fixes it,

diff --git a/debian/control b/debian/control
index 25585bc..169da84 100644
--- a/debian/control
+++ b/debian/control
@@ -28,7 +28,7 @@ Architecture: all
 Depends:
  node-source-map,
  nodejs (>= 6),
- libjs-terser,
+ libjs-terser (= ${source:Version}),
  ${misc:Depends},
 Description: parser/mangler/compressor for ES6+ - Node.js library
  Terser is a parser, mangler, optimizer and beautifier toolkit
@@ -70,7 +70,7 @@ Package: uglifyjs.terser
 Architecture: all
 Depends:
  node-commander,
- node-terser,
+ node-terser (= ${source:Version}),
  nodejs,
  ${misc:Depends},
 Recommends:

Also pushed to versions-lock branch on salsa.


-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Reply via email to