gulp-sourcemaps
Advanced tools
Comparing version 2.1.1 to 2.2.0
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
28208
383
0
372