Your message dated Sun, 06 Feb 2022 16:55:19 +0000
with message-id <e1ngkop-00036v...@fasolo.debian.org>
and subject line Bug#1003039: fixed in node-terser 4.1.2-10
has caused the Debian Bug report #1003039,
regarding node-terser: Please update node-commander dependency to version 8
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1003039: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1003039
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: node-terser
Version: 4.1.2-9
Severity: important
Tags: patch

Hi,

node-commander 8 changed option parsing. Here is a proposed patch to be
used in replacement of 1001_use_commander_4.patch
Description: support node module commander release 8
 same patch than uglifyjs
Author: Yadd <y...@debian.org>
Forwarded: no
Last-Update: 2022-01-03

--- a/bin/uglifyjs
+++ b/bin/uglifyjs
@@ -28,6 +28,15 @@
 program.version(info.name + " " + info.version);
 program.parseArgv = program.parse;
 program.parse = undefined;
+var argv = [];
+process.argv.forEach(function(arg){
+  if(arg.match(/^-([pcmbode]+)$/)) {
+    argv = argv.concat(RegExp.$1.split('').map(s => { return '-'+s }));
+  }
+  else argv.push(arg);
+});
+process.argv = argv;
+
 if (process.argv.includes("ast")) program.helpInformation = describe_ast;
 else if (process.argv.includes("options")) program.helpInformation = 
