Hello community,
here is the log from the commit of package nodejs-minimist for openSUSE:Factory
checked in at 2015-07-02 22:43:30
Comparing /work/SRC/openSUSE:Factory/nodejs-minimist (Old)
and /work/SRC/openSUSE:Factory/.nodejs-minimist.new (New)
Package is "nodejs-minimist"
Changes:
--- /work/SRC/openSUSE:Factory/nodejs-minimist/nodejs-minimist.changes
2015-04-27 13:01:49.0 +0200
+++ /work/SRC/openSUSE:Factory/.nodejs-minimist.new/nodejs-minimist.changes
2015-07-02 22:43:31.0 +0200
@@ -1,0 +2,10 @@
+Mon Jun 29 08:58:33 UTC 2015 - i...@marguerite.su
+
+- revert to 0.0.8 for mkdirp
+
+---
+Fri Jun 5 19:16:55 UTC 2015 - i...@marguerite.su
+
+- update version 1.1.1
+
+---
Old:
minimist-1.1.0.tgz
New:
minimist-0.0.8.tgz
Other differences:
--
++ nodejs-minimist.spec ++
--- /var/tmp/diff_new_pack.Brla2D/_old 2015-07-02 22:43:31.0 +0200
+++ /var/tmp/diff_new_pack.Brla2D/_new 2015-07-02 22:43:31.0 +0200
@@ -19,7 +19,7 @@
%define base_name minimist
Name: nodejs-minimist
-Version:1.1.0
+Version:0.0.8
Release:0
Summary:Argument parsing
License:MIT
++ minimist-1.1.0.tgz -> minimist-0.0.8.tgz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/package/index.js new/package/index.js
--- old/package/index.js2014-08-11 04:08:52.0 +0200
+++ new/package/index.js2014-02-21 05:46:01.0 +0100
@@ -1,19 +1,15 @@
module.exports = function (args, opts) {
if (!opts) opts = {};
-var flags = { bools : {}, strings : {}, unknownFn: null };
-
-if (typeof opts['unknown'] === 'function') {
-flags.unknownFn = opts['unknown'];
-}
-
-if (typeof opts['boolean'] === 'boolean' && opts['boolean']) {
- flags.allBools = true;
-} else {
- [].concat(opts['boolean']).filter(Boolean).forEach(function (key) {
- flags.bools[key] = true;
- });
-}
+var flags = { bools : {}, strings : {} };
+
+[].concat(opts['boolean']).filter(Boolean).forEach(function (key) {
+flags.bools[key] = true;
+});
+
+[].concat(opts.string).filter(Boolean).forEach(function (key) {
+flags.strings[key] = true;
+});
var aliases = {};
Object.keys(opts.alias || {}).forEach(function (key) {
@@ -24,14 +20,7 @@
}));
});
});
-
-[].concat(opts.string).filter(Boolean).forEach(function (key) {
-flags.strings[key] = true;
-if (aliases[key]) {
-flags.strings[aliases[key]] = true;
-}
- });
-
+
var defaults = opts['default'] || {};
var argv = { _ : [] };
@@ -46,16 +35,7 @@
args = args.slice(0, args.indexOf('--'));
}
-function argDefined(key, arg) {
-return (flags.allBools && /^--[^=]+$/.test(arg)) ||
-flags.strings[key] || flags.bools[key] || aliases[key];
-}
-
-function setArg (key, val, arg) {
-if (arg && flags.unknownFn && !argDefined(key, arg)) {
-if (flags.unknownFn(arg) === false) return;
-}
-
+function setArg (key, val) {
var value = !flags.strings[key] && isNumber(val)
? Number(val) : val
;
@@ -74,28 +54,27 @@
// 'dotall' regex modifier. See:
// http://stackoverflow.com/a/1068308/13216
var m = arg.match(/^--([^=]+)=([\s\S]*)$/);
-setArg(m[1], m[2], arg);
+setArg(m[1], m[2]);
}
else if (/^--no-.+/.test(arg)) {
var key = arg.match(/^--no-(.+)/)[1];
-setArg(key, false, arg);
+setArg(key, false);
}
else if (/^--.+/.test(arg)) {
var key = arg.match(/^--(.+)/)[1];
var next = args[i + 1];
if (next !== undefined && !/^-/.test(next)
&& !flags.bools[key]
-&& !flags.allBools
&& (aliases[key] ? !flags.bools[aliases[key]] : true)) {
-setArg(key, next, arg);
+setArg(key, next);
i++;
}
else if (/^(true|false)$/.test(next)) {
-setArg(key, next === 'true', arg);
+setArg(key, next === 'true');
i++;
}
else {
-setArg(key, flags.strings[key] ? '' : true, arg);
+setArg(key, flags.strings[key] ? '' : true);
}
}
else if (/^-[^-]+/.test(arg)) {
@@ -106,24 +85,24 @@
var next