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/internal-dependencies
Advanced tools
Calculate package dependencies living in the same monorepo
Calculate package dependencies living in the same monorepo
npm install --save-dev @typescript-tools/internal-dependencies
Usage:
internal-dependencies [--root <root>] [--path] <package>...
Options:
packages Package names or paths to print dependencies of (also reads from stdin)
--root=<root> Root of lerna mono-repository
--path Print the relative path to each package from root
internal-dependencies
reads one or more packages either as arguments
or from stdin
, and outputs the internal dependencies that the list
of packages depends upon, either directly or transitively.
Packages may be specified by path or by (scoped) name.
Note: all examples run from the root of this monorepo
Given the following package.json
{
"name": "@typescript-tools/lerna-utils",
"version": "2.1.1",
"dependencies": {
"@typescript-tools/io-ts": "^2.2.0"
}
}
internal-dependencies
prints the following
$ npx internal-dependencies @typescript-tools/lerna-utils
@typescript-tools/io-ts
$ echo @typescript-tools/lerna-utils | npx internal-dependencies
@typescript-tools/io-ts
Use --path
to print the path to the dependencies rather than the
package names
{
"name": "@typescript-tools/internal-dependencies",
"version": "2.2.4",
"dependencies": {
"@typescript-tools/dependency-graph": "^2.1.5",
"@typescript-tools/find-package": "^1.1.3",
"@typescript-tools/io-ts": "^2.2.0",
"@typescript-tools/lerna-packages": "^2.2.2",
"@typescript-tools/monorepo-root": "^1.3.2"
},
"devDependencies": {
}
$ npx internal-dependencies --path @typescript-tools/internal-dependencies
packages/dependency-graph
packages/find-package
packages/io-ts
packages/lerna-packages
packages/monorepo-root
packages/lerna-utils
FAQs
Calculate package dependencies living in the same monorepo
We found that @typescript-tools/internal-dependencies 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.