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

licensee

Package Overview
Dependencies
Maintainers
2
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

licensee - npm Package Compare versions

Comparing version 4.5.0 to 4.5.1

21

index.js

@@ -122,10 +122,13 @@ module.exports = licensee

isString(configuration.license) &&
configuration.license.length > 0 &&
// Validate `whitelist` property.
configuration.hasOwnProperty('whitelist') &&
isObject(configuration.whitelist) &&
Object.keys(configuration.whitelist)
.every(function (key) {
return isString(configuration.whitelist[key])
})
configuration.license.length > 0 && (
configuration.hasOwnProperty('whitelist')
? (
// Validate `whitelist` property.
isObject(configuration.whitelist) &&
Object.keys(configuration.whitelist)
.every(function (key) {
return isString(configuration.whitelist[key])
})
) : true
)
)

@@ -172,3 +175,3 @@ }

var licenseExpression = configuration.license
var whitelist = configuration.whitelist
var whitelist = configuration.whitelist || {}
var result = {

@@ -175,0 +178,0 @@ name: tree.package.name,

{
"name": "licensee",
"description": "check dependency licenses against rules",
"version": "4.5.0",
"version": "4.5.1",
"author": "Kyle E. Mitchell <kyle@kemitchell.com> (https://kemitchell.com/)",
"contributors": [
"Jakob Krigovsky <jakob@krigovsky.com>"
],
"dependencies": {

@@ -26,4 +29,4 @@ "docopt": "^0.6.2",

"spawn-sync": "^1.0.15",
"standard": "^10.0.2",
"tap": "^10.3.2"
"standard": "^11.0.1",
"tap": "^12.0.1"
},

@@ -30,0 +33,0 @@ "license": "Apache-2.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