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.
@typescript-tools/packages-to-rebuild-on-changes-cli
Advanced tools
CLI for packages-to-rebuild-on-changes
Enumerate packages reachable from graph traversal given starting packages
npm install --save-dev @typescript-tools/packages-to-rebuild-on-changes-cli
Usage:
packages-to-rebuild-on-changes [--root <root>] [--path] [<package>]...
Options:
packages Package names or paths to rebuild when listed packages change (also reads from stdin)
--root=<root> Root of lerna mono-repository
--path Print the relative path to each package from root
This packages offers a CLI to invoke packages-to-rebuild-on-changes, and calculates which packages in a monorepo need to be built and tested given a changed set of packages.
The changed set of packages can be specified as arguments or from
stdin
, as paths or by (scoped) package name.
The set of packages to rebuild is calculated as follows:
given set_of_changed_packages,
let downstream = internal_dependers(set_of_changed_packages)
let dependencies = internal_dependencies(downstream)
let packags_to_rebuild = set_of_changed_packages ∪ downstream ∪ dependencies
where ∪
is the union of two sets.
The set of downstream packages (internal dependers) is included to ensure no changed packages has violated a contract that another package is reliant upon.
The set of dependencies is required in order to build.
Note that the dependencies
set need only be rebuilt and not re-tested.
Consider a monorepo with the following packages
A ---B --- C
\
-- D
Invoking packages-to-rebuild-on-changes
with the following inputs
would yield this output
input | output |
---|---|
A | A B C D |
B | A B C |
D | A D |
FAQs
CLI for packages-to-rebuild-on-changes
The npm package @typescript-tools/packages-to-rebuild-on-changes-cli receives a total of 8,312 weekly downloads. As such, @typescript-tools/packages-to-rebuild-on-changes-cli popularity was classified as popular.
We found that @typescript-tools/packages-to-rebuild-on-changes-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
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.