Socket
Socket
Sign inDemoInstall

@nodelib/fs.walk

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nodelib/fs.walk - npm Package Compare versions

Comparing version 1.2.4 to 1.2.5

.eslintcache

1

out/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Settings = exports.walkStream = exports.walkSync = exports.walk = void 0;
const async_1 = require("./providers/async");

@@ -4,0 +5,0 @@ const stream_1 = require("./providers/stream");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SyncProvider = exports.StreamProvider = exports.AsyncProvider = void 0;
const async_1 = require("./async");

@@ -4,0 +5,0 @@ exports.AsyncProvider = async_1.default;

@@ -13,3 +13,7 @@ "use strict";

read: () => { },
destroy: this._reader.destroy.bind(this._reader)
destroy: () => {
if (!this._reader.isDestroyed) {
this._reader.destroy();
}
}
});

@@ -16,0 +20,0 @@ }

@@ -19,2 +19,3 @@ /// <reference types="node" />

read(): EventEmitter;
get isDestroyed(): boolean;
destroy(): void;

@@ -21,0 +22,0 @@ onEntry(callback: EntryEventCallback): void;

5

out/readers/async.js

@@ -31,2 +31,5 @@ "use strict";

}
get isDestroyed() {
return this._isDestroyed;
}
destroy() {

@@ -68,3 +71,3 @@ if (this._isDestroyed) {

_handleError(error) {
if (!common.isFatalError(this._settings, error)) {
if (this._isDestroyed || !common.isFatalError(this._settings, error)) {
return;

@@ -71,0 +74,0 @@ }

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.joinPathSegments = exports.replacePathSegmentSeparator = exports.isAppliedFilter = exports.isFatalError = void 0;
function isFatalError(settings, error) {

@@ -15,3 +16,3 @@ if (settings.errorFilter === null) {

function replacePathSegmentSeparator(filepath, separator) {
return filepath.split(/[\\/]/).join(separator);
return filepath.split(/[/\\]/).join(separator);
}

@@ -18,0 +19,0 @@ exports.replacePathSegmentSeparator = replacePathSegmentSeparator;

@@ -23,5 +23,5 @@ "use strict";

_getValue(option, value) {
return option === undefined ? value : option;
return option !== null && option !== void 0 ? option : value;
}
}
exports.default = Settings;
{
"name": "@nodelib/fs.walk",
"version": "1.2.4",
"version": "1.2.5",
"description": "A library for efficiently walking a directory recursively",

@@ -31,6 +31,6 @@ "license": "MIT",

"dependencies": {
"@nodelib/fs.scandir": "2.1.3",
"@nodelib/fs.scandir": "2.1.4",
"fastq": "^1.6.0"
},
"gitHead": "3b1ef7554ad7c061b3580858101d483fba847abf"
"gitHead": "cb5f7e893a986164c3b847a4f1faef6c54cadd68"
}
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