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-connector-remote
Advanced tools
Remote REST API connector for loopback-datasource-juggler.
Use this connector to create a datasource from another Loopback application. Below is a quick example:
"MyMicroService": {
"name": "MyMicroService",
"connector": "remote"
}
Note that you should add a url
property to point to another remote service.
If you do not specify a url
property, the remote connector will point to it's own host name, port it's running on, etc.
The connector will generate models on the MyMicroService datasource object based on the models/methods exposed from the remote service. Those models will have methods attached that are
from the model's remote methods. So if you exposed a remote method from that micro-service called bar
from the model foo
,
the connector will automatically generate the following:
app.datasources.MyMicroService.models.foo.bar()
To access the remote Loopback service in a model:
module.exports = function(Message) {
Message.test = function (cb) {
Message.app.datasources.MyMicroService.models.SomeModel.remoteMethodNameHere(function () {});
cb(null, {});
};
};
FAQs
Remote REST API connector for Loopback
The npm package loopback-connector-remote receives a total of 11,186 weekly downloads. As such, loopback-connector-remote popularity was classified as popular.
We found that loopback-connector-remote demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 17 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.