
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
semver-level-harmony
Advanced tools
Compare if two semver version range levels are the same. The world is complex, sometimes dependencies rely on others to have the same version level. For example Spectron expects Electron to have the same minor version. Testing if these two modules have the same minor version makes this implicit relation explicit, getting them in harmony.
The module is smart enough to notice a range is too wide to compare on certain levels. For example comparing the minor level on ^1.2.3
is impossible since the installed version can go up to 1.9.9
.
This module is small and simple with the downside being it only supports semver ranges with three defined numbers. This is a range you get by default when installing a module with the npm CLI.
npm install semver-level-harmony --save-dev
Example testing Spectron and Electron minor version:
const assert = require('assert');
const semverLevelHarmony = require('semver-level-harmony');
const { electron, spectron } = require('./package.json').devDependencies;
assert.ok(
semverLevelHarmony('minor', electron, spectron),
'electron and spectron version minor levels are the same'
);
Type: string
Version semver level: major
, minor
or patch
.
Type: string
The version semver range.
[1.0.1] - 2018-08-25
FAQs
Compare if two semver version range levels are the same.
The npm package semver-level-harmony receives a total of 1 weekly downloads. As such, semver-level-harmony popularity was classified as not popular.
We found that semver-level-harmony 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.