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.
node-ovh-ts
Advanced tools
A wrapper class for the OVH API which wraps every route into a strongly typed signature.
All handlers and models are generated directly from the API specification received from OVH themselves.
This is an unofficial project and not affiliated with OVH!
npm install node-ovh-ts
yarn add node-ovh-ts
pnpm add node-ovh-ts
A full list of API routes is available at the OVH API Console. View this projects API documentation to see how it maps the route calls.
class OVH {
constructor(
appKey: string,
appSecret: string,
consumerKey: string,
options?: {
endpoint: 'ovh-eu'
}
)
)
import OVH from 'node-ovh-ts';
const ovhClient = new OVH(
'<appKey>',
'<appSecret>',
'<consumerKey>',
)
// GET /me
const me = ovhClient.me.get()
The default export (even minified) is quite big since it includes all handlers at once. If used for a client-side application you should consider code splitting to only include the handlers relevant to your application. To enable tree shaking, a custom client can be created like so:
import { OVHBase, MeHandler } from 'node-ovh-ts';
class CustomClient extends OVHBase {
me = new MeHandler(this)
}
const ovhClient = new CustomClient(
'<appKey>',
'<appSecret>',
'<consumerKey>',
);
// GET /me
const me = ovhClient.me.get()
/auth
for consumer key refetching is currently not implementedany
FAQs
OVH API wrapper library for TypeScript
We found that node-ovh-ts 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
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.