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.
@fern-api/apiture
Advanced tools
[![npm shield](https://img.shields.io/npm/v/@fern-api/apiture)](https://www.npmjs.com/package/@fern-api/apiture) [![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-SDK%20generated%20by%20Fern-brightgreen)](https://github.com/fern-api/fern)
The Apiture Node.js library provides access to the Apiture API from JavaScript/TypeScript.
API reference documentation is available here.
const apiture = new ApitureClient({
acessToken: 'my-access-token',
apiKey: 'my-api-key', // optional
});
const account = await apiture.accounts.getAccount('accountId');
console.log(account.maskedNumber);
When the API returns a non-success status code (4xx or 5xx response), a subclass of ApitureError will be thrown:
try {
await apiture.accounts.getAccount('accountId');
} catch (err) {
if (err instanceof ApitureError) {
console.log(err.statusCode);
console.log(err.message);
console.log(err.body);
}
}
This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning the package version to a specific version in your package.json file. This way, you can install the same version each time without breaking changes unless you are intentionally looking for the latest version.
While we value open-source contributions to this SDK, this library is generated programmatically. Additions made directly to this library would have to be moved over to our generation code, otherwise they would be overwritten upon the next generated release. Feel free to open a PR as a proof of concept, but know that we will not be able to merge it as-is. We suggest opening an issue first to discuss with us!
On the other hand, contributions to the README are always very welcome!
FAQs
[![npm shield](https://img.shields.io/npm/v/@fern-api/apiture)](https://www.npmjs.com/package/@fern-api/apiture) [![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-SDK%20generated%20by%20Fern-brightgreen)](https://github.com/fern-api/fern)
The npm package @fern-api/apiture receives a total of 0 weekly downloads. As such, @fern-api/apiture popularity was classified as not popular.
We found that @fern-api/apiture 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.