Comparing version 2.3.4 to 2.4.0
@@ -37,2 +37,7 @@ 'use strict'; | ||
} | ||
if (typeof sourcemapOpt === 'string') { | ||
sourcemapOpt = { | ||
path: sourcemapOpt, | ||
}; | ||
} | ||
@@ -39,0 +44,0 @@ var mapStream = sourcemaps.write(sourcemapOpt.path, sourcemapOpt); |
{ | ||
"name": "vinyl-fs", | ||
"description": "Vinyl adapter for the file system", | ||
"version": "2.3.4", | ||
"version": "2.4.0", | ||
"homepage": "http://github.com/wearefractal/vinyl-fs", | ||
@@ -6,0 +6,0 @@ "repository": "git://github.com/wearefractal/vinyl-fs.git", |
@@ -202,3 +202,4 @@ <p align="center"> | ||
Enables sourcemap support on files passed through the stream. Will write inline soucemaps if specified as `true`. Uses [gulp-sourcemaps] under the hood. | ||
Enables sourcemap support on files passed through the stream. Will write inline soucemaps if specified as `true`. | ||
Specifying a `string` is shorthand for the path option. Uses [gulp-sourcemaps] under the hood. | ||
@@ -215,5 +216,3 @@ Examples: | ||
vfs.dest('./', { | ||
sourcemaps: { | ||
path: '.' | ||
} | ||
sourcemaps: '.' | ||
}); | ||
@@ -231,3 +230,3 @@ | ||
Type: `Boolean` or `Object` | ||
Type: `Boolean`, `String` or `Object` | ||
@@ -234,0 +233,0 @@ Default: `undefined` (do not write sourcemaps) |
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
71666
688
294