Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-sourcemaps

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-sourcemaps - npm Package Compare versions

Comparing version 0.4.2 to 0.4.3

13

index.js

@@ -88,2 +88,15 @@ 'use strict';

sourceMap.sourceRoot = options.sourceRoot || '/source/';
sourceMap.sourcesContent = sourceMap.sourcesContent || [];
// load missing source content
for (var i = 0; i < file.sourceMap.sources.length; i++) {
if (!sourceMap.sourcesContent[i]) {
var sourcePath = path.resolve(file.base, sourceMap.sources[i]);
try {
sourceMap.sourcesContent[i] = fs.readFileSync(sourcePath).toString();
} catch (e) {
console.warn(PLUGIN_NAME + ': source file not found:' + sourcePath);
}
}
}
} else {

@@ -90,0 +103,0 @@ delete sourceMap.sourcesContent;

2

package.json
{
"name": "gulp-sourcemaps",
"version": "0.4.2",
"version": "0.4.3",
"description": "Source map support for Gulp.js",

@@ -5,0 +5,0 @@ "homepage": "http://github.com/floridoo/gulp-sourcemaps",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc