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.
ampersand-wildemitter-datatype-mixin
Advanced tools
A mixin for linking WildEmitter objects with Ampersand-State so that they can be bound by Ampersand-View.
Requires that the WildEmitter object emits events with this format:
emitter.emit('change:PROPERTY', emitter, 'VALUE');
It must also make the PROPERTY
value an accessible attribute in
order for things like view bindings to work:
emitter.foo = 'new-foo';
emitter.emit('change:foo', emitter, emitter.foo);
$ npm install ampersand-wildemitter-datatype-mixin
var State = require('ampersand-state');
var WildEmitterMixin = require('ampersand-wildemitter-datatype-mixin');
var StateWithWildEmitter = State.extend(wildemitterMixin, {
props: {
wild: 'wildemitter',
},
derived: {
bar: {
deps: ['wild.foo'],
cache: false,
fn: function () {
return 'it works!';
}
}
}
});
var ex = new StateWithWildEmitter();
ex.wild = new WildEmitter();
ex.on('change:bar', function () {
console.log(ex.bar);
});
ex.wild.emit('change:foo', ex.wild, 'newfoo');
// -> it works!
MIT
FAQs
WildEmitter datatype for Ampersand state
We found that ampersand-wildemitter-datatype-mixin 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.