Comparing version 2.8.1 to 2.8.2
@@ -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", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
29452
640
1