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.
@ardatan/bob-the-bundle
Advanced tools
There's no documentation yet but you can check GraphQL Code Generator repository to see how to use Bob.
Bob only accepts bob.config.js
in root directory:
module.exports = {
scope: "@graphql-codegen", // Scope of organization
ignore: ["@graphql-codegen/website", "@graphql-codegen/live-demo"], // ignored packages
track: [
// files in root that mark the entire workspace as dirty
"bob.config.js", // we could include it in Bob itself but we decided to turn your life into hell :)
"jest.config.js",
"jest-project.js",
"package.json",
"tsconfig.json",
// files in packages that mark the package as dirty
"<project>/src/**",
"<project>/jest.config.js",
"<project>/package.json",
"<project>/tsconfig.json",
],
base: "origin/master", // we need to compare against something
commands: {
test: {
track: ["<project>/tests/**"],
run(affected) {
// {
// paths: string[] <- ['packages/core', 'packages/cli']
// names: string[] <- ['@foo/core', '@foo/cli']
// }
// why such a weird syntax? We use spawn, so you have too
return [`yarn`, ["test", ...affected.paths]];
},
},
build: {
run() {
return [`yarn`, ["build"]];
},
},
},
};
In your <project>/package.json
:
{
"buildOptions": {
"external": ["simple-git/promise"], // Marks nested imports as external
"bin": {
"cli": {
"input": "src/cli.ts" // Entry point for `cli` command
}
}
}
}
In your <project>/package.json
, just add "exports"
like this:
{
"main": "dist/index.cjs.js",
"exports": {
"require": "dist/index.cjs.js", // should match "main"
"default": "dist/index.mjs" // should ends with ".mjs" extension
}
}
$ bob affected test
$ bob affected build
$ bob build
$ bob prepack
FAQs
Bob The Bundler!
The npm package @ardatan/bob-the-bundle receives a total of 0 weekly downloads. As such, @ardatan/bob-the-bundle popularity was classified as not popular.
We found that @ardatan/bob-the-bundle 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
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.