Comparing version 0.0.3 to 0.0.4
60
index.js
@@ -373,32 +373,32 @@ 'use strict'; | ||
// init(flags) | ||
// .then(function() { | ||
// var rootPath = path.resolve(_root, _flags.base); | ||
// return genTree(rootPath); | ||
// }) | ||
// .then(function() { | ||
// _debug('generated tree:', JSON.stringify(_tree, null, 2)); | ||
// var str = stringifyTree(_tree) + _marks.eol; | ||
// if (!_flags.noreport) { | ||
// for (var i = 0, l = _types.length; i < l; i++) { | ||
// if (_stats[_types[i]] && _stats[_types[i]].length) { | ||
// str += _types[i] + ': ' + _stats[_types[i]].length + ' '; | ||
// } | ||
// } | ||
// // _log('result:\n', str); | ||
// } | ||
// return fs.writeFileAsync(_flags.o, str) | ||
// .then(function() { | ||
// // _log('Finish writing to file:', | ||
// path.resolve(_root, _flags.o) | ||
// ); | ||
// }) | ||
// .catch(function(err) { | ||
// // _error(err); | ||
// process.exit(-1); | ||
// }); | ||
// }) | ||
// .then(function() { | ||
// _spinnerOff(); | ||
// }); | ||
init(flags) | ||
.then(function() { | ||
var rootPath = path.resolve(_root, _flags.base); | ||
return genTree(rootPath); | ||
}) | ||
.then(function() { | ||
_debug('generated tree:', JSON.stringify(_tree, null, 2)); | ||
var str = stringifyTree(_tree) + _marks.eol; | ||
if (!_flags.noreport) { | ||
for (var i = 0, l = _types.length; i < l; i++) { | ||
if (_stats[_types[i]] && _stats[_types[i]].length) { | ||
str += _types[i] + ': ' + _stats[_types[i]].length + ' '; | ||
} | ||
} | ||
// _log('result:\n', str); | ||
} | ||
return fs.writeFileAsync(_flags.o, str) | ||
.then(function() { | ||
// _log('Finish writing to file:', | ||
path.resolve(_root, _flags.o) | ||
); | ||
}) | ||
.catch(function(err) { | ||
// _error(err); | ||
process.exit(-1); | ||
}); | ||
}) | ||
.then(function() { | ||
_spinnerOff(); | ||
}); | ||
@@ -405,0 +405,0 @@ }; |
{ | ||
"name": "danz-test", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "just a test.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1
10589