Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
ember-events-modifier
Advanced tools
ember install ember-events-modifier
The addon provides an events
service which can be used to facilitate events throughout your application. You can use
the service directly, without using the modifiers
, described below.
import Controller from "@ember/controller";
import { action } from "@ember/object";
import { inject as service } from "@ember/service";
export default class MyController extends Controller {
@service events;
@action clickedBook(book) {
this.events.trigger(`book:active:${book.id}`, book);
}
}
The on-event
modifier allows you to register a handler for specific events.
Your action handler will be passed arguments that are provided when the action is triggered.
Note that the handler is automatically registered and removed on insertion/removal, respectively.
<div {{on-event "blog-updated" this.reloadBlog}}>
...
</div>
You can also handle multiple events with one declaration:
<div {{on-event (array "blog-updated" "blog-created") this.reloadBlog}}>
...
</div>
The trigger-event
modifier allows you to trigger an event when the element is inserted.
{{#if this.showDetails}}
<div {{trigger-event (concat "book:showing-details:" @book.id) @book}}>
...
</div>
{{/if}}
See the Contributing guide for details.
This project is licensed under the MIT License.
FAQs
eventing modifiers
The npm package ember-events-modifier receives a total of 1 weekly downloads. As such, ember-events-modifier popularity was classified as not popular.
We found that ember-events-modifier 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.