read-components
Advanced tools
Comparing version 0.5.2 to 0.5.3
@@ -0,1 +1,4 @@ | ||
# read-components 0.5.3 (13 November 2013) | ||
* Fixed bug with case-insensitive dependencies. | ||
# read-components 0.5.2 (9 November 2013) | ||
@@ -2,0 +5,0 @@ * All package names are now normalised (`toLowerCase()`). |
11
index.js
@@ -101,5 +101,12 @@ var sysPath = require('path'); | ||
}); | ||
var oldDeps = pkg.dependencies || {}; | ||
var dependencies = {}; | ||
Object.keys(oldDeps).forEach(function(dep) { | ||
dependencies[dep.toLowerCase()] = oldDeps[dep]; | ||
}); | ||
callback(null, { | ||
name: pkg.name.toLowerCase(), version: pkg.version, files: files, | ||
dependencies: pkg.dependencies || {} | ||
name: pkg.name.toLowerCase(), version: pkg.version, | ||
files: files, dependencies: dependencies | ||
}); | ||
@@ -106,0 +113,0 @@ }); |
{ | ||
"name": "read-components", | ||
"version": "0.5.2", | ||
"version": "0.5.3", | ||
"description": "Read bower and component(1) components", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
{ | ||
"name": "a", | ||
"main": "index.js" | ||
"main": "index.js", | ||
"dependencies": { | ||
"mixedCase": "~1.0.0" | ||
} | ||
} |
@@ -15,3 +15,3 @@ require('chai').should(); | ||
read(__dirname, 'bower', function(error, packages) { | ||
packages.map(getAttr('name')).should.eql(['a', 'b', 'c', 'd', 'e']); | ||
packages.map(getAttr('name')).should.eql(['mixedcase', 'a', 'b', 'c', 'd', 'e']); | ||
done(); | ||
@@ -18,0 +18,0 @@ }); |
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
12516
12
267