Socket
Socket
Sign inDemoInstall

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.1 to 1.3.2

.coverdata/.cover_4171991408802569/_Users_ian_Personal_nlf_lib_file-source.js

6

history.md

@@ -0,3 +1,9 @@

1.3.2 (July 12, 2015)
====================
* Support object being used for license or licenses property of package.json
* Bump development dependencies
1.3.1 (May 10, 2015)
====================

@@ -4,0 +10,0 @@ * Fix issue where a root module without a name or version will result in an exception being thrown

10

lib/nlf.js

@@ -270,11 +270,6 @@ /**

// simple license declarations first
if (typeof license === 'string') {
if (typeof license === 'string' || typeof license === 'object') {
module.licenseSources.package.add(new PackageSource(license));
}
// some modules incorrectly have a string licenses property
if (typeof licenses === 'string') {
return module.licenseSources.package.add(new PackageSource(licenses));
}
// correct use of licenses array

@@ -287,2 +282,5 @@ if (Array.isArray(licenses)) {

}
} else if (typeof licenses === 'string' || typeof licenses === 'object') {
// some modules incorrectly have a string or object licenses property
return module.licenseSources.package.add(new PackageSource(licenses));
}

@@ -289,0 +287,0 @@ }

14

package.json

@@ -6,3 +6,3 @@ {

"author": "Ian Kelly <iandotkelly@gmail.com>",
"version": "1.3.1",
"version": "1.3.2",
"license": "MIT",

@@ -21,11 +21,11 @@ "bin": {

"glob-all": "3.0.1",
"read-installed": "4.0.0"
"read-installed": "^4.0.1"
},
"devDependencies": {
"gulp": "^3.8.11",
"gulp-coverage": "^0.3.34",
"gulp": "^3.9.0",
"gulp-coverage": "^0.3.36",
"gulp-coveralls": "^0.1.3",
"gulp-jshint": "^1.10.0",
"gulp-mocha": "^2.0.1",
"should": "^6.0.1"
"gulp-jshint": "^1.11.2",
"gulp-mocha": "^2.1.3",
"should": "^7.0.2"
},

@@ -32,0 +32,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