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

fs-plus

Package Overview
Dependencies
Maintainers
5
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fs-plus - npm Package Compare versions

Comparing version 2.8.1 to 2.8.2

26

lib/fs-plus.js

@@ -498,12 +498,21 @@ (function() {

isCompressedExtension: function(ext) {
return COMPRESSED_EXTENSIONS.hasOwnProperty(ext);
if (ext == null) {
return false;
}
return COMPRESSED_EXTENSIONS.hasOwnProperty(ext.toLowerCase());
},
isImageExtension: function(ext) {
return IMAGE_EXTENSIONS.hasOwnProperty(ext);
if (ext == null) {
return false;
}
return IMAGE_EXTENSIONS.hasOwnProperty(ext.toLowerCase());
},
isPdfExtension: function(ext) {
return ext === '.pdf';
return (ext != null ? ext.toLowerCase() : void 0) === '.pdf';
},
isBinaryExtension: function(ext) {
return BINARY_EXTENSIONS.hasOwnProperty(ext);
if (ext == null) {
return false;
}
return BINARY_EXTENSIONS.hasOwnProperty(ext.toLowerCase());
},

@@ -517,3 +526,6 @@ isReadmePath: function(readmePath) {

isMarkdownExtension: function(ext) {
return MARKDOWN_EXTENSIONS.hasOwnProperty(ext);
if (ext == null) {
return false;
}
return MARKDOWN_EXTENSIONS.hasOwnProperty(ext.toLowerCase());
},

@@ -567,3 +579,3 @@ isCaseInsensitive: function() {

BINARY_EXTENSIONS = {
'.DS_Store': true,
'.ds_store': true,
'.a': true,

@@ -582,2 +594,3 @@ '.exe': true,

'.epub': true,
'.gem': true,
'.gz': true,

@@ -588,2 +601,3 @@ '.jar': true,

'.lzo': true,
'.rar': true,
'.tar': true,

@@ -590,0 +604,0 @@ '.tgz': true,

{
"name": "fs-plus",
"version": "2.8.1",
"version": "2.8.2",
"description": "node's fs with more helpers",

@@ -18,8 +18,3 @@ "main": "./lib/fs-plus.js",

"homepage": "http://atom.github.io/fs-plus",
"licenses": [
{
"type": "MIT",
"url": "http://github.com/atom/fs-plus/raw/master/LICENSE.md"
}
],
"license": "MIT",
"keywords": [

@@ -26,0 +21,0 @@ "fs",

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