vinyl-contents-tostring
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -7,6 +7,2 @@ 'use strict'; | ||
var _vinyl = require('vinyl'); | ||
var _vinyl2 = _interopRequireDefault(_vinyl); | ||
var _streamToString = require('stream-to-string'); | ||
@@ -19,3 +15,3 @@ | ||
module.exports = function (file, enc) { | ||
if (!(file instanceof _vinyl2.default)) { | ||
if (!file || typeof file.isBuffer !== 'function' || typeof file.isStream !== 'function') { | ||
return _bluebird2.default.reject(new TypeError('First argument must be a Vinyl file')); | ||
@@ -22,0 +18,0 @@ } |
{ | ||
"name": "vinyl-contents-tostring", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Convert vinyl file content to string", | ||
@@ -34,5 +34,2 @@ "main": "lib/index.js", | ||
}, | ||
"peerDependencies": { | ||
"vinyl": "^0.3.0 || ^1.1.1" | ||
}, | ||
"devDependencies": { | ||
@@ -39,0 +36,0 @@ "babel-cli": "^6.10.1", |
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
2
3430
17