
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.
backbone-prototype-compatibility
Advanced tools
Enables Prototyping Handling for Javascript for the Backbone Classes.
Backbone uses the extend function to create models, collections, views. But this function use internally a surrogate, which does not allow the native using of JS Prototypes. With this surrogate, you can not determine an backbone object of a specific instance (the instanceof test will always failed).
This function allows your own prototypes to interact correctly with backbone by using the backbone prototypes model, collection, views.
bower install backbone-prototype-compatibility --save
bower install backbone-prototype-compatibility --save
es5
function MyModel(attributes, options) {
Backbone.Model.apply(this, arguments);
}
MyModel.prototype = Object.create(Backbone.Model, {
property: {
value: 10,
enumerable: true,
configurable: true,
writable: true
}
});
MyModel = compatibility(MyModel);
es6
class MyModel extends Backbone.Model {
constructor(attributes, options) {
this.property = 10;
super(attributes, options);
}
}
MyModel = compatibility(MyModel);
After the creation of the prototype and using the compatibility function, the prototype will contain the static methods
FAQs
Enables Prototyping Handling for Javascript for the Backbone Classes.
We found that backbone-prototype-compatibility 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.