Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
gulp-safety-net
Advanced tools
Exception safe javascript wrapper
Wraps files in a try/catch statement to not expose errors.
$ npm install --save-dev gulp-safety-net
var gulp = require('gulp'),
safetyNet = require('gulp-safety-net');
gulp.task('default', function () {
return gulp.src('src/app.js')
.pipe(safetyNet())
.pipe(gulp.dest('dist'));
});
Type: Function
Default: function () {}
Allows a custom setup outside of the try/catch block.
setup : function() { window.Logger = new Logger(); }
Type: String
Default: 'console.log(e)'
Provides an alternative logging call to pass the error to.
logger: 'myCustomLogger(e)'
MIT
FAQs
Exception safe javascript wrapper
We found that gulp-safety-net 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
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.