Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
> OIS (or Oracle Integration Specifications) is a JSON object that describes an API specification
@api3/ois
OIS (or Oracle Integration Specifications) is a JSON object that describes an API specification
You can find the documentation for OIS in the docs.
To install this package run either:
yarn add @api3/ois
or if you use npm:
npm install @api3/ois --save
We recommend using a pinned version of the OIS package because the validation included in the package enforces the OIS version up to the patch. Pinning the version also ensures your project uses the correct OIS version even if there are other packages depending on a different OIS version.
Internally, we use zod to implement validation and TS typing for the OIS schema. It's possible to have TS issues when multiple different zod versions are used in a project.
The OIS package defines validation and TypeScript typings that can be used to verify correctness of a full OIS schema or just a part of it. For example:
const { oisSchema } = require('@api3/ois');
const possibleOis = {
// Placeholder values. Refer to the Example section below and the documentation.
oisFormat: '1.0.0',
version: '1.2.3',
title: 'coinlayer',
apiSpecifications: { ... } // omitted for brevity
endpoints: [ ... ], // omitted for brevity
};
const result = oisSchema.safeParse(possibleOis);
if (!result.success) {
throw result.error
} else {
const validOis = result.data
}
An example of a valid OIS can be found here.
To release a new version follow these steps:
git checkout main && git pull
- ensure you are on a "main" branch with latest changesyarn version
- choose "x.y.z" as the version to be releasedgit show
- verify the changes of the version commityarn build
- only build the package after the "yarn version" command so the bundled "package.json" uses the updated
versionyarn publish --access public
git push --follow-tags
- to push the commits to a "main" branchFAQs
> OIS (or Oracle Integration Specifications) is a JSON object that describes an API specification
The npm package @api3/ois receives a total of 601 weekly downloads. As such, @api3/ois popularity was classified as not popular.
We found that @api3/ois demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.