Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

read-components

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

read-components - npm Package Compare versions

Comparing version 0.5.2 to 0.5.3

test/bower_components/mixedCase/bower.json

3

CHANGELOG.md

@@ -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()`).

@@ -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 @@ });

2

package.json
{
"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 @@ });

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc