
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Object extending utilities for node and the browser (amd support)
dependence) node.js
$ npm install .
$ make
//
// base class
//
var Base = function() {
this.name = 'this is base class';
};
Base.prototype = {
func1: function func1() {
return 'this is func1';
},
func2: function func2() {
return 'this is func2';
},
func3: function func3() {
return 'this is func3';
}
};
Base.staticProp = 'BaseStaticProp';
//
// make child class
//
var Child = suns.extend(
'Child', // for convenience to debug (easy-to-read stack trace)
Base,
{// prototype
childfunc1: function childfunc1() {
return 'this is childfunc1';
},
/**
* @override
*/
func2: function func2() {
return 'this is overriden func2';
}
}
);
var c = new Child();
c.func1(); // 'this is func1'
c.childfunc1(); // 'this is childfunc1'
c.func2(); // 'this is overriden func2'
Child.__supersuper__.func2.call(c); // 'this is func2'
//
// child class extends two prototypes
//
var GrandChild = suns.extend(
'GrandChild', // for convenience to debug (easy-to-read stack trace)
Base,
{// prototype1
childfunc1: function childfunc1() {
return 'this is childfunc1';
},
/**
* @override
*/
func2: function func2() {
return 'this is overriden func2';
}
},
{// prototype2
childchildfunc1: function childchildfunc1() {
return 'this is childchildfunc1';
},
/**
* @override
*/
func2: function func2() {
return 'this is overoverriden func2';
},
/**
* @override
*/
func3: function func3() {
return 'this is overriden func3';
}
}
);
var gc = new GrandChild();
gc.func1(); // 'this is func1'
gc.childfunc1(); // 'this is childfunc1'
gc.func2(); // 'this is overoverriden func2'
GrandChild.__super__.func2.call(gc); // 'this is overriden func2'
GrandChild.__supersuper__.func2.call(gc); // 'this is func2'
@see https://github.com/CyberAgent/suns.js/blob/master/Changelog
CyberAgent, Inc. All rights reserved.
MIT @see https://github.com/CyberAgent/suns.js/blob/master/LICENSE
FAQs
Utilities for node and browser (amd support)
The npm package suns receives a total of 0 weekly downloads. As such, suns popularity was classified as not popular.
We found that suns 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.