@nodelib/fs.walk
Advanced tools
Comparing version 1.2.4 to 1.2.5
"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; |
@@ -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" | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
207664
90
2152
2
1
+ Added@nodelib/fs.scandir@2.1.4(transitive)
+ Added@nodelib/fs.stat@2.0.4(transitive)
- Removed@nodelib/fs.scandir@2.1.3(transitive)
- Removed@nodelib/fs.stat@2.0.3(transitive)
Updated@nodelib/fs.scandir@2.1.4