
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
object-oriented-extension
Advanced tools
Provides support for "protected" fields/methods without conventions.
Provides support for "protected" fields and methods without conventions. Also provides inherit functionality.
if (global.objectOrientedExtension) {
require("object-oriented-extension/ObjectOriented/JsExtension");
// or simply: 'global.include("ObjectOriented/JsExtension");', when using include-js package
}
var SomeClass = function (protectedData/*, some other arguments for constructor) {
protectedData.protectedField = 'some value';
protectedData.protectedMethod = function () {};
// Realization
};
SomeClass = SomeClass.injectProtected(); // <- that's it
var SomeChildClass = function (protectedData/*, ... */) {
SomeClass.call(this, someArgument); // <- Call parent constructor
// Realization
this.someMethod = function (someArg) {
SomeClass.someMethod.call(this, someArg); // <- Call parent method
};
};
SomeChildClass = SomeChildClass.extend(SomeClass); // <- simply like this (call of "injectProtected" is fully optional in that case)
Almost useless bonus:
// In definition of some class...
this.someMethod = Function.abstractMethod();
this.someAnotherMethod = (function () {}).makeAbstract();
FAQs
Provides support for "protected" fields/methods without conventions.
We found that object-oriented-extension 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.