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.
@e2y/odata-client
Advanced tools
odata-client
This package wraps the amazing npm package o.js adding the extra functionality to run cronjobs.
import { ODataClient } from '@e2y/odata-client';
const odata = ODataClient.configuredWith({
baseURL: 'https://localhost:9002/odata2webservices/',
password: '*****',
username: 'admin'
});
const order = ((await odata.handler.get(ODATA_ENDPOINTS.orders).query({
$expand: 'paymentTransactions/entries',
$filter: `code eq '123'`,
$format: 'json'
})) as unknown) as IODataGetResponse<IOrder>;
In order to create your own tasks, use the handler
defined in the odata
instance. Check the o.js documentation to improve your queries.
Also, it is possible to cast the responses using your own types with IODataGetResponse<T>
.
To run a cronjob, we need to complete the configuration adding the attributes defined in cronjob
.
The attribute prePersistenceHookBeanId
is mandatory. While the attribute endpoint
can be empty. In that case, it will point to InboundCronJobs/CronJobs
by default.
After configuring it properly. We just need to run the following command:
await odata.runCronjob('fullMiraklImportShopsOffersCompositeCronJob');
Special thanks to janhommes
for his amazing work.
FAQs
odata client
The npm package @e2y/odata-client receives a total of 1,655 weekly downloads. As such, @e2y/odata-client popularity was classified as popular.
We found that @e2y/odata-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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.