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

vinyl-contents-tostring

Package Overview
Dependencies
Maintainers
2
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 5.0.0 to 6.0.0

4

index.js

@@ -8,5 +8,5 @@ import { pipeline } from 'node:stream';

const { isVinyl } = Vinyl; // TODO: Use named imports when available
export default (file, enc) => (!isVinyl(file) // eslint-disable-line no-nested-ternary
export default (file, enc) => (!isVinyl(file)
? Promise.reject(new TypeError('First argument must be a Vinyl file'))
: file.isBuffer() // eslint-disable-line no-nested-ternary
: file.isBuffer()
? Promise.resolve(file.contents.toString(enc))

@@ -13,0 +13,0 @@ : file.isStream()

{
"name": "vinyl-contents-tostring",
"version": "5.0.0",
"version": "6.0.0",
"description": "Convert vinyl file content to string",

@@ -38,17 +38,18 @@ "type": "module",

"p-from-callback": "^1.0.0",
"vinyl": "^2.2.1"
"vinyl": "^3.0.0"
},
"devDependencies": {
"c8": "^7.11.3",
"c8": "^7.12.0",
"chai": "^4.3.6",
"chai-as-promised": "^7.1.1",
"env-test": "^1.0.0",
"eslint": "^8.16.0",
"eslint": "^8.24.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-mocha": "^10.0.5",
"eslint-plugin-n": "^15.2.0",
"eslint-plugin-unicorn": "^42.0.0",
"eslint-plugin-mocha": "^10.1.0",
"eslint-plugin-n": "^15.3.0",
"eslint-plugin-unicorn": "^43.0.2",
"mocha": "^10.0.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