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

broccoli-plugin

Package Overview
Dependencies
Maintainers
3
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-plugin - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

yarn.lock

6

CHANGELOG.md
# 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;
}
}

15

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