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.
@loopback/dist-util
Advanced tools
Utilities to work with dist
folders used by different Node.js versions.
version | directory |
---|---|
6.x LTS | not supported |
8.x LTS | dist8 |
9.x | dist8 |
10.x | dist10 |
newer | dist10 |
Run the following command to install this package:
$ npm install @loopback/dist-util
Configure your TypeScript build to produce two distribution versions:
dist8
compiled for es2017
targetdist10
compiled for es2018
targetPut the following line to your main index.js
file:
module.exports = require('@loopback/dist-util').loadDist(__dirname);
// calls `require(__dirname + '/dist8')` or `require(__dirname + '/dist10')`
It is also possible to obtain the name of the correct dist
directory without
loading the dist files:
const dist = require('@loopback/dist-util').getDist();
console.log(dist);
// prints `dist8` or `dist10`
See all contributors.
MIT
FAQs
Select dist directory based on Node.js major version.
The npm package @loopback/dist-util receives a total of 65 weekly downloads. As such, @loopback/dist-util popularity was classified as not popular.
We found that @loopback/dist-util demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 16 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
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.