Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
js2bin-version-info
Advanced tools
Helper module for js2bin. Resolve version information from online resources.
Helper module for js2bin. Resolve version information from online resources.
const { VersionInfo } = require('js2bin-version-info');
/**
* Returns the latest version, for the "build" command.
*/
const getVersionForBuild = async () => {
const info = new VersionInfo();
const version = await info.get('build');
return version;
};
/**
* Returns an array of the latest versions, for the "ci" command.
* It will return an empty array if all the latest versions are already
* available in the js2bin release assets.
*/
const getVersionsForCi = async () => {
const info = new VersionInfo();
const versions = await info.get('ci');
return versions;
};
You can give options either when you create an instance or when you get versions.
const info = new VersionInfo(opt);
const getVersionsForCi = async () => {
const info = new VersionInfo({
current: true,
timeout: 10000
});
const versions = await info.get('ci');
return versions;
};
const getVersionForBuild = async () => {
const info = new VersionInfo();
const version = await info.get('build', {
timeout: 10000
});
return version;
};
Run npm run demo
for the live demo.
FAQs
Helper module for js2bin. Resolve version information from online resources.
The npm package js2bin-version-info receives a total of 3 weekly downloads. As such, js2bin-version-info popularity was classified as not popular.
We found that js2bin-version-info 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.