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.2.0 to 2.2.1

4

index.js

@@ -131,2 +131,6 @@ 'use strict';

if (this.isSymbolic()) {
file.symlink = this.symlink;
}
// Clone our custom properties

@@ -133,0 +137,0 @@ Object.keys(this).forEach(function(key) {

25

package.json
{
"name": "vinyl",
"version": "2.2.0",
"version": "2.2.1",
"description": "Virtual file format.",
"author": "Gulp Team <team@gulpjs.com> (http://gulpjs.com/)",
"author": "Gulp Team <team@gulpjs.com> (https://gulpjs.com/)",
"contributors": [

@@ -22,7 +22,7 @@ "Eric Schoffstall <yo@contra.io>",

"scripts": {
"lint": "eslint . && jscs index.js lib/ test/",
"lint": "eslint .",
"pretest": "npm run lint",
"test": "mocha --async-only",
"cover": "istanbul cover _mocha --report lcovonly",
"coveralls": "npm run cover && istanbul-coveralls"
"test": "nyc mocha --async-only",
"azure-pipelines": "nyc mocha --async-only --reporter xunit -O output=test.xunit",
"coveralls": "nyc report --reporter=text-lcov | coveralls"
},

@@ -38,11 +38,10 @@ "dependencies": {

"devDependencies": {
"eslint": "^1.7.3",
"eslint-config-gulp": "^2.0.0",
"coveralls": "github:phated/node-coveralls#2.x",
"eslint": "^2.13.1",
"eslint-config-gulp": "^3.0.1",
"expect": "^1.20.2",
"istanbul": "^0.4.3",
"istanbul-coveralls": "^1.0.3",
"jscs": "^2.3.5",
"jscs-preset-gulp": "^1.0.0",
"mississippi": "^1.2.0",
"mocha": "^2.4.5"
"mocha": "^3.0.0",
"nyc": "^10.3.2",
"safer-buffer": "^2.1.2"
},

@@ -49,0 +48,0 @@ "keywords": [

@@ -9,3 +9,3 @@ <p align="center">

[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url] [![AppVeyor Build Status][appveyor-image]][appveyor-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Gitter chat][gitter-image]][gitter-url]
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Azure Pipelines Build Status][azure-pipelines-image]][azure-pipelines-url] [![Travis Build Status][travis-image]][travis-url] [![AppVeyor Build Status][appveyor-image]][appveyor-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Gitter chat][gitter-image]][gitter-url]

@@ -31,3 +31,3 @@ Virtual file format.

path: '/test/file.js',
contents: new Buffer('var x = 123')
contents: Buffer.from('var x = 123')
});

@@ -413,5 +413,8 @@ ```

}
// `foo` won't be assigned to the object below
new SuperFile({ foo: "something" });
```
This makes properties `foo` and `_foo` ignored when cloning, and when passed in options to `constructor(options)` so they don't get assigned to the new object.
This makes properties `foo` and `_foo` skipped when passed in options to `constructor(options)` so they don't get assigned to the new object and override your custom implementation. They also won't be copied when cloning. __Note:__ The `_foo` and `foo` properties will still exist on the created/cloned object because you are assigning `_foo` in the constructor and `foo` is defined on the prototype.

@@ -435,8 +438,11 @@ Same goes for `clone()`. If you have your own internal stuff that needs special handling during cloning, you should extend it to do so.

[downloads-image]: http://img.shields.io/npm/dm/vinyl.svg
[downloads-image]: https://img.shields.io/npm/dm/vinyl.svg
[npm-url]: https://www.npmjs.com/package/vinyl
[npm-image]: http://img.shields.io/npm/v/vinyl.svg
[npm-image]: https://img.shields.io/npm/v/vinyl.svg
[azure-pipelines-url]: https://dev.azure.com/gulpjs/gulp/_build/latest?definitionId=$PROJECT_ID&branchName=master
[azure-pipelines-image]: https://dev.azure.com/gulpjs/gulp/_apis/build/status/vinyl?branchName=master
[travis-url]: https://travis-ci.org/gulpjs/vinyl
[travis-image]: http://img.shields.io/travis/gulpjs/vinyl.svg?label=travis-ci
[travis-image]: https://img.shields.io/travis/gulpjs/vinyl.svg?label=travis-ci

@@ -447,5 +453,5 @@ [appveyor-url]: https://ci.appveyor.com/project/gulpjs/vinyl

[coveralls-url]: https://coveralls.io/r/gulpjs/vinyl
[coveralls-image]: http://img.shields.io/coveralls/gulpjs/vinyl/master.svg
[coveralls-image]: https://img.shields.io/coveralls/gulpjs/vinyl/master.svg
[gitter-url]: https://gitter.im/gulpjs/gulp
[gitter-image]: https://badges.gitter.im/gulpjs/gulp.svg
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