Socket
Socket
Sign inDemoInstall

vinyl-contents-tostring

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vinyl-contents-tostring - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

6

lib/index.js

@@ -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 @@ }

5

package.json
{
"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",

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