
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
broccoli-bridge
Advanced tools
A utility for bridging dependencies between Broccoli nodes, even if they aren't necessarily available at the time of instantiation.
Suppose you have two Broccoli plugins, A
and B
, that may be instantiated in any order in different areas of code, but A
depends on the output of B
.
const BroccoliBridge = require('broccoli-bridge');
// Stash your bridge instance somewhere central for later access
let bridge = new BroccoliBridge();
// Create your `PluginA` instance using a placeholder...
let a = new PluginA([
inputOne,
bridge.placeholderFor('plugin-b')
]);
// ...and then fill in that placeholder with the actual `PluginB` instance at any time before the build starts.
let b = new PluginB([inputTwo, inputThree]);
bridge.fulfill('plugin-b', b);
bridge.placeholderFor(name)
: returns a placeholder Broccoli node that will ultimately produce the content given by the node it's fulfilled withbridge.fulfill(name, node)
: designates a Broccoli node to provide content for any placeholder(s) with the given nameNote that placeholderFor(name)
may be called before or after name
has already been fulfilled without impacting behavior.
This package relies on an internal detail of the Broccoli Plugin
API, and may in principle break at any time.
FAQs
A utility for bridging dependencies between Broccoli nodes
The npm package broccoli-bridge receives a total of 17,796 weekly downloads. As such, broccoli-bridge popularity was classified as popular.
We found that broccoli-bridge demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.