
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@honeybadger-io/esbuild-plugin
Advanced tools
Esbuild plugin to upload source maps to Honeybadger's API - http://docs.honeybadger.io/guides/source-maps.html
esbuild plugin to upload JavaScript source maps and optionally send deployment notifications to Honeybadger.
# npm
npm install @honeybadger-io/esbuild-plugin --save-dev
# yarn
yarn add @honeybadger-io/esbuild-plugin --dev
These plugin parameters correspond to the Honeybadger Source Map Upload API and Deployments API.
apiKey
(required)assetsUrl
(required)*
wildcards are supported. The plugin combines assetsUrl
with the generated minified js file name to build the API parameter minified_url
endpoint
(optional — default: "https://api.honeybadger.io/v1/source_maps")revision
(optional — default: "main")silent
(optional — default: false)retries
(optional — default: 3, max: 10)workerCount
(optional — default: 5, min: 1)ignorePaths
(optional — default: [])deployEndpoint
(optional — default: "https://api.honeybadger.io/v1/deploys")deploy
(optional — default: false)true
, or to an object containing any of the fields below. Your deploy's revision
will be set to the same value as for your source maps (see above).
environment
repository
localUsername
developmentEnvironments
(optional — default: ["dev", "development", "test"])Set sourcemap
to true
. Add the honeybadger plugin to the plugins array.
import { honeybadgerSourceMapPlugin } from '@honeybadger-io/esbuild-plugin'
// See plugin params above
const hbPluginOptions = {
apiKey: 'your_key_here',
assetsUrl: 'https://yoursite.foo',
revision: 'v1.0.0',
}
esbuild
.build({
entryPoints: ['src/index.ts'],
bundle: true,
minify: true,
format: 'cjs',
sourcemap: true,
outfile: 'dist/output.js',
plugins: [honeybadgerSourceMapPlugin(hbPluginOptions)]
})
.then(() => {
console.log('Build complete')
})
.catch((err) => {
console.error(err)
process.exit(1)
});
npm install
npm test
npm run build
See the /examples
folder for projects to test against.
This package is MIT licensed. See the MIT-LICENSE file in this folder for details.
FAQs
Esbuild plugin to upload source maps to Honeybadger's API - http://docs.honeybadger.io/guides/source-maps.html
We found that @honeybadger-io/esbuild-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.