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.
backbone-parentmodel
Advanced tools
Extensions to Backbone.Model to support nested models and collections
backbone-parentmodel provides a set of extensions to Backbone.Model for working with nested structures where logic is assigned to nested Models and Collections. The core functionality overrides clone
, clear
, toJSON
, and parse
methods to handle the nesting and provides a few additional utility methods.
Nested structures are defined as:
const MyModel = ParentModel.extend({
childModels: {
myModel: MyModelConstructor
},
childCollections: {
myCollection: MyCollectionConstructor
}
})
childModels and childCollections must either be an object mapping property names to their constructors, or they may be functions returning an object mapping.
This package is published to npm and can be installed with
npm install backbone-parentmodel
See our docs folder for more detailed documentation.
We encourage you to contribute to this project!
Please read our contributing guide for guidelines on:
Please contact one of the project maintainers with any project issues or questions.
FAQs
Extensions to Backbone.Model to support nested models and collections
The npm package backbone-parentmodel receives a total of 17 weekly downloads. As such, backbone-parentmodel popularity was classified as not popular.
We found that backbone-parentmodel demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.