Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
ember-simple-wormhole
Advanced tools
This addon provides a component that allows for rendering a block in a DOM element somewhere else on the page. It's inspired by ember-wormhole, but written using Octane idioms and leveraging the Ember helper in-element.
ember install ember-simple-wormhole
<div id="destination-elem">
{{!-- Text will appear here --}}
</div>
<EmberSimpleWormhole @to="destination-string">
<p>This text is rendered in "destination-string"</p>
</EmberSimpleWormhole>
renderInPlace
example:<div id="destination-elem"></div>
<EmberSimpleWormhole @to="destination-string" @renderInPlace={{true}}>
<p>This text is rendered in "destination-string"</p>
{{!-- Text will appear here --}}
</EmberSimpleWormhole>
The destination element must be in the DOM when the wormhole component is invoked, otherwise it will not be found. For use cases such as a modal that could be triggered on multiple routes, consider placing the destination element in the application template to ensure it will always be present.
If multiple EmberSimpleWormhole
s have the same destination element, content from each wormhole will be appended to the destination and will not override any existing markup.
This component does not render inside FastBoot, as it's not possible to query the DOM to get the destination element.
Option | Type | Description |
---|---|---|
@to | String/Element | The element into which the inner block should be rendered |
@renderInPlace | Boolean | Instead of rendering the inner block in another element, it's rendered in line. Note: this overrides the @to argument |
FAQs
Ember addon that wraps in-element
We found that ember-simple-wormhole 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.