Socket
Socket
Sign inDemoInstall

vinyl

Package Overview
Dependencies
14
Maintainers
2
Versions
30
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.0 to 2.2.0

6

index.js
'use strict';
var path = require('path');
var util = require('util');
var isBuffer = require('buffer').Buffer.isBuffer;

@@ -160,2 +161,7 @@

// Newer Node.js versions use this symbol for custom inspection.
if (util.inspect.custom) {
File.prototype[util.inspect.custom] = File.prototype.inspect;
}
File.isCustomProp = function(key) {

@@ -162,0 +168,0 @@ return builtInFields.indexOf(key) === -1;

2

package.json
{
"name": "vinyl",
"version": "2.1.0",
"version": "2.2.0",
"description": "Virtual file format.",

@@ -5,0 +5,0 @@ "author": "Gulp Team <team@gulpjs.com> (http://gulpjs.com/)",

@@ -90,5 +90,5 @@ <p align="center">

The contents of the file. If `options.contents` is a [`Stream`][stream], it is wrapped in a [`cloneable-readable`][cloneable-readable] stream.
The contents of the file. If `options.contents` is a [`ReadableStream`][readable-stream], it is wrapped in a [`cloneable-readable`][cloneable-readable] stream.
Type: [`Stream`][stream], [`Buffer`][buffer], or `null`
Type: [`ReadableStream`][readable-stream], [`Buffer`][buffer], or `null`

@@ -168,7 +168,7 @@ Default: `null`

Gets and sets the contents of the file. If set to a [`Stream`][stream], it is wrapped in a [`cloneable-readable`][cloneable-readable] stream.
Gets and sets the contents of the file. If set to a [`ReadableStream`][readable-stream], it is wrapped in a [`cloneable-readable`][cloneable-readable] stream.
Throws when set to any value other than a [`Stream`][stream], a [`Buffer`][buffer] or `null`.
Throws when set to any value other than a [`ReadableStream`][readable-stream], a [`Buffer`][buffer] or `null`.
Type: [`Stream`][stream], [`Buffer`][buffer] or `null`
Type: [`ReadableStream`][readable-stream], [`Buffer`][buffer], or `null`

@@ -360,3 +360,3 @@ #### `file.cwd`

This method is usefuly for inheritting from the Vinyl constructor. Read more in [Extending Vinyl][extending-vinyl].
This method is useful for inheritting from the Vinyl constructor. Read more in [Extending Vinyl][extending-vinyl].

@@ -429,2 +429,3 @@ Example:

[stream]: https://nodejs.org/api/stream.html#stream_stream
[readable-stream]: https://nodejs.org/api/stream.html#stream_readable_streams
[buffer]: https://nodejs.org/api/buffer.html#buffer_class_buffer

@@ -431,0 +432,0 @@ [fs-stats]: http://nodejs.org/api/fs.html#fs_class_fs_stats

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc