Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
esbuild-plugin-import-assertions
Advanced tools
The esbuild-plugin-import-assertions
plugin import assertion behavior for esbuild.
This package is available on npm under the name esbuild-plugin-import-assertions and can be installed with npm, yarn or however else you consume dependencies.
npm i esbuild-plugin-import-assertions
yarn add esbuild-plugin-import-assertions
To use the plugin you must use the JavaScript API for running esbuild. An example configuration is below
import { importAssertPlugin } from 'esbuild-plugin-import-assertions';
import { build } from 'esbuild';
build({
entryPoints: ['./app.ts'],
bundle: true,
outfile: './lib/out.js',
plugins: [importAssertPlugin],
target: ['chrome100']
}).catch(() => process.exit(1))
A current limitation of the plugin is that you must set esbuild's bundle
option to true
. Likewise, asynchronous imports are not currently supported.
FAQs
A plugin for esbuild to enable import assertions
The npm package esbuild-plugin-import-assertions receives a total of 1 weekly downloads. As such, esbuild-plugin-import-assertions popularity was classified as not popular.
We found that esbuild-plugin-import-assertions 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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
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.