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 1.1.2 to 1.1.3

9

index.js

@@ -38,2 +38,3 @@ 'use strict';

sourcePath = path.dirname(file.path);
fileContent = convert.removeComments(fileContent);
} else {

@@ -44,7 +45,9 @@ // look for source map comment referencing a source map file

var mapFile;
if (mapComment)
if (mapComment) {
mapFile = path.resolve(path.dirname(file.path), mapComment[1] || mapComment[2]);
fileContent = convert.removeMapFileComments(fileContent);
// if no comment try map file with same name as source file
else
} else {
mapFile = file.path + '.map';
}

@@ -87,3 +90,3 @@ // sources in external map are relative to map file

// remove source map comment from source
file.contents = new Buffer(convert.removeComments(fileContent), 'utf8');
file.contents = new Buffer(fileContent, 'utf8');
}

@@ -90,0 +93,0 @@ }

{
"name": "gulp-sourcemaps",
"version": "1.1.2",
"version": "1.1.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