Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vinyl-file

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vinyl-file - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

5

index.js

@@ -5,2 +5,3 @@ 'use strict';

var stripBom = require('strip-bom');
var stripBomStream = require('strip-bom-stream');
var File = require('vinyl');

@@ -40,3 +41,3 @@

if (opts.buffer === false) {
file.contents = fs.createReadStream(pth).pipe(stripBom.stream());
file.contents = fs.createReadStream(pth).pipe(stripBomStream());
cb(null, file);

@@ -70,3 +71,3 @@ return;

contents = opts.buffer === false ?
fs.createReadStream(pth).pipe(stripBom.stream()) :
fs.createReadStream(pth).pipe(stripBomStream()) :
stripBom(fs.readFileSync(pth));

@@ -73,0 +74,0 @@ }

7

package.json
{
"name": "vinyl-file",
"version": "1.2.0",
"version": "1.2.1",
"description": "Create a vinyl file from an actual file",

@@ -32,4 +32,5 @@ "license": "MIT",

"dependencies": {
"graceful-fs": "^3.0.2",
"strip-bom": "^1.0.0",
"graceful-fs": "^4.1.2",
"strip-bom": "^2.0.0",
"strip-bom-stream": "^1.0.0",
"vinyl": "^0.5.0"

@@ -36,0 +37,0 @@ },

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