function() {
     var text = [];
@@ -65,10 +74,11 @@
 program.option("--warn", "Print warning messages.");
 program.option("--wrap <name>", "Embed everything as a function with “exports” 
corresponding to “name” globally.");
 program.arguments("[files...]").parseArgv(process.argv);
-if (program.configFile) {
-    options = JSON.parse(read_file(program.configFile));
+const opts = program.opts();
+if (opts.configFile) {
+    options = JSON.parse(read_file(opts.configFile));
 }
-if (!program.output && program.sourceMap && program.sourceMap.url != "inline") 
{
+if (!opts.output && opts.sourceMap && opts.sourceMap.url != "inline") {
     fatal("ERROR: cannot write source map to STDOUT");
 }
 [
@@ -82,83 +92,83 @@
     "toplevel",
     "wrap"
 ].forEach(function(name) {
-    if (name in program) {
-        options[name] = program[name];
+    if (name in opts) {
+        options[name] = opts[name];
     }
 });
-if ("ecma" in program) {
-    if (program.ecma != (program.ecma | 0)) fatal("ERROR: ecma must be an 
integer");
-    options.ecma = program.ecma | 0;
+if ("ecma" in opts) {
+    if (opts.ecma != (opts.ecma | 0)) fatal("ERROR: ecma must be an integer");
+    options.ecma = opts.ecma | 0;
 }
-if (program.beautify) {
-    options.output = typeof program.beautify == "object" ? program.beautify : 
{};
+if (opts.beautify) {
+    options.output = typeof opts.beautify == "object" ? opts.beautify : {};
     if (!("beautify" in options.output)) {
         options.output.beautify = true;
     }
 }
-if (program.comments) {
+if (opts.comments) {
     if (typeof options.output != "object") options.output = {};
-    options.output.comments = typeof program.comments == "string" ? 
program.comments : "some";
+    options.output.comments = typeof opts.comments == "string" ? opts.comments 
: "some";
 }
-if (program.define) {
+if (opts.define) {
     if (typeof options.compress != "object") options.compress = {};
     if (typeof options.compress.global_defs != "object") 
options.compress.global_defs = {};
-    for (var expr in program.define) {
-        options.compress.global_defs[expr] = program.define[expr];
+    for (var expr in opts.define) {
+        options.compress.global_defs[expr] = opts.define[expr];
     }
 }
-if (program.keepClassnames) {
+if (opts.keepClassnames) {
     options.keep_classnames = true;
 }
-if (program.keepFnames) {
+if (opts.keepFnames) {
     options.keep_fnames = true;
 }
-if (program.mangleProps) {
-    if (program.mangleProps.domprops) {
-        delete program.mangleProps.domprops;
+if (opts.mangleProps) {
+    if (opts.mangleProps.domprops) {
+        delete opts.mangleProps.domprops;
     } else {
-        if (typeof program.mangleProps != "object") program.mangleProps = {};
-        if (!Array.isArray(program.mangleProps.reserved)) 
program.mangleProps.reserved = [];
+        if (typeof opts.mangleProps != "object") opts.mangleProps = {};
+        if (!Array.isArray(opts.mangleProps.reserved)) 
opts.mangleProps.reserved = [];
     }
     if (typeof options.mangle != "object") options.mangle = {};
-    options.mangle.properties = program.mangleProps;
+    options.mangle.properties = opts.mangleProps;
 }
-if (program.nameCache) {
-    options.nameCache = JSON.parse(read_file(program.nameCache, "{}"));
+if (opts.nameCache) {
+    options.nameCache = JSON.parse(read_file(opts.nameCache, "{}"));
 }
-if (program.output == "ast") {
+if (opts.output == "ast") {
     options.output = {
         ast: true,
         code: false
     };
 }
-if (program.parse) {
-    if (!program.parse.acorn && !program.parse.spidermonkey) {
-        options.parse = program.parse;
-    } else if (program.sourceMap && program.sourceMap.content == "inline") {
+if (opts.parse) {
+    if (!opts.parse.acorn && !opts.parse.spidermonkey) {
+        options.parse = opts.parse;
+    } else if (opts.sourceMap && opts.sourceMap.content == "inline") {
         fatal("ERROR: inline source map only works with built-in parser");
     }
 }
 if (~program.rawArgs.indexOf("--rename")) {
     options.rename = true;
-} else if (!program.rename) {
+} else if (!opts.rename) {
     options.rename = false;
 }
 var convert_path = function(name) {
     return name;
 };
-if (typeof program.sourceMap == "object" && "base" in program.sourceMap) {
+if (typeof opts.sourceMap == "object" && "base" in opts.sourceMap) {
     convert_path = function() {
-        var base = program.sourceMap.base;
+        var base = opts.sourceMap.base;
         delete options.sourceMap.base;
         return function(name) {
             return path.relative(base, name);
         };
     }();
 }
-if (program.verbose) {
+if (opts.verbose) {
     options.warnings = "verbose";
-} else if (program.warn) {
+} else if (opts.warn) {
     options.warnings = true;
 }
 
@@ -196,24 +206,24 @@
     UglifyJS.AST_Node.warn_function = function(msg) {
         print_error("WARN: " + msg);
     };
-    var content = program.sourceMap && program.sourceMap.content;
+    var content = opts.sourceMap && opts.sourceMap.content;
     if (content && content !== "inline") {
         options.sourceMap.content = read_file(content, content);
     }
-    if (program.timings) options.timings = true;
+    if (opts.timings) options.timings = true;
     try {
-        if (program.parse) {
-            if (program.parse.acorn) {
+        if (opts.parse) {
+            if (opts.parse.acorn) {
                 files = convert_ast(function(toplevel, name) {
                     return require("acorn").parse(files[name], {
                         ecmaVersion: 2018,
                         locations: true,
                         program: toplevel,
                         sourceFile: name,
-                        sourceType: options.module || program.parse.module ? 
"module" : "script"
+                        sourceType: options.module || opts.parse.module ? 
"module" : "script"
                     });
                 });
-            } else if (program.parse.spidermonkey) {
+            } else if (opts.parse.spidermonkey) {
                 files = convert_ast(function(toplevel, name) {
                     var obj = JSON.parse(files[name]);
                     if (!toplevel) return obj;
@@ -252,7 +262,7 @@
             print_error(format_object(ex.defs));
         }
         fatal(ex);
-    } else if (program.output == "ast") {
+    } else if (opts.output == "ast") {
         if (!options.compress && !options.mangle) {
             result.ast.figure_out_scope({});
         }
@@ -286,7 +296,7 @@
             }
             return value;
         }, 2));
-    } else if (program.output == "spidermonkey") {
+    } else if (opts.output == "spidermonkey") {
         print(JSON.stringify(UglifyJS.minify(result.code, {
             compress: false,
             mangle: false,
@@ -295,16 +305,16 @@
                 code: false
             }
         }).ast.to_mozilla_ast(), null, 2));
-    } else if (program.output) {
-        fs.writeFileSync(program.output, result.code);
+    } else if (opts.output) {
+        fs.writeFileSync(opts.output, result.code);
         if (result.map) {
-            fs.writeFileSync(program.output + ".map", result.map);
+            fs.writeFileSync(opts.output + ".map", result.map);
         }
     } else {
         print(result.code);
     }
-    if (program.nameCache) {
-        fs.writeFileSync(program.nameCache, JSON.stringify(options.nameCache));
+    if (opts.nameCache) {
+        fs.writeFileSync(opts.nameCache, JSON.stringify(options.nameCache));
     }
     if (result.timings) for (var phase in result.timings) {
         print_error("- " + phase + ": " + result.timings[phase].toFixed(3) + 
"s");

--- End Message ---
--- Begin Message ---
Source: node-terser
Source-Version: 4.1.2-10
Done: Jonas Smedegaard <d...@jones.dk>

We believe that the bug you reported is fixed in the latest version of
node-terser, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1003...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jonas Smedegaard <d...@jones.dk> (supplier of updated node-terser package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 06 Feb 2022 17:31:20 +0100
Source: node-terser
Architecture: source
Version: 4.1.2-10
Distribution: unstable
Urgency: medium
Maintainer: Debian Javascript Maintainers 
<pkg-javascript-de...@lists.alioth.debian.org>
Changed-By: Jonas Smedegaard <d...@jones.dk>
Closes: 1003039
Changes:
 node-terser (4.1.2-10) unstable; urgency=medium
 .
   * update (and rename) patch 1001 to support commander v8;
     tighten to (build-)depend versioned on node-commander;
     closes: bug#1003039, thanks to Yadd
   * declare compliance with Debian Policy 4.6.0
   * set Rules-Requires-Root: no
   * generate documentation with cmark-gfm (not pandoc);
     build-depend on cmark-gfm (not pandoc)
   * simplify source helper script copyright-check
   * tediously update lintian overrides
Checksums-Sha1:
 252aca9e55a6d5de41dff638b2c57bfbc77d55c5 2378 node-terser_4.1.2-10.dsc
 ccf82f30eb850862c3b1059577d1bf29a4f556dd 10308 
node-terser_4.1.2-10.debian.tar.xz
 fa48803126c8856b983d37ac34c23e99db3cf5f8 11814 
node-terser_4.1.2-10_amd64.buildinfo
Checksums-Sha256:
 6c6a87d4270f5eebccfcd335257e781392ebbf5d7d9c550b31e8bd0ff3920bf0 2378 
node-terser_4.1.2-10.dsc
 40fdf55be15fae42de97b80f3f53a94548cb154792098889ebd5504f9b3c4fff 10308 
node-terser_4.1.2-10.debian.tar.xz
 cad548feff4abf648f3ed8b8ab3939700b22eb26b5f76d779f59a2d8dbe10cfb 11814 
node-terser_4.1.2-10_amd64.buildinfo
Files:
 25f7859b950ba08d0ba68556ddd68810 2378 javascript optional 
node-terser_4.1.2-10.dsc
 13c306b8e73cf49f67e08d77bbc467a1 10308 javascript optional 
node-terser_4.1.2-10.debian.tar.xz
 6c5ee1cf4897c369a15333f6b208ba8c 11814 javascript optional 
node-terser_4.1.2-10_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEn+Ppw2aRpp/1PMaELHwxRsGgASEFAmH/+LgACgkQLHwxRsGg
ASEwCRAAhYO1HlxluSKi9fkmhM/ay0/Yp1hCHt1XPSZVHJEjtvZkXLgxTkWL191Y
xkn6sbOHetJRUZv2d9LI78qZ5nlTY8YWbmpzPGJhM+Adgbm5NDzonpXkFmCAc+HB
4NpVmne0uru44fbx9SVbSSZSUal70H9Ua1iJsGaNp40IPaZLaPzDVITtMUbK1Fol
eCZvwxv/YNNd2fNhu6Ba4pFJnht5JUYe8t97tO+8FCftY1N8IPAr6s9khtZ0WhHZ
zR+05OWGiJh8Vli1XoEXAeD3Wgbusqa9wexjoDJViVx7ODShTF8elHV6z2P/MX/l
N4dRYmYSKg1fcj1z+1aJzhOjYEJsJT9nwSEjyF3Sn81DyjVD4Q5LmPHFfmoFERII
6Ryeld0CINjhR3SBYwFomLWv+vyqSYBzBQgrpWP7TbtONsWEdoGeWgrWYPZMIOiP
d78Wc0FsTDRoqBxSAvGpOSqorbgQdBx1jcdSYPN+7DdkFQeKOINoVmGQA1mB+S//
2gmMQl730BgXweCJf+NdAT6Srdm6lUepAVk0cAl8r9lT9GwENcL+BcuS+W8sGYGB
m+pyBu3Bm0yqedHmdy36OUEe/eJ1ey+gzFITL6uaOyngnxfaGWU9FN24FscjU4ML
MVDfV8PpTVdzKOclOuKV2uRv7SfRvfBmm6hxU+BRfzihuntuyj8=
=aFZr
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to