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

gulp-sourcemaps

Package Overview
Dependencies
Maintainers
3
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 2.1.1 to 2.2.0

7

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

@@ -45,3 +45,6 @@ "homepage": "http://github.com/floridoo/gulp-sourcemaps",

"src"
]
],
"engines": {
"node": ">=4"
}
}

@@ -310,2 +310,6 @@ ## gulp-sourcemaps [![NPM version][npm-image]][npm-url] [![build status][travis-image]][travis-url] [![Test coverage][coveralls-image]][coveralls-url]

- `clone`
Clones the original file for creation of the map file. Could be important if file history is important. See [file.clone()](https://github.com/gulpjs/vinyl#filecloneoptions) for possible options. Default: `{deep:false, contents:false}`
### Plugin developers only:

@@ -312,0 +316,0 @@

@@ -151,32 +151,15 @@ 'use strict';

// add new source map file to stream
var sourceMapFile = new File({
cwd: file.cwd,
base: file.base,
path: sourceMapPath,
contents: new Buffer(JSON.stringify(sourceMap)),
stat: {
isFile: function() {
return true;
},
isDirectory: function() {
return false;
},
isBlockDevice: function() {
return false;
},
isCharacterDevice: function() {
return false;
},
isSymbolicLink: function() {
return false;
},
isFIFO: function() {
return false;
},
isSocket: function() {
return false;
}
}
});
var sourceMapFile;
sourceMapFile = file.clone(options.clone || {deep:false, contents:false});
sourceMapFile.path = sourceMapPath;
sourceMapFile.contents = new Buffer(JSON.stringify(sourceMap));
sourceMapFile.stat = {
isFile: function () { return true; },
isDirectory: function () { return false; },
isBlockDevice: function () { return false; },
isCharacterDevice: function () { return false; },
isSymbolicLink: function () { return false; },
isFIFO: function () { return false; },
isSocket: function () { return false; }
};
this.push(sourceMapFile);

@@ -183,0 +166,0 @@

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