Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
@gulp-sourcemaps/sources-content
Advanced tools
Gulp plugin for loading or clearing sources content of a sourcemap.
Gulp plugin for loading or clearing sources content of a sourcemap.
Sources content is loaded by default during sourcemaps.write()
but this may
be too late. This module allows sources content to be loaded before using
@gulp-sourcemaps/map-sources
to rewrite using URL's that might not be valid
on the filesystem.
var mapSources = require('@gulp-sourcemaps/map-sources');
var sourcesContent = require('@gulp-sourcemaps/sources-content');
gulp.src(...)
.pipe(sourcemaps.init())
.pipe(sourcesContent())
.pipe(mapSources(function(sourcePath, file) {
return '../' + sourcePath;
}))
.pipe(sourcemaps.write())
.pipe(gulp.dest(...))
sourcesContent(options)
Takes a object containing options for this plugin.
options.clear
Seting this option true
will cause the sources content to be deleted instead
of initialized.
A function can be passed for clear, this allows removing sources content associated
with some files but not others. The function is called with filename
argument for
each source, returning true
causes the contents for that file to be cleared.
gulp.src(...)
/* ... */
.pipe(sourcesContent({
clear: function(filename, mainFile) {
/* Clear all sourceContent elements except the one
* associated with sourceMap.file. */
return filename !== mainFile
}
}))
.pipe(gulp.dest(...))
MIT
FAQs
Gulp plugin for loading or clearing sources content of a sourcemap.
The npm package @gulp-sourcemaps/sources-content receives a total of 4 weekly downloads. As such, @gulp-sourcemaps/sources-content popularity was classified as not popular.
We found that @gulp-sourcemaps/sources-content demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.