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

nlf

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nlf - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

.coverdata/.cover_21624742564745247/_Users_ian_Personal_nlf_lib_file-source.js

5

history.md
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 @@ ====================

23

lib/nlf.js

@@ -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

package.json

@@ -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

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