broccoli-plugin
Advanced tools
Comparing version 1.3.0 to 1.3.1
# master | ||
# 1.3.1 | ||
* Update the validation for input nodes. Previously passing `[]` as an input | ||
node wasn't caught by the validation but caused an error later during | ||
`.build` method invocation. | ||
# 1.3.0 | ||
@@ -4,0 +10,0 @@ |
17
index.js
@@ -149,4 +149,17 @@ 'use strict' | ||
function isPossibleNode(node) { | ||
return typeof node === 'string' || | ||
(node !== null && typeof node === 'object') | ||
var type = typeof node; | ||
if (node === null) { | ||
return false; | ||
} else if (type === 'string') { | ||
return true; | ||
} else if (type === 'object' && typeof node.__broccoliGetInfo__ === 'function') { | ||
// Broccoli 1.x+ | ||
return true; | ||
} else if (type === 'object' && typeof node.read === 'function') { | ||
// Broccoli / broccoli-builder <= 0.18 | ||
return true; | ||
} else { | ||
return false; | ||
} | ||
} |
{ | ||
"name": "broccoli-plugin", | ||
"description": "Base class for all Broccoli plugins", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"author": "Jo Liss <joliss42@gmail.com>", | ||
@@ -26,11 +26,10 @@ "main": "index.js", | ||
"devDependencies": { | ||
"broccoli-fixturify": "^0.2.0", | ||
"chai": "^2.3.0", | ||
"chai-as-promised": "^5.0.0", | ||
"fixturify": "^0.2.0", | ||
"mocha": "^2.2.5", | ||
"broccoli-fixturify": "^0.3.0", | ||
"chai": "^4.1.2", | ||
"chai-as-promised": "^7.1.1", | ||
"fixturify": "^0.3.4", | ||
"mocha": "^5.2.0", | ||
"mocha-jshint": "^2.2.3", | ||
"multidep": "^2.0.0", | ||
"rsvp": "^3.0.18" | ||
"multidep": "^2.0.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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
30226
7
7
223
0