Socket
Socket
Sign inDemoInstall

fs-plus

Package Overview
Dependencies
Maintainers
10
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 3.0.2 to 3.1.0

18

lib/fs-plus.js
(function() {
var BINARY_EXTENSIONS, COMPRESSED_EXTENSIONS, IMAGE_EXTENSIONS, MARKDOWN_EXTENSIONS, Module, async, fs, fsPlus, isMoveTargetValid, isMoveTargetValidSync, isPathValid, lstatSyncNoException, mkdirp, path, rimraf, statSyncNoException, _,
var BINARY_EXTENSIONS, COMPRESSED_EXTENSIONS, IMAGE_EXTENSIONS, MARKDOWN_EXTENSIONS, Module, async, fs, fsPlus, isElectron3OrHigher, isMoveTargetValid, isMoveTargetValidSync, isPathValid, lstatSyncNoException, mkdirp, path, rimraf, statSyncNoException, _,
__slice = [].slice;

@@ -595,9 +595,21 @@

return !fsPlus.isCaseInsensitive();
},
statSyncNoException: function() {
var args;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
return statSyncNoException.apply(null, args);
},
lstatSyncNoException: function() {
var args;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
return lstatSyncNoException.apply(null, args);
}
};
isElectron3OrHigher = process.versions.electron && parseInt(process.versions.electron.split('.')[0]) >= 3;
statSyncNoException = function() {
var args, error;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
if (fs.statSyncNoException) {
if (fs.statSyncNoException && !isElectron3OrHigher) {
return fs.statSyncNoException.apply(fs, args);

@@ -617,3 +629,3 @@ } else {

args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
if (fs.lstatSyncNoException) {
if (fs.lstatSyncNoException && !isElectron3OrHigher) {
return fs.lstatSyncNoException.apply(fs, args);

@@ -620,0 +632,0 @@ } else {

2

package.json
{
"name": "fs-plus",
"version": "3.0.2",
"version": "3.1.0",
"description": "node's fs with more helpers",

@@ -5,0 +5,0 @@ "main": "./lib/fs-plus.js",

@@ -236,1 +236,9 @@ # fs plus

Returns `true` if case sensitive, `false` otherwise.
### `statSyncNoException(path[, options])`
Calls [`fs.statSync`](https://nodejs.org/docs/latest-v10.x/api/fs.html#fs_fs_statsync_path_options), catching all exceptions raised. This method calls `fs.statSyncNoException` when provided by the underlying `fs` module (Electron < 3.0).
Returns `fs.Stats` if the file exists, `undefined` otherwise.
### `lstatSyncNoException(path[, options])`
Calls [`fs.lstatSync`](https://nodejs.org/docs/latest-v10.x/api/fs.html#fs_fs_lstatsync_path_options), catching all exceptions raised. This method calls `fs.lstatSyncNoException` when provided by the underlying `fs` module (Electron < 3.0).
Returns `fs.Stats` if the file exists, `undefined` otherwise.
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