
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
level2-base
Advanced tools
Provides the base class and other bits of code that were being re-used within level2 projects.
The Class
class provides a simple way of defining new classes and extending classes.
All uses of Class
must extend Class
itself or one of its subclasses.
var Something = Class.extend({
// Provide prototype here
});
var ChildSomething = Something.extend({
// Override Something prototoype if needed
});
:information_source: Within override methods a special function, this._super
, is available
to call the super class's function (note that this is only defined in the child function
and is removed after the method returns)
To provide a constructor use the init
property of the prototype.
This function will be called when an instance is constructed.
var Something = Class.extend({
init: function() {
// Do initialization here
}
});
Mixins are also supported when using Class.extend()
.
var Something = Class.extend(Mixin1, Mixin2, {
// Provide prototype here
});
Function
Extends a Class
with a new prototype.
If any mixins are provided their attributes will be copied to the new class's prototype.
Function
: mixins to apply to this classObject
: prototype to apply to this classBecause it was used so often a simple event emitter class is provided. This is intended to be used as a mixin.
Adds an event listener for the given event name.
String
: The event name that the listener is waiting forFunction
: The event handler functionCalls all the registered event listeners for the given event.
String
: The event to fireMixed
: The arguments to pass to the event handlersFAQs
Level2 Base Module
The npm package level2-base receives a total of 0 weekly downloads. As such, level2-base popularity was classified as not popular.
We found that level2-base 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.