Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
loopback-component-model-extender
Advanced tools
A loopback component that enables componentized model customisation.
By default, loopback allows you to customise models by providing a model.js
file in the same directory as model.json
. Whilst this is sufficient for small applications it can be cumbersome for larger applications with complex models.
This component allows you to break large model customization files down into multiple smaller ones.
By default, it will look for model cusomization files in the directory src/common/models/${modelName}/*
. All files found in that directory will be applied to the model.
Models can specify an alternate location by setting Model.settings.components
to the location of your model customization files.
All paths are relative to your project root (or the value of the basePath
component configuration option).
All model customization carried out by this component takes place after all models have been initialized and attached to the app (but before boot scripts run). This ensures that all models are already available on the app at the time the customizations are applied.
npm install --save loopback-component-model-extender
Create a component-config.json file in your server folder (if you don't already have one)
Enable the component inside component-config.json
.
{
"loopback-component-model-extender": {
"key": "value"
}
}
Options:
log
[String] : Name of the logging class to use for log messages. (default: 'console')
basePath
[String] : Directory containing loopback application. (default: null)
Run the tests in the test
directory.
npm test
Run with debugging output on:
DEBUG='loopback:component:model-extender' npm test
FAQs
Loopback Component Model Extender
The npm package loopback-component-model-extender receives a total of 35 weekly downloads. As such, loopback-component-model-extender popularity was classified as not popular.
We found that loopback-component-model-extender demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.