vinyl-contents-tostring
Advanced tools
Comparing version 5.0.0 to 6.0.0
@@ -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" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4371
12
+ Addedbare-events@2.5.0(transitive)
+ Addedfast-fifo@1.3.2(transitive)
+ Addedqueue-tick@1.0.1(transitive)
+ Addedreplace-ext@2.0.0(transitive)
+ Addedstreamx@2.20.1(transitive)
+ Addedteex@1.0.1(transitive)
+ Addedtext-decoder@1.2.1(transitive)
+ Addedvinyl@3.0.0(transitive)
- Removedclone-buffer@1.0.0(transitive)
- Removedcloneable-readable@1.1.3(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removedisarray@1.0.0(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedreadable-stream@2.3.8(transitive)
- Removedreplace-ext@1.0.1(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedstring_decoder@1.1.1(transitive)
- Removedvinyl@2.2.1(transitive)
Updatedvinyl@^3.0.0