Comparing version 1.3.0 to 1.3.1
1.3.1 (May 10, 2015) | ||
* Fix issue where a root module without a name or version will result in an exception being thrown | ||
* Bump dependencies | ||
1.3.0 (Apr 12, 2015) | ||
@@ -3,0 +8,0 @@ ==================== |
@@ -290,2 +290,15 @@ /** | ||
/** | ||
* Creates an ID for a module | ||
* @param {Object} moduleData read-installed module data | ||
*/ | ||
function createId(moduleData) { | ||
if (!moduleData._id || moduleData._id === '@') { | ||
return 'unknown(' + moduleData.path + ')@0.0.0'; | ||
} | ||
return moduleData._id; | ||
} | ||
/** | ||
* Create a module object from a record in readInstalled | ||
@@ -298,6 +311,8 @@ * | ||
var repository = (moduleData.repository || {}).url || '(none)', | ||
directory = moduleData.path, | ||
module = new Module(moduleData._id, moduleData.name, | ||
moduleData.version, directory, repository); | ||
var repository = (moduleData.repository || {}).url || '(none)'; | ||
var directory = moduleData.path; | ||
var id = createId(moduleData); | ||
var name = moduleData.name || id; | ||
var version = moduleData.version || '0.0.0'; | ||
var module = new Module(id, name, version, directory, repository); | ||
@@ -304,0 +319,0 @@ // glob for license files |
@@ -6,3 +6,3 @@ { | ||
"author": "Ian Kelly <iandotkelly@gmail.com>", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"license": "MIT", | ||
@@ -19,3 +19,3 @@ "bin": { | ||
"archy": "1.0.0", | ||
"commander": "2.7.1", | ||
"commander": "2.8.1", | ||
"glob-all": "3.0.1", | ||
@@ -30,3 +30,3 @@ "read-installed": "4.0.0" | ||
"gulp-mocha": "^2.0.1", | ||
"should": "^5.2.0" | ||
"should": "^6.0.1" | ||
}, | ||
@@ -33,0 +33,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
2961573
102815
+ Addedcommander@2.8.1(transitive)
- Removedcommander@2.7.1(transitive)
Updatedcommander@2.8.1