package/.eslintcache000666 0000016322 3560116604 011553 0ustar00000000 000000 [{"D:\\work\\OpenSource\\nodelib\\packages\\fs\\fs.walk\\src\\index.spec.ts":"1","D:\\work\\OpenSource\\nodelib\\packages\\fs\\fs.walk\\src\\index.ts":"2","D:\\work\\OpenSource\\nodelib\\packages\\fs\\fs.walk\\src\\providers\\async.spec.ts":"3","D:\\work\\OpenSource\\nodelib\\packages\\fs\\fs.walk\\src\\providers\\async.ts":"4","D:\\work\\OpenSource\\nodelib\\packages\\fs\\fs.walk\\src\\providers\\index.ts":"5","D:\\work\\OpenSource\\nodelib\\packages\\fs\\fs.walk\\src\\providers\\stream.spec.ts":"6","D:\\work\\OpenSource\\nodelib\\packages\\fs\\fs.walk\\src\\providers\\stream.ts":"7","D:\\work\\OpenSource\\nodelib\\packages\\fs\\fs.walk\\src\\providers\\sync.spec.ts":"8","D:\\work\\OpenSource\\nodelib\\packages\\fs\\fs.walk\\src\\providers\\sync.ts":"9","D:\\work\\OpenSource\\nodelib\\packages\\fs\\fs.walk\\src\\readers\\async.spec.ts":"10","D:\\work\\OpenSource\\nodelib\\packages\\fs\\fs.walk\\src\\readers\\async.ts":"11","D:\\work\\OpenSource\\nodelib\\packages\\fs\\fs.walk\\src\\readers\\common.spec.ts":"12","D:\\work\\OpenSource\\nodelib\\packages\\fs\\fs.walk\\src\\readers\\common.ts":"13","D:\\work\\OpenSource\\nodelib\\packages\\fs\\fs.walk\\src\\readers\\reader.spec.ts":"14","D:\\work\\OpenSource\\nodelib\\packages\\fs\\fs.walk\\src\\readers\\reader.ts":"15","D:\\work\\OpenSource\\nodelib\\packages\\fs\\fs.walk\\src\\readers\\sync.spec.ts":"16","D:\\work\\OpenSource\\nodelib\\packages\\fs\\fs.walk\\src\\readers\\sync.ts":"17","D:\\work\\OpenSource\\nodelib\\packages\\fs\\fs.walk\\src\\settings.spec.ts":"18","D:\\work\\OpenSource\\nodelib\\packages\\fs\\fs.walk\\src\\settings.ts":"19","D:\\work\\OpenSource\\nodelib\\packages\\fs\\fs.walk\\src\\tests\\index.ts":"20","D:\\work\\OpenSource\\nodelib\\packages\\fs\\fs.walk\\src\\types\\index.ts":"21"},{"size":3469,"mtime":1609075886224,"results":"22","hashOfConfig":"23"},{"size":2038,"mtime":1609075886224,"results":"24","hashOfConfig":"23"},{"size":1632,"mtime":1609075886225,"results":"25","hashOfConfig":"23"},{"size":1152,"mtime":1609075886225,"results":"26","hashOfConfig":"23"},{"size":171,"mtime":1609075886225,"results":"27","hashOfConfig":"23"},{"size":2441,"mtime":1609075886226,"results":"28","hashOfConfig":"23"},{"size":829,"mtime":1609075886226,"results":"29","hashOfConfig":"23"},{"size":975,"mtime":1609075886226,"results":"30","hashOfConfig":"23"},{"size":385,"mtime":1609075886227,"results":"31","hashOfConfig":"23"},{"size":6779,"mtime":1609075886227,"results":"32","hashOfConfig":"23"},{"size":3209,"mtime":1609075886227,"results":"33","hashOfConfig":"23"},{"size":3379,"mtime":1609078441945,"results":"34","hashOfConfig":"23"},{"size":852,"mtime":1609078441946,"results":"35","hashOfConfig":"23"},{"size":762,"mtime":1609075886228,"results":"36","hashOfConfig":"23"},{"size":287,"mtime":1609075886228,"results":"37","hashOfConfig":"23"},{"size":4065,"mtime":1609075886229,"results":"38","hashOfConfig":"23"},{"size":1778,"mtime":1609075886229,"results":"39","hashOfConfig":"23"},{"size":1063,"mtime":1609075886229,"results":"40","hashOfConfig":"23"},{"size":1828,"mtime":1609075886230,"results":"41","hashOfConfig":"23"},{"size":972,"mtime":1609075886230,"results":"42","hashOfConfig":"23"},{"size":193,"mtime":1609075886230,"results":"43","hashOfConfig":"23"},{"filePath":"44","messages":"45","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1ha7fjd",{"filePath":"46","messages":"47","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"48","messages":"49","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"50","messages":"51","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"52","messages":"53","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"54","messages":"55","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"56","messages":"57","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"58","messages":"59","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"60","messages":"61","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"62","messages":"63","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"64","messages":"65","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"66","messages":"67","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"68","messages":"69","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"70","messages":"71","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"72","messages":"73","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"74","messages":"75","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"76","messages":"77","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"78","messages":"79","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"80","messages":"81","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"82","messages":"83","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"84","messages":"85","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"D:\\work\\OpenSource\\nodelib\\packages\\fs\\fs.walk\\src\\index.spec.ts",[],"D:\\work\\OpenSource\\nodelib\\packages\\fs\\fs.walk\\src\\index.ts",[],"D:\\work\\OpenSource\\nodelib\\packages\\fs\\fs.walk\\src\\providers\\async.spec.ts",[],"D:\\work\\OpenSource\\nodelib\\packages\\fs\\fs.walk\\src\\providers\\async.ts",[],"D:\\work\\OpenSource\\nodelib\\packages\\fs\\fs.walk\\src\\providers\\index.ts",[],"D:\\work\\OpenSource\\nodelib\\packages\\fs\\fs.walk\\src\\providers\\stream.spec.ts",[],"D:\\work\\OpenSource\\nodelib\\packages\\fs\\fs.walk\\src\\providers\\stream.ts",[],"D:\\work\\OpenSource\\nodelib\\packages\\fs\\fs.walk\\src\\providers\\sync.spec.ts",[],"D:\\work\\OpenSource\\nodelib\\packages\\fs\\fs.walk\\src\\providers\\sync.ts",[],"D:\\work\\OpenSource\\nodelib\\packages\\fs\\fs.walk\\src\\readers\\async.spec.ts",[],"D:\\work\\OpenSource\\nodelib\\packages\\fs\\fs.walk\\src\\readers\\async.ts",[],"D:\\work\\OpenSource\\nodelib\\packages\\fs\\fs.walk\\src\\readers\\common.spec.ts",[],"D:\\work\\OpenSource\\nodelib\\packages\\fs\\fs.walk\\src\\readers\\common.ts",[],"D:\\work\\OpenSource\\nodelib\\packages\\fs\\fs.walk\\src\\readers\\reader.spec.ts",[],"D:\\work\\OpenSource\\nodelib\\packages\\fs\\fs.walk\\src\\readers\\reader.ts",[],"D:\\work\\OpenSource\\nodelib\\packages\\fs\\fs.walk\\src\\readers\\sync.spec.ts",[],"D:\\work\\OpenSource\\nodelib\\packages\\fs\\fs.walk\\src\\readers\\sync.ts",[],"D:\\work\\OpenSource\\nodelib\\packages\\fs\\fs.walk\\src\\settings.spec.ts",[],"D:\\work\\OpenSource\\nodelib\\packages\\fs\\fs.walk\\src\\settings.ts",[],"D:\\work\\OpenSource\\nodelib\\packages\\fs\\fs.walk\\src\\tests\\index.ts",[],"D:\\work\\OpenSource\\nodelib\\packages\\fs\\fs.walk\\src\\types\\index.ts",[]]package/LICENSE000666 0000002067 3560116604 010276 0ustar00000000 000000 The MIT License (MIT) Copyright (c) Denis Malinochkin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. package/out/providers/async.js000666 0000001650 3560116604 013565 0ustar00000000 000000 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const async_1 = require("../readers/async"); class AsyncProvider { constructor(_root, _settings) { this._root = _root; this._settings = _settings; this._reader = new async_1.default(this._root, this._settings); this._storage = new Set(); } read(callback) { this._reader.onError((error) => { callFailureCallback(callback, error); }); this._reader.onEntry((entry) => { this._storage.add(entry); }); this._reader.onEnd(() => { callSuccessCallback(callback, [...this._storage]); }); this._reader.read(); } } exports.default = AsyncProvider; function callFailureCallback(callback, error) { callback(error); } function callSuccessCallback(callback, entries) { callback(null, entries); } package/out/readers/async.js000666 0000006203 3560116604 013174 0ustar00000000 000000 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const events_1 = require("events"); const fsScandir = require("@nodelib/fs.scandir"); const fastq = require("fastq"); const common = require("./common"); const reader_1 = require("./reader"); class AsyncReader extends reader_1.default { constructor(_root, _settings) { super(_root, _settings); this._settings = _settings; this._scandir = fsScandir.scandir; this._emitter = new events_1.EventEmitter(); this._queue = fastq(this._worker.bind(this), this._settings.concurrency); this._isFatalError = false; this._isDestroyed = false; this._queue.drain = () => { if (!this._isFatalError) { this._emitter.emit('end'); } }; } read() { this._isFatalError = false; this._isDestroyed = false; setImmediate(() => { this._pushToQueue(this._root, this._settings.basePath); }); return this._emitter; } get isDestroyed() { return this._isDestroyed; } destroy() { if (this._isDestroyed) { throw new Error('The reader is already destroyed'); } this._isDestroyed = true; this._queue.killAndDrain(); } onEntry(callback) { this._emitter.on('entry', callback); } onError(callback) { this._emitter.once('error', callback); } onEnd(callback) { this._emitter.once('end', callback); } _pushToQueue(directory, base) { const queueItem = { directory, base }; this._queue.push(queueItem, (error) => { if (error !== null) { this._handleError(error); } }); } _worker(item, done) { this._scandir(item.directory, this._settings.fsScandirSettings, (error, entries) => { if (error !== null) { return done(error, undefined); } for (const entry of entries) { this._handleEntry(entry, item.base); } done(null, undefined); }); } _handleError(error) { if (this._isDestroyed || !common.isFatalError(this._settings, error)) { return; } this._isFatalError = true; this._isDestroyed = true; this._emitter.emit('error', error); } _handleEntry(entry, base) { if (this._isDestroyed || this._isFatalError) { return; } const fullpath = entry.path; if (base !== undefined) { entry.path = common.joinPathSegments(base, entry.name, this._settings.pathSegmentSeparator); } if (common.isAppliedFilter(this._settings.entryFilter, entry)) { this._emitEntry(entry); } if (entry.dirent.isDirectory() && common.isAppliedFilter(this._settings.deepFilter, entry)) { this._pushToQueue(fullpath, entry.path); } } _emitEntry(entry) { this._emitter.emit('entry', entry); } } exports.default = AsyncReader; package/out/providers/async.spec.js000666 0000003375 3560116604 014524 0ustar00000000 000000 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const assert = require("assert"); const sinon = require("sinon"); const settings_1 = require("../settings"); const tests = require("../tests"); const async_1 = require("./async"); class TestProvider extends async_1.default { constructor(_root, _settings = new settings_1.default()) { super(_root, _settings); this._reader = new tests.TestAsyncReader(); } get reader() { return this._reader; } } describe('Providers → Async', () => { describe('.read', () => { it('should call reader function with correct set of arguments', () => { const provider = new TestProvider('directory'); const fakeCallback = sinon.stub(); provider.read(fakeCallback); assert.ok(provider.reader.read.called); }); it('should call callback with error for failed launch', () => { const provider = new TestProvider('directory'); const fakeCallback = sinon.stub(); provider.reader.onError.yields(tests.EPERM_ERRNO); provider.read(fakeCallback); assert.deepStrictEqual(fakeCallback.args, [[tests.EPERM_ERRNO]]); }); it('should push entries to storage and call callback with array of entries', () => { const provider = new TestProvider('directory'); const fakeEntry = tests.buildFakeFileEntry(); const fakeCallback = sinon.stub(); provider.reader.onEntry.yields(fakeEntry); provider.reader.onEnd.yields(); provider.read(fakeCallback); assert.deepStrictEqual(fakeCallback.args, [[null, [fakeEntry]]]); }); }); }); package/out/readers/async.spec.js000666 0000017564 3560116604 014141 0ustar00000000 000000 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const assert = require("assert"); const path = require("path"); const sinon = require("sinon"); const settings_1 = require("../settings"); const tests = require("../tests"); const async_1 = require("./async"); class TestReader extends async_1.default { constructor(_root, _settings = new settings_1.default()) { super(_root, _settings); this._scandir = sinon.stub(); } get scandir() { return this._scandir; } } describe('Readers → Async', () => { describe('.read', () => { it('should emit "error" event when the first call of scandir is broken', (done) => { const reader = new TestReader('non-exist-directory'); reader.scandir.yields(tests.EPERM_ERRNO); reader.onError((error) => { assert.ok(error); done(); }); reader.read(); }); it('should emit "end" event when the first call of scandir is broken but this error can be suppressed', (done) => { const settings = new settings_1.default({ errorFilter: (error) => error.code === 'EPERM' }); const reader = new TestReader('non-exist-directory', settings); reader.scandir.yields(tests.EPERM_ERRNO); reader.onEnd(() => { done(); }); reader.read(); }); it('should do not emit events after first broken scandir call', (done) => { const reader = new TestReader('directory'); const firstFakeDirectoryEntry = tests.buildFakeDirectoryEntry({ name: 'a', path: 'directory/a' }); const secondFakeDirectoryEntry = tests.buildFakeDirectoryEntry({ name: 'b', path: 'directory/b' }); reader.scandir.onFirstCall().yields(null, [firstFakeDirectoryEntry, secondFakeDirectoryEntry]); reader.scandir.onSecondCall().yieldsAsync(tests.EPERM_ERRNO); reader.scandir.onThirdCall().yieldsAsync(tests.EPERM_ERRNO); /** * If the behavior is broken, then a third scandir call will trigger an unhandled error. */ reader.onError((error) => { assert.ok(error); done(); }); reader.read(); }); it('should return entries', (done) => { const reader = new TestReader('directory'); const fakeDirectoryEntry = tests.buildFakeDirectoryEntry(); const fakeFileEntry = tests.buildFakeFileEntry(); reader.scandir.onFirstCall().yields(null, [fakeDirectoryEntry]); reader.scandir.onSecondCall().yields(null, [fakeFileEntry]); const entries = []; reader.onEntry((entry) => entries.push(entry)); reader.onEnd(() => { assert.deepStrictEqual(entries, [fakeDirectoryEntry, fakeFileEntry]); done(); }); reader.read(); }); it('should push to results only directories', (done) => { const settings = new settings_1.default({ entryFilter: (entry) => !entry.dirent.isFile() }); const reader = new TestReader('directory', settings); const fakeDirectoryEntry = tests.buildFakeDirectoryEntry(); const fakeFileEntry = tests.buildFakeFileEntry(); reader.scandir.onFirstCall().yields(null, [fakeDirectoryEntry]); reader.scandir.onSecondCall().yields(null, [fakeFileEntry]); const entries = []; reader.onEntry((entry) => entries.push(entry)); reader.onEnd(() => { assert.deepStrictEqual(entries, [fakeDirectoryEntry]); done(); }); reader.read(); }); it('should do not read root directory', (done) => { const settings = new settings_1.default({ deepFilter: () => false }); const reader = new TestReader('directory', settings); const fakeDirectoryEntry = tests.buildFakeDirectoryEntry(); const fakeFileEntry = tests.buildFakeFileEntry(); reader.scandir.onFirstCall().yields(null, [fakeDirectoryEntry]); reader.scandir.onSecondCall().yields(null, [fakeFileEntry]); const entries = []; reader.onEntry((entry) => entries.push(entry)); reader.onEnd(() => { assert.deepStrictEqual(entries, [fakeDirectoryEntry]); done(); }); reader.read(); }); it('should set base path to entry when the `basePath` option is exist', (done) => { const settings = new settings_1.default({ basePath: 'base' }); const reader = new TestReader('directory', settings); const fakeDirectoryEntry = tests.buildFakeDirectoryEntry(); const fakeFileEntry = tests.buildFakeFileEntry(); reader.scandir.onFirstCall().yields(null, [fakeDirectoryEntry]); reader.scandir.onSecondCall().yields(null, [fakeFileEntry]); const entries = []; reader.onEntry((entry) => entries.push(entry)); reader.onEnd(() => { assert.strictEqual(entries[0].path, path.join('base', fakeDirectoryEntry.name)); assert.strictEqual(entries[1].path, path.join('base', 'fake', fakeFileEntry.name)); done(); }); reader.read(); }); it('should set base path to entry when the `basePath` option is exist and value is an empty string', (done) => { const settings = new settings_1.default({ basePath: '' }); const reader = new TestReader('directory', settings); const fakeDirectoryEntry = tests.buildFakeDirectoryEntry(); const fakeFileEntry = tests.buildFakeFileEntry(); reader.scandir.onFirstCall().yields(null, [fakeDirectoryEntry]); reader.scandir.onSecondCall().yields(null, [fakeFileEntry]); const entries = []; reader.onEntry((entry) => entries.push(entry)); reader.onEnd(() => { assert.strictEqual(entries[0].path, path.join(fakeDirectoryEntry.name)); assert.strictEqual(entries[1].path, path.join('fake', fakeFileEntry.name)); done(); }); reader.read(); }); }); describe('.destroy', () => { it('should do not emit entries after destroy', (done) => { const reader = new TestReader('directory'); const firstFakeDirectoryEntry = tests.buildFakeDirectoryEntry({ name: 'a', path: 'directory/a' }); const fakeFileEntry = tests.buildFakeFileEntry(); reader.scandir.onFirstCall().yields(null, [firstFakeDirectoryEntry]); reader.scandir.onSecondCall().yields(null, [fakeFileEntry]); reader.onEntry((entry) => { if (entry.name === 'a') { reader.destroy(); } else { assert.fail('should do not emit entries after destroy'); } }); reader.onEnd(() => { done(); }); reader.read(); }); it('should mark stream as "destroyed" after first destroy', () => { const reader = new TestReader('directory'); reader.destroy(); assert.ok(reader.isDestroyed); }); it('should throw an error when trying to destroy reader twice', () => { const reader = new TestReader('directory'); const expectedErrorMessageRe = /The reader is already destroyed/; reader.destroy(); assert.throws(() => reader.destroy(), expectedErrorMessageRe); }); }); }); package/out/readers/common.js000666 0000002073 3560116604 013350 0ustar00000000 000000 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.joinPathSegments = exports.replacePathSegmentSeparator = exports.isAppliedFilter = exports.isFatalError = void 0; function isFatalError(settings, error) { if (settings.errorFilter === null) { return true; } return !settings.errorFilter(error); } exports.isFatalError = isFatalError; function isAppliedFilter(filter, value) { return filter === null || filter(value); } exports.isAppliedFilter = isAppliedFilter; function replacePathSegmentSeparator(filepath, separator) { return filepath.split(/[/\\]/).join(separator); } exports.replacePathSegmentSeparator = replacePathSegmentSeparator; function joinPathSegments(a, b, separator) { if (a === '') { return b; } /** * The correct handling of cases when the first segment is a root (`/`, `C:/`) or UNC path (`//?/C:/`). */ if (a.endsWith(separator)) { return a + b; } return a + separator + b; } exports.joinPathSegments = joinPathSegments; package/out/readers/common.spec.js000666 0000010105 3560116604 014274 0ustar00000000 000000 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const assert = require("assert"); const path = require("path"); const settings_1 = require("../settings"); const tests = require("../tests"); const common = require("./common"); describe('Readers → Common', () => { describe('.isFatalError', () => { it('should return true when filter is not defined', () => { const settings = new settings_1.default(); const actual = common.isFatalError(settings, tests.EPERM_ERRNO); assert.ok(actual); }); it('should return true when the error cannot be suppressed', () => { const settings = new settings_1.default({ errorFilter: (error) => error.code === 'ENOENT' }); const actual = common.isFatalError(settings, tests.EPERM_ERRNO); assert.ok(actual); }); it('should return false when the error can be suppressed', () => { const settings = new settings_1.default({ errorFilter: (error) => error.code === 'EPERM' }); const actual = common.isFatalError(settings, tests.EPERM_ERRNO); assert.ok(!actual); }); }); describe('.isAppliedFilter', () => { it('should return true when the filter is not defined', () => { const settings = new settings_1.default(); const entry = tests.buildFakeFileEntry(); const actual = common.isAppliedFilter(settings.entryFilter, entry); assert.ok(actual); }); it('should return true when the entry will be applied', () => { const settings = new settings_1.default({ entryFilter: (entry) => entry.name === 'fake.txt' }); const fakeEntry = tests.buildFakeFileEntry(); const actual = common.isAppliedFilter(settings.entryFilter, fakeEntry); assert.ok(actual); }); it('should return false when the entry will be skipped', () => { const settings = new settings_1.default({ entryFilter: (entry) => entry.name !== 'fake.txt' }); const fakeEntry = tests.buildFakeFileEntry(); const actual = common.isAppliedFilter(settings.entryFilter, fakeEntry); assert.ok(!actual); }); }); describe('.replacePathSegmentSeparator', () => { it('should replace path segment separator', () => { const filepath = path.join('directory', 'file.txt'); const expected = 'directory_file.txt'; const actual = common.replacePathSegmentSeparator(filepath, '_'); assert.strictEqual(actual, expected); }); }); describe('.joinPathSegments', () => { it('should return concatenated string', () => { const expected = 'a&b'; const actual = common.joinPathSegments('a', 'b', '&'); assert.strictEqual(actual, expected); }); it('should return second part of path when the first path is an empty string', () => { const expected = 'b'; const actual = common.joinPathSegments('', 'b', '&'); assert.strictEqual(actual, expected); }); it('should return correct string when the first segment ens with the separator symbol', () => { // Unix assert.strictEqual(common.joinPathSegments('/', 'a', '/'), '/a'); assert.strictEqual(common.joinPathSegments('//', 'a', '/'), '//a'); assert.strictEqual(common.joinPathSegments('/a/', 'b', '/'), '/a/b'); // Windows assert.strictEqual(common.joinPathSegments('C:/', 'Users', '/'), 'C:/Users'); assert.strictEqual(common.joinPathSegments('C:\\', 'Users', '\\'), 'C:\\Users'); assert.strictEqual(common.joinPathSegments('//?/C:/', 'Users', '/'), '//?/C:/Users'); assert.strictEqual(common.joinPathSegments('\\\\?\\C:\\', 'Users', '\\'), '\\\\?\\C:\\Users'); }); }); }); package/out/index.js000666 0000002606 3560116604 011544 0ustar00000000 000000 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Settings = exports.walkStream = exports.walkSync = exports.walk = void 0; const async_1 = require("./providers/async"); const stream_1 = require("./providers/stream"); const sync_1 = require("./providers/sync"); const settings_1 = require("./settings"); exports.Settings = settings_1.default; function walk(directory, optionsOrSettingsOrCallback, callback) { if (typeof optionsOrSettingsOrCallback === 'function') { return new async_1.default(directory, getSettings()).read(optionsOrSettingsOrCallback); } new async_1.default(directory, getSettings(optionsOrSettingsOrCallback)).read(callback); } exports.walk = walk; function walkSync(directory, optionsOrSettings) { const settings = getSettings(optionsOrSettings); const provider = new sync_1.default(directory, settings); return provider.read(); } exports.walkSync = walkSync; function walkStream(directory, optionsOrSettings) { const settings = getSettings(optionsOrSettings); const provider = new stream_1.default(directory, settings); return provider.read(); } exports.walkStream = walkStream; function getSettings(settingsOrOptions = {}) { if (settingsOrOptions instanceof settings_1.default) { return settingsOrOptions; } return new settings_1.default(settingsOrOptions); } package/out/providers/index.js000666 0000000615 3560116604 013557 0ustar00000000 000000 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SyncProvider = exports.StreamProvider = exports.AsyncProvider = void 0; const async_1 = require("./async"); exports.AsyncProvider = async_1.default; const stream_1 = require("./stream"); exports.StreamProvider = stream_1.default; const sync_1 = require("./sync"); exports.SyncProvider = sync_1.default; package/out/tests/index.js000666 0000002454 3560116604 012707 0ustar00000000 000000 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TestSyncReader = exports.TestAsyncReader = exports.EPERM_ERRNO = exports.buildFakeDirectoryEntry = exports.buildFakeFileEntry = void 0; const sinon = require("sinon"); const fs_macchiato_1 = require("../../../fs.macchiato"); function buildFakeFileEntry(entry) { return Object.assign({ name: 'fake.txt', path: 'directory/fake.txt', dirent: new fs_macchiato_1.Dirent({ name: 'fake.txt' }) }, entry); } exports.buildFakeFileEntry = buildFakeFileEntry; function buildFakeDirectoryEntry(entry) { return Object.assign({ name: 'fake', path: 'directory/fake', dirent: new fs_macchiato_1.Dirent({ name: 'fake', isFile: false, isDirectory: true }) }, entry); } exports.buildFakeDirectoryEntry = buildFakeDirectoryEntry; exports.EPERM_ERRNO = { name: 'EPERM', code: 'EPERM', message: 'EPERM' }; class TestAsyncReader { constructor() { this.read = sinon.stub(); this.destroy = sinon.stub(); this.onError = sinon.stub(); this.onEntry = sinon.stub(); this.onEnd = sinon.stub(); } } exports.TestAsyncReader = TestAsyncReader; class TestSyncReader { constructor() { this.read = sinon.stub(); } } exports.TestSyncReader = TestSyncReader; package/out/types/index.js000666 0000000117 3560116604 012703 0ustar00000000 000000 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); package/out/index.spec.js000666 0000010030 3560116604 012463 0ustar00000000 000000 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const assert = require("assert"); const fs = require("fs"); const rimraf = require("rimraf"); const _1 = require("."); const entryFilter = (entry) => !entry.dirent.isDirectory(); function streamToPromise(stream) { const entries = []; return new Promise((resolve, reject) => { stream.on('data', (entry) => entries.push(entry)); stream.once('error', reject); stream.once('end', () => resolve(entries)); }); } describe('Package', () => { before(() => { rimraf.sync('fixtures'); fs.mkdirSync('fixtures'); fs.writeFileSync('fixtures/file.txt', ''); fs.mkdirSync('fixtures/nested'); fs.writeFileSync('fixtures/nested/file.txt', ''); }); after(() => { rimraf.sync('fixtures'); }); describe('.walk', () => { it('should throw an error for non-exist directory', (done) => { _1.walk('non-exist-directory', (error, entries) => { assert.strictEqual(error.code, 'ENOENT'); assert.strictEqual(entries, undefined); done(); }); }); it('should work without options or settings', (done) => { _1.walk('fixtures', (error, entries) => { assert.strictEqual(error, null); assert.strictEqual(entries.length, 3); done(); }); }); it('should work with options', (done) => { _1.walk('fixtures', { entryFilter }, (error, entries) => { assert.strictEqual(error, null); assert.strictEqual(entries.length, 2); done(); }); }); it('should work with settings', (done) => { const settings = new _1.Settings({ entryFilter }); _1.walk('fixtures', settings, (error, entries) => { assert.strictEqual(error, null); assert.strictEqual(entries.length, 2); done(); }); }); }); describe('.walkStream', () => { it('should throw an error for non-exist directory', async () => { const stream = _1.walkStream('non-exist-directory'); await assert.rejects(() => streamToPromise(stream), (error) => error.code === 'ENOENT'); }); it('should work without options or settings', async () => { const stream = _1.walkStream('fixtures'); const actual = await streamToPromise(stream); assert.strictEqual(actual.length, 3); }); it('should work with options', async () => { const stream = _1.walkStream('fixtures', { entryFilter }); const actual = await streamToPromise(stream); assert.strictEqual(actual.length, 2); }); it('should work with settings', async () => { const settings = new _1.Settings({ entryFilter }); const stream = _1.walkStream('fixtures', settings); const actual = await streamToPromise(stream); assert.strictEqual(actual.length, 2); }); }); describe('.walkSync', () => { it('should throw an error for non-exist directory', () => { const matcher = (error) => error.code === 'ENOENT'; assert.throws(() => _1.walkSync('non-exist-directory'), matcher); }); it('should work without options or settings', () => { const actual = _1.walkSync('fixtures'); assert.strictEqual(actual.length, 3); }); it('should work with options', () => { const actual = _1.walkSync('fixtures', { entryFilter }); assert.strictEqual(actual.length, 2); }); it('should work with settings', () => { const settings = new _1.Settings({ entryFilter }); const actual = _1.walkSync('fixtures', settings); assert.strictEqual(actual.length, 2); }); }); }); package/out/readers/reader.js000666 0000000561 3560116604 013322 0ustar00000000 000000 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const common = require("./common"); class Reader { constructor(_root, _settings) { this._root = _root; this._settings = _settings; this._root = common.replacePathSegmentSeparator(_root, _settings.pathSegmentSeparator); } } exports.default = Reader; package/out/readers/reader.spec.js000666 0000001620 3560116604 014250 0ustar00000000 000000 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const assert = require("assert"); const path = require("path"); const settings_1 = require("../settings"); const reader_1 = require("./reader"); class TestReader extends reader_1.default { get root() { return this._root; } } function getReader(root, options = {}) { return new TestReader(root, new settings_1.default(options)); } describe('Readers → Reader', () => { describe('Constructor', () => { it('should return root path with replaced path segment separators', () => { const root = path.join('directory', 'file.txt'); const reader = getReader(root, { pathSegmentSeparator: '_' }); const expected = 'directory_file.txt'; const actual = reader.root; assert.strictEqual(actual, expected); }); }); }); package/out/settings.js000666 0000002354 3560116604 012275 0ustar00000000 000000 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const path = require("path"); const fsScandir = require("@nodelib/fs.scandir"); class Settings { constructor(_options = {}) { this._options = _options; this.basePath = this._getValue(this._options.basePath, undefined); this.concurrency = this._getValue(this._options.concurrency, Infinity); this.deepFilter = this._getValue(this._options.deepFilter, null); this.entryFilter = this._getValue(this._options.entryFilter, null); this.errorFilter = this._getValue(this._options.errorFilter, null); this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path.sep); this.fsScandirSettings = new fsScandir.Settings({ followSymbolicLinks: this._options.followSymbolicLinks, fs: this._options.fs, pathSegmentSeparator: this._options.pathSegmentSeparator, stats: this._options.stats, throwErrorOnBrokenSymbolicLink: this._options.throwErrorOnBrokenSymbolicLink }); } _getValue(option, value) { return option !== null && option !== void 0 ? option : value; } } exports.default = Settings; package/out/settings.spec.js000666 0000002434 3560116604 013225 0ustar00000000 000000 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const assert = require("assert"); const fsScandir = require("@nodelib/fs.scandir"); const settings_1 = require("./settings"); describe('Settings', () => { it('should return instance with default values', () => { const fsWalkSettings = new settings_1.default(); const fsScandirSettings = new fsScandir.Settings({ followSymbolicLinks: undefined, fs: undefined, pathSegmentSeparator: undefined, stats: undefined, throwErrorOnBrokenSymbolicLink: undefined }); assert.strictEqual(fsWalkSettings.basePath, undefined); assert.strictEqual(fsWalkSettings.concurrency, Infinity); assert.strictEqual(fsWalkSettings.deepFilter, null); assert.strictEqual(fsWalkSettings.entryFilter, null); assert.strictEqual(fsWalkSettings.errorFilter, null); assert.deepStrictEqual(fsWalkSettings.fsScandirSettings, fsScandirSettings); }); it('should return instance with custom values', () => { const filter = () => true; const fsWalkSettings = new settings_1.default({ entryFilter: filter }); assert.strictEqual(fsWalkSettings.entryFilter, filter); }); }); package/out/providers/stream.js000666 0000002037 3560116604 013743 0ustar00000000 000000 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const stream_1 = require("stream"); const async_1 = require("../readers/async"); class StreamProvider { constructor(_root, _settings) { this._root = _root; this._settings = _settings; this._reader = new async_1.default(this._root, this._settings); this._stream = new stream_1.Readable({ objectMode: true, read: () => { }, destroy: () => { if (!this._reader.isDestroyed) { this._reader.destroy(); } } }); } read() { this._reader.onError((error) => { this._stream.emit('error', error); }); this._reader.onEntry((entry) => { this._stream.push(entry); }); this._reader.onEnd(() => { this._stream.push(null); }); this._reader.read(); return this._stream; } } exports.default = StreamProvider; package/out/providers/stream.spec.js000666 0000005133 3560116604 014674 0ustar00000000 000000 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const assert = require("assert"); const stream_1 = require("stream"); const sinon = require("sinon"); const settings_1 = require("../settings"); const tests = require("../tests"); const stream_2 = require("./stream"); class TestProvider extends stream_2.default { constructor(_root, _settings = new settings_1.default()) { super(_root, _settings); this._reader = new tests.TestAsyncReader(); this._stream.emit = sinon.stub(); this._stream.push = sinon.stub(); } get reader() { return this._reader; } get stream() { return this._stream; } } describe('Providers → Stream', () => { describe('.read', () => { it('should return stream', () => { const provider = new TestProvider('directory'); const stream = provider.read(); assert.ok(stream instanceof stream_1.Readable); }); it('should call reader function with correct set of arguments', () => { const provider = new TestProvider('directory'); provider.read(); assert.ok(provider.reader.read.called); }); it('should re-emit the "error" event from reader', () => { const provider = new TestProvider('directory'); provider.reader.onError.yields(tests.EPERM_ERRNO); provider.read(); assert.deepStrictEqual(provider.stream.emit.args, [['error', tests.EPERM_ERRNO]]); }); it('should call the "push" method with entry value for the "entry" event from reader', () => { const provider = new TestProvider('directory'); const fakeEntry = tests.buildFakeFileEntry(); provider.reader.onEntry.yields(fakeEntry); provider.read(); assert.deepStrictEqual(provider.stream.push.args, [[fakeEntry]]); }); it('should call the "push" method with "null" value for the "end" event from reader', () => { const provider = new TestProvider('directory'); provider.reader.onEnd.yields(); provider.read(); assert.deepStrictEqual(provider.stream.push.args, [[null]]); }); it('should do not destroy reader when it is already destroyed', () => { const provider = new TestProvider('directory'); const stream = provider.read(); stream.destroy(); assert.ok(stream.destroyed); assert.doesNotThrow(() => stream.destroy()); }); }); }); package/out/providers/sync.js000666 0000000645 3560116604 013427 0ustar00000000 000000 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const sync_1 = require("../readers/sync"); class SyncProvider { constructor(_root, _settings) { this._root = _root; this._settings = _settings; this._reader = new sync_1.default(this._root, this._settings); } read() { return this._reader.read(); } } exports.default = SyncProvider; package/out/readers/sync.js000666 0000003634 3560116604 013040 0ustar00000000 000000 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const fsScandir = require("@nodelib/fs.scandir"); const common = require("./common"); const reader_1 = require("./reader"); class SyncReader extends reader_1.default { constructor() { super(...arguments); this._scandir = fsScandir.scandirSync; this._storage = new Set(); this._queue = new Set(); } read() { this._pushToQueue(this._root, this._settings.basePath); this._handleQueue(); return [...this._storage]; } _pushToQueue(directory, base) { this._queue.add({ directory, base }); } _handleQueue() { for (const item of this._queue.values()) { this._handleDirectory(item.directory, item.base); } } _handleDirectory(directory, base) { try { const entries = this._scandir(directory, this._settings.fsScandirSettings); for (const entry of entries) { this._handleEntry(entry, base); } } catch (error) { this._handleError(error); } } _handleError(error) { if (!common.isFatalError(this._settings, error)) { return; } throw error; } _handleEntry(entry, base) { const fullpath = entry.path; if (base !== undefined) { entry.path = common.joinPathSegments(base, entry.name, this._settings.pathSegmentSeparator); } if (common.isAppliedFilter(this._settings.entryFilter, entry)) { this._pushToStorage(entry); } if (entry.dirent.isDirectory() && common.isAppliedFilter(this._settings.deepFilter, entry)) { this._pushToQueue(fullpath, entry.path); } } _pushToStorage(entry) { this._storage.add(entry); } } exports.default = SyncReader; package/out/providers/sync.spec.js000666 0000001771 3560116604 014361 0ustar00000000 000000 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const assert = require("assert"); const settings_1 = require("../settings"); const tests = require("../tests"); const sync_1 = require("./sync"); class TestProvider extends sync_1.default { constructor(_root, _settings = new settings_1.default()) { super(_root, _settings); this._reader = new tests.TestSyncReader(); } get reader() { return this._reader; } } describe('Providers → Sync', () => { describe('.read', () => { it('should call reader function with correct set of arguments and got result', () => { const provider = new TestProvider('directory'); const fakeEntry = tests.buildFakeFileEntry(); provider.reader.read.returns([fakeEntry]); const actual = provider.read(); assert.deepStrictEqual(actual, [fakeEntry]); assert.ok(provider.reader.read.called); }); }); }); package/out/readers/sync.spec.js000666 0000011301 3560116604 013757 0ustar00000000 000000 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const assert = require("assert"); const path = require("path"); const sinon = require("sinon"); const settings_1 = require("../settings"); const tests = require("../tests"); const sync_1 = require("./sync"); class TestReader extends sync_1.default { constructor(_root, _settings = new settings_1.default()) { super(_root, _settings); this._scandir = sinon.stub(); } get scandir() { return this._scandir; } } describe('Readers → Sync', () => { describe('.read', () => { it('should throw an error when the first call of scandir is broken', () => { const reader = new TestReader('non-exist-directory'); reader.scandir.throws(tests.EPERM_ERRNO); assert.throws(() => reader.read(), { code: 'EPERM' }); }); it('should return empty array when the first call of scandir is broken but this error can be suppressed', () => { const settings = new settings_1.default({ errorFilter: (error) => error.code === 'EPERM' }); const reader = new TestReader('non-exist-directory', settings); reader.scandir.throws(tests.EPERM_ERRNO); const actual = reader.read(); assert.deepStrictEqual(actual, []); }); it('should return entries', () => { const reader = new TestReader('directory'); const fakeDirectoryEntry = tests.buildFakeDirectoryEntry(); const fakeFileEntry = tests.buildFakeFileEntry(); reader.scandir.onFirstCall().returns([fakeDirectoryEntry]); reader.scandir.onSecondCall().returns([fakeFileEntry]); const expected = [fakeDirectoryEntry, fakeFileEntry]; const actual = reader.read(); assert.deepStrictEqual(actual, expected); }); it('should push to results only directories', () => { const settings = new settings_1.default({ entryFilter: (entry) => !entry.dirent.isFile() }); const reader = new TestReader('directory', settings); const fakeDirectoryEntry = tests.buildFakeDirectoryEntry(); const fakeFileEntry = tests.buildFakeFileEntry(); reader.scandir.onFirstCall().returns([fakeDirectoryEntry]); reader.scandir.onSecondCall().returns([fakeFileEntry]); const expected = [fakeDirectoryEntry]; const actual = reader.read(); assert.deepStrictEqual(actual, expected); }); it('should do not read root directory', () => { const settings = new settings_1.default({ deepFilter: () => false }); const reader = new TestReader('directory', settings); const fakeDirectoryEntry = tests.buildFakeDirectoryEntry(); const fakeFileEntry = tests.buildFakeFileEntry(); reader.scandir.onFirstCall().returns([fakeDirectoryEntry]); reader.scandir.onSecondCall().returns([fakeFileEntry]); const expected = [fakeDirectoryEntry]; const actual = reader.read(); assert.deepStrictEqual(actual, expected); }); it('should set base path to entry when the `basePath` option is exist', () => { const settings = new settings_1.default({ basePath: 'base' }); const reader = new TestReader('directory', settings); const fakeDirectoryEntry = tests.buildFakeDirectoryEntry(); const fakeFileEntry = tests.buildFakeFileEntry(); reader.scandir.onFirstCall().returns([fakeDirectoryEntry]); reader.scandir.onSecondCall().returns([fakeFileEntry]); const actual = reader.read(); assert.strictEqual(actual[0].path, path.join('base', fakeDirectoryEntry.name)); assert.strictEqual(actual[1].path, path.join('base', 'fake', fakeFileEntry.name)); }); it('should set base path to entry when the `basePath` option is exist and value is an empty string', () => { const settings = new settings_1.default({ basePath: '' }); const reader = new TestReader('directory', settings); const fakeDirectoryEntry = tests.buildFakeDirectoryEntry(); const fakeFileEntry = tests.buildFakeFileEntry(); reader.scandir.onFirstCall().returns([fakeDirectoryEntry]); reader.scandir.onSecondCall().returns([fakeFileEntry]); const actual = reader.read(); assert.strictEqual(actual[0].path, fakeDirectoryEntry.name); assert.strictEqual(actual[1].path, path.join('fake', fakeFileEntry.name)); }); }); }); package/package.json000666 0000001715 3560116604 011556 0ustar00000000 000000 { "name": "@nodelib/fs.walk", "version": "1.2.6", "description": "A library for efficiently walking a directory recursively", "license": "MIT", "repository": "https://github.com/nodelib/nodelib/tree/master/packages/fs/fs.walk", "keywords": [ "NodeLib", "fs", "FileSystem", "file system", "walk", "scanner", "crawler" ], "engines": { "node": ">= 8" }, "main": "out/index.js", "typings": "out/index.d.ts", "scripts": { "clean": "rimraf {tsconfig.tsbuildinfo,out}", "lint": "eslint \"src/**/*.ts\" --cache", "compile": "tsc -b .", "compile:watch": "tsc -p . --watch --sourceMap", "test": "mocha \"out/**/*.spec.js\" -s 0", "build": "npm run clean && npm run compile && npm run lint && npm test", "watch": "npm run clean && npm run compile:watch" }, "dependencies": { "@nodelib/fs.scandir": "2.1.4", "fastq": "^1.6.0" }, "gitHead": "bd149ea6dc1ef18c234730278271f6a7f3882ed2" } package/tsconfig.json000666 0000000307 3560116604 011773 0ustar00000000 000000 { "extends": "../../../tsconfig.json", "compilerOptions": { "rootDir": "src", "outDir": "out" }, "references": [ { "path": "../fs.macchiato" }, { "path": "../fs.scandir" } ] } package/out/providers/async.d.ts.map000666 0000001102 3560116604 014565 0ustar00000000 000000 {"version":3,"file":"async.d.ts","sourceRoot":"","sources":["../../src/providers/async.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,kBAAkB,CAAC;AAC3C,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAKxC,oBAAY,aAAa,GAAG,CAAC,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,IAAI,CAAC;AAEnE,MAAM,CAAC,OAAO,OAAO,aAAa;IAKrB,OAAO,CAAC,QAAQ,CAAC,KAAK;IAAU,OAAO,CAAC,QAAQ,CAAC,SAAS;IAJtE,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,WAAW,CAA+C;IAEtF,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAyB;gBAErB,KAAK,EAAE,MAAM,EAAmB,SAAS,EAAE,QAAQ;IAEzE,IAAI,CAAC,QAAQ,EAAE,aAAa,GAAG,IAAI;CAe1C"}package/out/readers/async.d.ts.map000666 0000002111 3560116604 014176 0ustar00000000 000000 {"version":3,"file":"async.d.ts","sourceRoot":"","sources":["../../src/readers/async.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,OAAO,KAAK,SAAS,MAAM,qBAAqB,CAAC;AAGjD,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,KAAK,EAAa,MAAM,UAAU,CAAC;AAEnD,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,aAAK,kBAAkB,GAAG,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;AACjD,aAAK,kBAAkB,GAAG,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;AACjD,aAAK,gBAAgB,GAAG,MAAM,IAAI,CAAC;AAEnC,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,MAAM;IAQnB,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,QAAQ;IAPjE,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,OAAO,SAAS,CAAC,OAAO,CAAqB;IAC1E,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,YAAY,CAAsB;IAE/D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2E;IAClG,OAAO,CAAC,aAAa,CAAkB;IACvC,OAAO,CAAC,YAAY,CAAkB;gBAE1B,KAAK,EAAE,MAAM,EAAqB,SAAS,EAAE,QAAQ;IAU1D,IAAI,IAAI,YAAY;IAW3B,IAAW,WAAW,IAAI,OAAO,CAEhC;IAEM,OAAO,IAAI,IAAI;IASf,OAAO,CAAC,QAAQ,EAAE,kBAAkB,GAAG,IAAI;IAI3C,OAAO,CAAC,QAAQ,EAAE,kBAAkB,GAAG,IAAI;IAI3C,KAAK,CAAC,QAAQ,EAAE,gBAAgB,GAAG,IAAI;IAI9C,OAAO,CAAC,YAAY;IAUpB,OAAO,CAAC,OAAO;IAcf,OAAO,CAAC,YAAY;IAUpB,OAAO,CAAC,YAAY;IAoBpB,OAAO,CAAC,UAAU;CAGlB"}package/out/providers/async.spec.d.ts.map000666 0000000177 3560116604 015531 0ustar00000000 000000 {"version":3,"file":"async.spec.d.ts","sourceRoot":"","sources":["../../src/providers/async.spec.ts"],"names":[],"mappings":""}package/out/readers/async.spec.d.ts.map000666 0000000175 3560116604 015137 0ustar00000000 000000 {"version":3,"file":"async.spec.d.ts","sourceRoot":"","sources":["../../src/readers/async.spec.ts"],"names":[],"mappings":""}package/out/readers/common.d.ts.map000666 0000001057 3560116604 014361 0ustar00000000 000000 {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/readers/common.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,EAAE,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,wBAAgB,YAAY,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,GAAG,OAAO,CAMtE;AAED,wBAAgB,eAAe,CAAC,CAAC,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,IAAI,EAAE,KAAK,EAAE,CAAC,GAAG,OAAO,CAEtF;AAED,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAEvF;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAahF"}package/out/readers/common.spec.d.ts.map000666 0000000177 3560116604 015314 0ustar00000000 000000 {"version":3,"file":"common.spec.d.ts","sourceRoot":"","sources":["../../src/readers/common.spec.ts"],"names":[],"mappings":""}package/out/index.d.ts.map000666 0000001776 3560116604 012563 0ustar00000000 000000 {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAElC,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAEhE,OAAsB,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGjE,OAAO,QAAQ,EAAE,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAC7G,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,iBAAS,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,GAAG,IAAI,CAAC;AAChE,iBAAS,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,iBAAiB,EAAE,OAAO,GAAG,QAAQ,EAAE,QAAQ,EAAE,aAAa,GAAG,IAAI,CAAC;AAWvG,OAAO,WAAW,IAAI,CAAC;IACtB,SAAS,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,iBAAiB,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;CACpG;AAED,iBAAS,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,iBAAiB,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,EAAE,CAKpF;AAED,iBAAS,UAAU,CAAC,SAAS,EAAE,MAAM,EAAE,iBAAiB,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAKvF;AAUD,OAAO,EACN,IAAI,EACJ,QAAQ,EACR,UAAU,EACV,QAAQ,EAER,aAAa,EACb,MAAM,EACN,KAAK,EACL,iBAAiB,EACjB,OAAO,EACP,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,CAAC"}package/out/providers/index.d.ts.map000666 0000000403 3560116604 014562 0ustar00000000 000000 {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/providers/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,SAAS,CAAC;AACpC,OAAO,cAAc,MAAM,UAAU,CAAC;AACtC,OAAO,YAAY,MAAM,QAAQ,CAAC;AAElC,OAAO,EACN,aAAa,EACb,cAAc,EACd,YAAY,EACZ,CAAC"}package/out/tests/index.d.ts.map000666 0000001213 3560116604 013707 0ustar00000000 000000 {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tests/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAExC,wBAAgB,kBAAkB,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,GAAG,KAAK,CAOhE;AAED,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,GAAG,KAAK,CAOrE;AAED,eAAO,MAAM,WAAW,EAAE,KAIzB,CAAC;AAEF,qBAAa,eAAe;IACpB,IAAI,EAAE,KAAK,CAAC,SAAS,CAAgB;IACrC,OAAO,EAAE,KAAK,CAAC,SAAS,CAAgB;IACxC,OAAO,EAAE,KAAK,CAAC,SAAS,CAAgB;IACxC,OAAO,EAAE,KAAK,CAAC,SAAS,CAAgB;IACxC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAgB;CAC7C;AAED,qBAAa,cAAc;IACnB,IAAI,EAAE,KAAK,CAAC,SAAS,CAAgB;CAC5C"}package/out/types/index.d.ts.map000666 0000000503 3560116604 013712 0ustar00000000 000000 {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAE/C,oBAAY,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC;AAClC,oBAAY,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC;AAE1C,oBAAY,SAAS,GAAG;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACd,CAAC"}package/out/index.spec.d.ts.map000666 0000000162 3560116604 013500 0ustar00000000 000000 {"version":3,"file":"index.spec.d.ts","sourceRoot":"","sources":["../src/index.spec.ts"],"names":[],"mappings":""}package/out/readers/reader.d.ts.map000666 0000000462 3560116604 014332 0ustar00000000 000000 {"version":3,"file":"reader.d.ts","sourceRoot":"","sources":["../../src/readers/reader.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,aAAa,CAAC;AAGnC,MAAM,CAAC,OAAO,OAAO,MAAM;IACd,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,MAAM;IAAE,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,QAAQ;gBAArD,KAAK,EAAE,MAAM,EAAqB,SAAS,EAAE,QAAQ;CAGpF"}package/out/readers/reader.spec.d.ts.map000666 0000000177 3560116604 015266 0ustar00000000 000000 {"version":3,"file":"reader.spec.d.ts","sourceRoot":"","sources":["../../src/readers/reader.spec.ts"],"names":[],"mappings":""}package/out/settings.d.ts.map000666 0000002246 3560116604 013305 0ustar00000000 000000 {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../src/settings.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,SAAS,MAAM,qBAAqB,CAAC;AAEjD,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEvC,oBAAY,cAAc,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,CAAC;AACtD,oBAAY,kBAAkB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AACvD,oBAAY,mBAAmB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AACxD,oBAAY,mBAAmB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAExD,oBAAY,OAAO,GAAG;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAChC,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAClC,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAClC,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,EAAE,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;IAC1C,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,8BAA8B,CAAC,EAAE,OAAO,CAAC;CACzC,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,QAAQ;IAgBhB,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAfrC,SAAgB,QAAQ,CAAC,EAAE,MAAM,CAAqD;IACtF,SAAgB,WAAW,EAAE,MAAM,CAAuD;IAC1F,SAAgB,UAAU,EAAE,kBAAkB,GAAG,IAAI,CAAkD;IACvG,SAAgB,WAAW,EAAE,mBAAmB,GAAG,IAAI,CAAmD;IAC1G,SAAgB,WAAW,EAAE,mBAAmB,GAAG,IAAI,CAAmD;IAC1G,SAAgB,oBAAoB,EAAE,MAAM,CAAgE;IAE5G,SAAgB,iBAAiB,EAAE,SAAS,CAAC,QAAQ,CAMlD;gBAE0B,QAAQ,GAAE,OAAY;IAEnD,OAAO,CAAC,SAAS;CAGjB"}package/out/settings.spec.d.ts.map000666 0000000170 3560116604 014230 0ustar00000000 000000 {"version":3,"file":"settings.spec.d.ts","sourceRoot":"","sources":["../src/settings.spec.ts"],"names":[],"mappings":""}package/out/providers/stream.d.ts.map000666 0000000740 3560116604 014752 0ustar00000000 000000 {"version":3,"file":"stream.d.ts","sourceRoot":"","sources":["../../src/providers/stream.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,WAAW,MAAM,kBAAkB,CAAC;AAC3C,OAAO,QAAQ,MAAM,aAAa,CAAC;AAEnC,MAAM,CAAC,OAAO,OAAO,cAAc;IAYtB,OAAO,CAAC,QAAQ,CAAC,KAAK;IAAU,OAAO,CAAC,QAAQ,CAAC,SAAS;IAXtE,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,WAAW,CAA+C;IACtF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAQjC;gBAE0B,KAAK,EAAE,MAAM,EAAmB,SAAS,EAAE,QAAQ;IAEzE,IAAI,IAAI,QAAQ;CAiBvB"}package/out/providers/stream.spec.d.ts.map000666 0000000201 3560116604 015673 0ustar00000000 000000 {"version":3,"file":"stream.spec.d.ts","sourceRoot":"","sources":["../../src/providers/stream.spec.ts"],"names":[],"mappings":""}package/out/providers/sync.d.ts.map000666 0000000660 3560116604 014434 0ustar00000000 000000 {"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../src/providers/sync.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,iBAAiB,CAAC;AACzC,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,MAAM,CAAC,OAAO,OAAO,YAAY;IAGpB,OAAO,CAAC,QAAQ,CAAC,KAAK;IAAU,OAAO,CAAC,QAAQ,CAAC,SAAS;IAFtE,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,UAAU,CAA8C;gBAEvD,KAAK,EAAE,MAAM,EAAmB,SAAS,EAAE,QAAQ;IAEzE,IAAI,IAAI,KAAK,EAAE;CAGtB"}package/out/readers/sync.d.ts.map000666 0000001060 3560116604 014037 0ustar00000000 000000 {"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../src/readers/sync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,qBAAqB,CAAC;AAEjD,OAAO,EAAE,KAAK,EAAoB,MAAM,UAAU,CAAC;AAEnD,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,MAAM;IAC7C,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,OAAO,SAAS,CAAC,WAAW,CAAyB;IAElF,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAyB;IAClD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA6B;IAE7C,IAAI,IAAI,KAAK,EAAE;IAOtB,OAAO,CAAC,YAAY;IAIpB,OAAO,CAAC,YAAY;IAMpB,OAAO,CAAC,gBAAgB;IAYxB,OAAO,CAAC,YAAY;IAQpB,OAAO,CAAC,YAAY;IAgBpB,OAAO,CAAC,cAAc;CAGtB"}package/out/providers/sync.spec.d.ts.map000666 0000000175 3560116604 015366 0ustar00000000 000000 {"version":3,"file":"sync.spec.d.ts","sourceRoot":"","sources":["../../src/providers/sync.spec.ts"],"names":[],"mappings":""}package/out/readers/sync.spec.d.ts.map000666 0000000173 3560116604 014774 0ustar00000000 000000 {"version":3,"file":"sync.spec.d.ts","sourceRoot":"","sources":["../../src/readers/sync.spec.ts"],"names":[],"mappings":""}package/README.md000666 0000013773 3560116604 010556 0ustar00000000 000000 # @nodelib/fs.walk > A library for efficiently walking a directory recursively. ## :bulb: Highlights * :moneybag: Returns useful information: `name`, `path`, `dirent` and `stats` (optional). * :rocket: On Node.js 10.10+ uses the mechanism without additional calls to determine the entry type for performance reasons. See [`old` and `modern` mode](https://github.com/nodelib/nodelib/blob/master/packages/fs/fs.scandir/README.md#old-and-modern-mode). * :gear: Built-in directories/files and error filtering system. * :link: Can safely work with broken symbolic links. ## Install ```console npm install @nodelib/fs.walk ``` ## Usage ```ts import * as fsWalk from '@nodelib/fs.walk'; fsWalk.walk('path', (error, entries) => { /* … */ }); ``` ## API ### .walk(path, [optionsOrSettings], callback) Reads the directory recursively and asynchronously. Requires a callback function. > :book: If you want to use the Promise API, use `util.promisify`. ```ts fsWalk.walk('path', (error, entries) => { /* … */ }); fsWalk.walk('path', {}, (error, entries) => { /* … */ }); fsWalk.walk('path', new fsWalk.Settings(), (error, entries) => { /* … */ }); ``` ### .walkStream(path, [optionsOrSettings]) Reads the directory recursively and asynchronously. [Readable Stream](https://nodejs.org/dist/latest-v12.x/docs/api/stream.html#stream_readable_streams) is used as a provider. ```ts const stream = fsWalk.walkStream('path'); const stream = fsWalk.walkStream('path', {}); const stream = fsWalk.walkStream('path', new fsWalk.Settings()); ``` ### .walkSync(path, [optionsOrSettings]) Reads the directory recursively and synchronously. Returns an array of entries. ```ts const entries = fsWalk.walkSync('path'); const entries = fsWalk.walkSync('path', {}); const entries = fsWalk.walkSync('path', new fsWalk.Settings()); ``` #### path * Required: `true` * Type: `string | Buffer | URL` A path to a file. If a URL is provided, it must use the `file:` protocol. #### optionsOrSettings * Required: `false` * Type: `Options | Settings` * Default: An instance of `Settings` class An [`Options`](#options) object or an instance of [`Settings`](#settings) class. > :book: When you pass a plain object, an instance of the `Settings` class will be created automatically. If you plan to call the method frequently, use a pre-created instance of the `Settings` class. ### Settings([options]) A class of full settings of the package. ```ts const settings = new fsWalk.Settings({ followSymbolicLinks: true }); const entries = fsWalk.walkSync('path', settings); ``` ## Entry * `name` — The name of the entry (`unknown.txt`). * `path` — The path of the entry relative to call directory (`root/unknown.txt`). * `dirent` — An instance of [`fs.Dirent`](./src/types/index.ts) class. * [`stats`] — An instance of `fs.Stats` class. ## Options ### basePath * Type: `string` * Default: `undefined` By default, all paths are built relative to the root path. You can use this option to set custom root path. In the example below we read the files from the `root` directory, but in the results the root path will be `custom`. ```ts fsWalk.walkSync('root'); // → ['root/file.txt'] fsWalk.walkSync('root', { basePath: 'custom' }); // → ['custom/file.txt'] ``` ### concurrency * Type: `number` * Default: `Infinity` The maximum number of concurrent calls to `fs.readdir`. > :book: The higher the number, the higher performance and the load on the File System. If you want to read in quiet mode, set the value to `4 * os.cpus().length` (4 is default size of [thread pool work scheduling](http://docs.libuv.org/en/v1.x/threadpool.html#thread-pool-work-scheduling)). ### deepFilter * Type: [`DeepFilterFunction`](./src/settings.ts) * Default: `undefined` A function that indicates whether the directory will be read deep or not. ```ts // Skip all directories that starts with `node_modules` const filter: DeepFilterFunction = (entry) => !entry.path.startsWith('node_modules'); ``` ### entryFilter * Type: [`EntryFilterFunction`](./src/settings.ts) * Default: `undefined` A function that indicates whether the entry will be included to results or not. ```ts // Exclude all `.js` files from results const filter: EntryFilterFunction = (entry) => !entry.name.endsWith('.js'); ``` ### errorFilter * Type: [`ErrorFilterFunction`](./src/settings.ts) * Default: `undefined` A function that allows you to skip errors that occur when reading directories. For example, you can skip `ENOENT` errors if required: ```ts // Skip all ENOENT errors const filter: ErrorFilterFunction = (error) => error.code == 'ENOENT'; ``` ### stats * Type: `boolean` * Default: `false` Adds an instance of `fs.Stats` class to the [`Entry`](#entry). > :book: Always use `fs.readdir` with additional `fs.lstat/fs.stat` calls to determine the entry type. ### followSymbolicLinks * Type: `boolean` * Default: `false` Follow symbolic links or not. Call `fs.stat` on symbolic link if `true`. ### `throwErrorOnBrokenSymbolicLink` * Type: `boolean` * Default: `true` Throw an error when symbolic link is broken if `true` or safely return `lstat` call if `false`. ### `pathSegmentSeparator` * Type: `string` * Default: `path.sep` By default, this package uses the correct path separator for your OS (`\` on Windows, `/` on Unix-like systems). But you can set this option to any separator character(s) that you want to use instead. ### `fs` * Type: `FileSystemAdapter` * Default: A default FS methods By default, the built-in Node.js module (`fs`) is used to work with the file system. You can replace any method with your own. ```ts interface FileSystemAdapter { lstat: typeof fs.lstat; stat: typeof fs.stat; lstatSync: typeof fs.lstatSync; statSync: typeof fs.statSync; readdir: typeof fs.readdir; readdirSync: typeof fs.readdirSync; } const settings = new fsWalk.Settings({ fs: { lstat: fakeLstat } }); ``` ## Changelog See the [Releases section of our GitHub project](https://github.com/nodelib/nodelib/releases) for changelog for each release version. ## License This software is released under the terms of the MIT license. package/out/providers/async.d.ts000666 0000001001 3560116604 014007 0ustar00000000 000000 import AsyncReader from '../readers/async'; import Settings from '../settings'; import { Entry, Errno } from '../types'; export declare type AsyncCallback = (err: Errno, entries: Entry[]) => void; export default class AsyncProvider { private readonly _root; private readonly _settings; protected readonly _reader: AsyncReader; private readonly _storage; constructor(_root: string, _settings: Settings); read(callback: AsyncCallback): void; } //# sourceMappingURL=async.d.ts.mappackage/out/readers/async.d.ts000666 0000002172 3560116604 013431 0ustar00000000 000000 /// import { EventEmitter } from 'events'; import * as fsScandir from '@nodelib/fs.scandir'; import Settings from '../settings'; import { Entry, Errno } from '../types'; import Reader from './reader'; declare type EntryEventCallback = (entry: Entry) => void; declare type ErrorEventCallback = (error: Errno) => void; declare type EndEventCallback = () => void; export default class AsyncReader extends Reader { protected readonly _settings: Settings; protected readonly _scandir: typeof fsScandir.scandir; protected readonly _emitter: EventEmitter; private readonly _queue; private _isFatalError; private _isDestroyed; constructor(_root: string, _settings: Settings); read(): EventEmitter; get isDestroyed(): boolean; destroy(): void; onEntry(callback: EntryEventCallback): void; onError(callback: ErrorEventCallback): void; onEnd(callback: EndEventCallback): void; private _pushToQueue; private _worker; private _handleError; private _handleEntry; private _emitEntry; } export {}; //# sourceMappingURL=async.d.ts.mappackage/out/providers/async.spec.d.ts000666 0000000064 3560116604 014750 0ustar00000000 000000 export {}; //# sourceMappingURL=async.spec.d.ts.mappackage/out/readers/async.spec.d.ts000666 0000000064 3560116604 014360 0ustar00000000 000000 export {}; //# sourceMappingURL=async.spec.d.ts.mappackage/src/providers/async.spec.ts000666 0000003140 3560116604 014504 0ustar00000000 000000 import * as assert from 'assert'; import * as sinon from 'sinon'; import AsyncReader from '../readers/async'; import Settings from '../settings'; import * as tests from '../tests'; import AsyncProvider from './async'; class TestProvider extends AsyncProvider { protected readonly _reader: AsyncReader = new tests.TestAsyncReader() as unknown as AsyncReader; constructor(_root: string, _settings: Settings = new Settings()) { super(_root, _settings); } public get reader(): tests.TestAsyncReader { return this._reader as unknown as tests.TestAsyncReader; } } describe('Providers → Async', () => { describe('.read', () => { it('should call reader function with correct set of arguments', () => { const provider = new TestProvider('directory'); const fakeCallback = sinon.stub(); provider.read(fakeCallback); assert.ok(provider.reader.read.called); }); it('should call callback with error for failed launch', () => { const provider = new TestProvider('directory'); const fakeCallback = sinon.stub(); provider.reader.onError.yields(tests.EPERM_ERRNO); provider.read(fakeCallback); assert.deepStrictEqual(fakeCallback.args, [[tests.EPERM_ERRNO]]); }); it('should push entries to storage and call callback with array of entries', () => { const provider = new TestProvider('directory'); const fakeEntry = tests.buildFakeFileEntry(); const fakeCallback = sinon.stub(); provider.reader.onEntry.yields(fakeEntry); provider.reader.onEnd.yields(); provider.read(fakeCallback); assert.deepStrictEqual(fakeCallback.args, [[null, [fakeEntry]]]); }); }); }); package/src/readers/async.spec.ts000666 0000015173 3560116604 014125 0ustar00000000 000000 import * as assert from 'assert'; import * as path from 'path'; import * as fsScandir from '@nodelib/fs.scandir'; import * as sinon from 'sinon'; import Settings from '../settings'; import * as tests from '../tests'; import { Entry } from '../types'; import AsyncReader from './async'; type ScandirSignature = typeof fsScandir.scandir; class TestReader extends AsyncReader { protected readonly _scandir: ScandirSignature = sinon.stub() as unknown as ScandirSignature; constructor(_root: string, _settings: Settings = new Settings()) { super(_root, _settings); } public get scandir(): sinon.SinonStub { return this._scandir as unknown as sinon.SinonStub; } } describe('Readers → Async', () => { describe('.read', () => { it('should emit "error" event when the first call of scandir is broken', (done) => { const reader = new TestReader('non-exist-directory'); reader.scandir.yields(tests.EPERM_ERRNO); reader.onError((error) => { assert.ok(error); done(); }); reader.read(); }); it('should emit "end" event when the first call of scandir is broken but this error can be suppressed', (done) => { const settings = new Settings({ errorFilter: (error) => error.code === 'EPERM' }); const reader = new TestReader('non-exist-directory', settings); reader.scandir.yields(tests.EPERM_ERRNO); reader.onEnd(() => { done(); }); reader.read(); }); it('should do not emit events after first broken scandir call', (done) => { const reader = new TestReader('directory'); const firstFakeDirectoryEntry = tests.buildFakeDirectoryEntry({ name: 'a', path: 'directory/a' }); const secondFakeDirectoryEntry = tests.buildFakeDirectoryEntry({ name: 'b', path: 'directory/b' }); reader.scandir.onFirstCall().yields(null, [firstFakeDirectoryEntry, secondFakeDirectoryEntry]); reader.scandir.onSecondCall().yieldsAsync(tests.EPERM_ERRNO); reader.scandir.onThirdCall().yieldsAsync(tests.EPERM_ERRNO); /** * If the behavior is broken, then a third scandir call will trigger an unhandled error. */ reader.onError((error) => { assert.ok(error); done(); }); reader.read(); }); it('should return entries', (done) => { const reader = new TestReader('directory'); const fakeDirectoryEntry = tests.buildFakeDirectoryEntry(); const fakeFileEntry = tests.buildFakeFileEntry(); reader.scandir.onFirstCall().yields(null, [fakeDirectoryEntry]); reader.scandir.onSecondCall().yields(null, [fakeFileEntry]); const entries: Entry[] = []; reader.onEntry((entry) => entries.push(entry)); reader.onEnd(() => { assert.deepStrictEqual(entries, [fakeDirectoryEntry, fakeFileEntry]); done(); }); reader.read(); }); it('should push to results only directories', (done) => { const settings = new Settings({ entryFilter: (entry) => !entry.dirent.isFile() }); const reader = new TestReader('directory', settings); const fakeDirectoryEntry = tests.buildFakeDirectoryEntry(); const fakeFileEntry = tests.buildFakeFileEntry(); reader.scandir.onFirstCall().yields(null, [fakeDirectoryEntry]); reader.scandir.onSecondCall().yields(null, [fakeFileEntry]); const entries: Entry[] = []; reader.onEntry((entry) => entries.push(entry)); reader.onEnd(() => { assert.deepStrictEqual(entries, [fakeDirectoryEntry]); done(); }); reader.read(); }); it('should do not read root directory', (done) => { const settings = new Settings({ deepFilter: () => false }); const reader = new TestReader('directory', settings); const fakeDirectoryEntry = tests.buildFakeDirectoryEntry(); const fakeFileEntry = tests.buildFakeFileEntry(); reader.scandir.onFirstCall().yields(null, [fakeDirectoryEntry]); reader.scandir.onSecondCall().yields(null, [fakeFileEntry]); const entries: Entry[] = []; reader.onEntry((entry) => entries.push(entry)); reader.onEnd(() => { assert.deepStrictEqual(entries, [fakeDirectoryEntry]); done(); }); reader.read(); }); it('should set base path to entry when the `basePath` option is exist', (done) => { const settings = new Settings({ basePath: 'base' }); const reader = new TestReader('directory', settings); const fakeDirectoryEntry = tests.buildFakeDirectoryEntry(); const fakeFileEntry = tests.buildFakeFileEntry(); reader.scandir.onFirstCall().yields(null, [fakeDirectoryEntry]); reader.scandir.onSecondCall().yields(null, [fakeFileEntry]); const entries: Entry[] = []; reader.onEntry((entry) => entries.push(entry)); reader.onEnd(() => { assert.strictEqual(entries[0].path, path.join('base', fakeDirectoryEntry.name)); assert.strictEqual(entries[1].path, path.join('base', 'fake', fakeFileEntry.name)); done(); }); reader.read(); }); it('should set base path to entry when the `basePath` option is exist and value is an empty string', (done) => { const settings = new Settings({ basePath: '' }); const reader = new TestReader('directory', settings); const fakeDirectoryEntry = tests.buildFakeDirectoryEntry(); const fakeFileEntry = tests.buildFakeFileEntry(); reader.scandir.onFirstCall().yields(null, [fakeDirectoryEntry]); reader.scandir.onSecondCall().yields(null, [fakeFileEntry]); const entries: Entry[] = []; reader.onEntry((entry) => entries.push(entry)); reader.onEnd(() => { assert.strictEqual(entries[0].path, path.join(fakeDirectoryEntry.name)); assert.strictEqual(entries[1].path, path.join('fake', fakeFileEntry.name)); done(); }); reader.read(); }); }); describe('.destroy', () => { it('should do not emit entries after destroy', (done) => { const reader = new TestReader('directory'); const firstFakeDirectoryEntry = tests.buildFakeDirectoryEntry({ name: 'a', path: 'directory/a' }); const fakeFileEntry = tests.buildFakeFileEntry(); reader.scandir.onFirstCall().yields(null, [firstFakeDirectoryEntry]); reader.scandir.onSecondCall().yields(null, [fakeFileEntry]); reader.onEntry((entry) => { if (entry.name === 'a') { reader.destroy(); } else { assert.fail('should do not emit entries after destroy'); } }); reader.onEnd(() => { done(); }); reader.read(); }); it('should mark stream as "destroyed" after first destroy', () => { const reader = new TestReader('directory'); reader.destroy(); assert.ok(reader.isDestroyed); }); it('should throw an error when trying to destroy reader twice', () => { const reader = new TestReader('directory'); const expectedErrorMessageRe = /The reader is already destroyed/; reader.destroy(); assert.throws(() => reader.destroy(), expectedErrorMessageRe); }); }); }); package/src/providers/async.ts000666 0000002200 3560116604 013547 0ustar00000000 000000 import AsyncReader from '../readers/async'; import Settings from '../settings'; import { Entry, Errno } from '../types'; type FailureCallback = (err: Errno) => void; type SuccessCallback = (err: null, entries: Entry[]) => void; export type AsyncCallback = (err: Errno, entries: Entry[]) => void; export default class AsyncProvider { protected readonly _reader: AsyncReader = new AsyncReader(this._root, this._settings); private readonly _storage: Set = new Set(); constructor(private readonly _root: string, private readonly _settings: Settings) { } public read(callback: AsyncCallback): void { this._reader.onError((error) => { callFailureCallback(callback, error); }); this._reader.onEntry((entry: Entry) => { this._storage.add(entry); }); this._reader.onEnd(() => { callSuccessCallback(callback, [...this._storage]); }); this._reader.read(); } } function callFailureCallback(callback: AsyncCallback, error: Errno): void { (callback as FailureCallback)(error); } function callSuccessCallback(callback: AsyncCallback, entries: Entry[]): void { (callback as unknown as SuccessCallback)(null, entries); } package/src/readers/async.ts000666 0000006211 3560116604 013165 0ustar00000000 000000 import { EventEmitter } from 'events'; import * as fsScandir from '@nodelib/fs.scandir'; import * as fastq from 'fastq'; import Settings from '../settings'; import { Entry, Errno, QueueItem } from '../types'; import * as common from './common'; import Reader from './reader'; type EntryEventCallback = (entry: Entry) => void; type ErrorEventCallback = (error: Errno) => void; type EndEventCallback = () => void; export default class AsyncReader extends Reader { protected readonly _scandir: typeof fsScandir.scandir = fsScandir.scandir; protected readonly _emitter: EventEmitter = new EventEmitter(); private readonly _queue: fastq.queue = fastq(this._worker.bind(this), this._settings.concurrency); private _isFatalError: boolean = false; private _isDestroyed: boolean = false; constructor(_root: string, protected readonly _settings: Settings) { super(_root, _settings); this._queue.drain = () => { if (!this._isFatalError) { this._emitter.emit('end'); } }; } public read(): EventEmitter { this._isFatalError = false; this._isDestroyed = false; setImmediate(() => { this._pushToQueue(this._root, this._settings.basePath); }); return this._emitter; } public get isDestroyed(): boolean { return this._isDestroyed; } public destroy(): void { if (this._isDestroyed) { throw new Error('The reader is already destroyed'); } this._isDestroyed = true; this._queue.killAndDrain(); } public onEntry(callback: EntryEventCallback): void { this._emitter.on('entry', callback); } public onError(callback: ErrorEventCallback): void { this._emitter.once('error', callback); } public onEnd(callback: EndEventCallback): void { this._emitter.once('end', callback); } private _pushToQueue(directory: string, base?: string): void { const queueItem: QueueItem = { directory, base }; this._queue.push(queueItem, (error: Error | null) => { if (error !== null) { this._handleError(error); } }); } private _worker(item: QueueItem, done: fastq.done): void { this._scandir(item.directory, this._settings.fsScandirSettings, (error: NodeJS.ErrnoException | null, entries) => { if (error !== null) { return done(error, undefined); } for (const entry of entries) { this._handleEntry(entry, item.base); } done(null as unknown as Error, undefined); }); } private _handleError(error: Error): void { if (this._isDestroyed || !common.isFatalError(this._settings, error)) { return; } this._isFatalError = true; this._isDestroyed = true; this._emitter.emit('error', error); } private _handleEntry(entry: Entry, base?: string): void { if (this._isDestroyed || this._isFatalError) { return; } const fullpath = entry.path; if (base !== undefined) { entry.path = common.joinPathSegments(base, entry.name, this._settings.pathSegmentSeparator); } if (common.isAppliedFilter(this._settings.entryFilter, entry)) { this._emitEntry(entry); } if (entry.dirent.isDirectory() && common.isAppliedFilter(this._settings.deepFilter, entry)) { this._pushToQueue(fullpath, entry.path); } } private _emitEntry(entry: Entry): void { this._emitter.emit('entry', entry); } } package/out/readers/common.d.ts000666 0000000763 3560116604 013610 0ustar00000000 000000 import Settings, { FilterFunction } from '../settings'; import { Errno } from '../types'; export declare function isFatalError(settings: Settings, error: Errno): boolean; export declare function isAppliedFilter(filter: FilterFunction | null, value: T): boolean; export declare function replacePathSegmentSeparator(filepath: string, separator: string): string; export declare function joinPathSegments(a: string, b: string, separator: string): string; //# sourceMappingURL=common.d.ts.mappackage/out/readers/common.spec.d.ts000666 0000000065 3560116604 014534 0ustar00000000 000000 export {}; //# sourceMappingURL=common.spec.d.ts.mappackage/src/readers/common.spec.ts000666 0000006463 3560116604 014302 0ustar00000000 000000 import * as assert from 'assert'; import * as path from 'path'; import Settings from '../settings'; import * as tests from '../tests'; import * as common from './common'; describe('Readers → Common', () => { describe('.isFatalError', () => { it('should return true when filter is not defined', () => { const settings = new Settings(); const actual = common.isFatalError(settings, tests.EPERM_ERRNO); assert.ok(actual); }); it('should return true when the error cannot be suppressed', () => { const settings = new Settings({ errorFilter: (error) => error.code === 'ENOENT' }); const actual = common.isFatalError(settings, tests.EPERM_ERRNO); assert.ok(actual); }); it('should return false when the error can be suppressed', () => { const settings = new Settings({ errorFilter: (error) => error.code === 'EPERM' }); const actual = common.isFatalError(settings, tests.EPERM_ERRNO); assert.ok(!actual); }); }); describe('.isAppliedFilter', () => { it('should return true when the filter is not defined', () => { const settings = new Settings(); const entry = tests.buildFakeFileEntry(); const actual = common.isAppliedFilter(settings.entryFilter, entry); assert.ok(actual); }); it('should return true when the entry will be applied', () => { const settings = new Settings({ entryFilter: (entry) => entry.name === 'fake.txt' }); const fakeEntry = tests.buildFakeFileEntry(); const actual = common.isAppliedFilter(settings.entryFilter, fakeEntry); assert.ok(actual); }); it('should return false when the entry will be skipped', () => { const settings = new Settings({ entryFilter: (entry) => entry.name !== 'fake.txt' }); const fakeEntry = tests.buildFakeFileEntry(); const actual = common.isAppliedFilter(settings.entryFilter, fakeEntry); assert.ok(!actual); }); }); describe('.replacePathSegmentSeparator', () => { it('should replace path segment separator', () => { const filepath = path.join('directory', 'file.txt'); const expected = 'directory_file.txt'; const actual = common.replacePathSegmentSeparator(filepath, '_'); assert.strictEqual(actual, expected); }); }); describe('.joinPathSegments', () => { it('should return concatenated string', () => { const expected = 'a&b'; const actual = common.joinPathSegments('a', 'b', '&'); assert.strictEqual(actual, expected); }); it('should return second part of path when the first path is an empty string', () => { const expected = 'b'; const actual = common.joinPathSegments('', 'b', '&'); assert.strictEqual(actual, expected); }); it('should return correct string when the first segment ens with the separator symbol', () => { // Unix assert.strictEqual(common.joinPathSegments('/', 'a', '/'), '/a'); assert.strictEqual(common.joinPathSegments('//', 'a', '/'), '//a'); assert.strictEqual(common.joinPathSegments('/a/', 'b', '/'), '/a/b'); // Windows assert.strictEqual(common.joinPathSegments('C:/', 'Users', '/'), 'C:/Users'); assert.strictEqual(common.joinPathSegments('C:\\', 'Users', '\\'), 'C:\\Users'); assert.strictEqual(common.joinPathSegments('//?/C:/', 'Users', '/'), '//?/C:/Users'); assert.strictEqual(common.joinPathSegments('\\\\?\\C:\\', 'Users', '\\'), '\\\\?\\C:\\Users'); }); }); }); package/src/readers/common.ts000666 0000001524 3560116604 013342 0ustar00000000 000000 import Settings, { FilterFunction } from '../settings'; import { Errno } from '../types'; export function isFatalError(settings: Settings, error: Errno): boolean { if (settings.errorFilter === null) { return true; } return !settings.errorFilter(error); } export function isAppliedFilter(filter: FilterFunction | null, value: T): boolean { return filter === null || filter(value); } export function replacePathSegmentSeparator(filepath: string, separator: string): string { return filepath.split(/[/\\]/).join(separator); } export function joinPathSegments(a: string, b: string, separator: string): string { if (a === '') { return b; } /** * The correct handling of cases when the first segment is a root (`/`, `C:/`) or UNC path (`//?/C:/`). */ if (a.endsWith(separator)) { return a + b; } return a + separator + b; } package/out/index.d.ts000666 0000002035 3560116604 011774 0ustar00000000 000000 /// import { Readable } from 'stream'; import { Dirent, FileSystemAdapter } from '@nodelib/fs.scandir'; import { AsyncCallback } from './providers/async'; import Settings, { DeepFilterFunction, EntryFilterFunction, ErrorFilterFunction, Options } from './settings'; import { Entry } from './types'; declare function walk(directory: string, callback: AsyncCallback): void; declare function walk(directory: string, optionsOrSettings: Options | Settings, callback: AsyncCallback): void; declare namespace walk { function __promisify__(directory: string, optionsOrSettings?: Options | Settings): Promise; } declare function walkSync(directory: string, optionsOrSettings?: Options | Settings): Entry[]; declare function walkStream(directory: string, optionsOrSettings?: Options | Settings): Readable; export { walk, walkSync, walkStream, Settings, AsyncCallback, Dirent, Entry, FileSystemAdapter, Options, DeepFilterFunction, EntryFilterFunction, ErrorFilterFunction }; //# sourceMappingURL=index.d.ts.mappackage/out/providers/index.d.ts000666 0000000316 3560116604 014011 0ustar00000000 000000 import AsyncProvider from './async'; import StreamProvider from './stream'; import SyncProvider from './sync'; export { AsyncProvider, StreamProvider, SyncProvider }; //# sourceMappingURL=index.d.ts.mappackage/out/tests/index.d.ts000666 0000001074 3560116604 013140 0ustar00000000 000000 import * as sinon from 'sinon'; import { Entry, Errno } from '../types'; export declare function buildFakeFileEntry(entry?: Partial): Entry; export declare function buildFakeDirectoryEntry(entry?: Partial): Entry; export declare const EPERM_ERRNO: Errno; export declare class TestAsyncReader { read: sinon.SinonStub; destroy: sinon.SinonStub; onError: sinon.SinonStub; onEntry: sinon.SinonStub; onEnd: sinon.SinonStub; } export declare class TestSyncReader { read: sinon.SinonStub; } //# sourceMappingURL=index.d.ts.mappackage/out/types/index.d.ts000666 0000000447 3560116604 013145 0ustar00000000 000000 /// import * as scandir from '@nodelib/fs.scandir'; export declare type Entry = scandir.Entry; export declare type Errno = NodeJS.ErrnoException; export declare type QueueItem = { directory: string; base?: string; }; //# sourceMappingURL=index.d.ts.mappackage/out/index.spec.d.ts000666 0000000064 3560116604 012725 0ustar00000000 000000 export {}; //# sourceMappingURL=index.spec.d.ts.mappackage/src/index.spec.ts000666 0000006615 3560116604 012473 0ustar00000000 000000 import * as assert from 'assert'; import * as fs from 'fs'; import { Readable } from 'stream'; import * as rimraf from 'rimraf'; import { Errno } from './types'; import { walk, walkSync, walkStream, Settings, Entry } from '.'; const entryFilter = (entry: Entry): boolean => !entry.dirent.isDirectory(); function streamToPromise(stream: Readable): Promise { const entries: Entry[] = []; return new Promise((resolve, reject) => { stream.on('data', (entry: Entry) => entries.push(entry)); stream.once('error', reject); stream.once('end', () => resolve(entries)); }); } describe('Package', () => { before(() => { rimraf.sync('fixtures'); fs.mkdirSync('fixtures'); fs.writeFileSync('fixtures/file.txt', ''); fs.mkdirSync('fixtures/nested'); fs.writeFileSync('fixtures/nested/file.txt', ''); }); after(() => { rimraf.sync('fixtures'); }); describe('.walk', () => { it('should throw an error for non-exist directory', (done) => { walk('non-exist-directory', (error, entries) => { assert.strictEqual(error.code, 'ENOENT'); assert.strictEqual(entries, undefined); done(); }); }); it('should work without options or settings', (done) => { walk('fixtures', (error, entries) => { assert.strictEqual(error, null); assert.strictEqual(entries.length, 3); done(); }); }); it('should work with options', (done) => { walk('fixtures', { entryFilter }, (error, entries) => { assert.strictEqual(error, null); assert.strictEqual(entries.length, 2); done(); }); }); it('should work with settings', (done) => { const settings = new Settings({ entryFilter }); walk('fixtures', settings, (error, entries) => { assert.strictEqual(error, null); assert.strictEqual(entries.length, 2); done(); }); }); }); describe('.walkStream', () => { it('should throw an error for non-exist directory', async () => { const stream = walkStream('non-exist-directory'); await assert.rejects(() => streamToPromise(stream), (error: Errno) => error.code === 'ENOENT'); }); it('should work without options or settings', async () => { const stream = walkStream('fixtures'); const actual = await streamToPromise(stream); assert.strictEqual(actual.length, 3); }); it('should work with options', async () => { const stream = walkStream('fixtures', { entryFilter }); const actual = await streamToPromise(stream); assert.strictEqual(actual.length, 2); }); it('should work with settings', async () => { const settings = new Settings({ entryFilter }); const stream = walkStream('fixtures', settings); const actual = await streamToPromise(stream); assert.strictEqual(actual.length, 2); }); }); describe('.walkSync', () => { it('should throw an error for non-exist directory', () => { const matcher = (error: Errno): boolean => error.code === 'ENOENT'; assert.throws(() => walkSync('non-exist-directory'), matcher); }); it('should work without options or settings', () => { const actual = walkSync('fixtures'); assert.strictEqual(actual.length, 3); }); it('should work with options', () => { const actual = walkSync('fixtures', { entryFilter }); assert.strictEqual(actual.length, 2); }); it('should work with settings', () => { const settings = new Settings({ entryFilter }); const actual = walkSync('fixtures', settings); assert.strictEqual(actual.length, 2); }); }); }); package/src/index.ts000666 0000003766 3560116604 011546 0ustar00000000 000000 import { Readable } from 'stream'; import { Dirent, FileSystemAdapter } from '@nodelib/fs.scandir'; import AsyncProvider, { AsyncCallback } from './providers/async'; import StreamProvider from './providers/stream'; import SyncProvider from './providers/sync'; import Settings, { DeepFilterFunction, EntryFilterFunction, ErrorFilterFunction, Options } from './settings'; import { Entry } from './types'; function walk(directory: string, callback: AsyncCallback): void; function walk(directory: string, optionsOrSettings: Options | Settings, callback: AsyncCallback): void; function walk(directory: string, optionsOrSettingsOrCallback: Options | Settings | AsyncCallback, callback?: AsyncCallback): void { if (typeof optionsOrSettingsOrCallback === 'function') { return new AsyncProvider(directory, getSettings()).read(optionsOrSettingsOrCallback); } new AsyncProvider(directory, getSettings(optionsOrSettingsOrCallback)).read(callback as AsyncCallback); } // https://github.com/typescript-eslint/typescript-eslint/issues/60 // eslint-disable-next-line no-redeclare declare namespace walk { function __promisify__(directory: string, optionsOrSettings?: Options | Settings): Promise; } function walkSync(directory: string, optionsOrSettings?: Options | Settings): Entry[] { const settings = getSettings(optionsOrSettings); const provider = new SyncProvider(directory, settings); return provider.read(); } function walkStream(directory: string, optionsOrSettings?: Options | Settings): Readable { const settings = getSettings(optionsOrSettings); const provider = new StreamProvider(directory, settings); return provider.read(); } function getSettings(settingsOrOptions: Settings | Options = {}): Settings { if (settingsOrOptions instanceof Settings) { return settingsOrOptions; } return new Settings(settingsOrOptions); } export { walk, walkSync, walkStream, Settings, AsyncCallback, Dirent, Entry, FileSystemAdapter, Options, DeepFilterFunction, EntryFilterFunction, ErrorFilterFunction }; package/src/providers/index.ts000666 0000000253 3560116604 013547 0ustar00000000 000000 import AsyncProvider from './async'; import StreamProvider from './stream'; import SyncProvider from './sync'; export { AsyncProvider, StreamProvider, SyncProvider }; package/src/tests/index.ts000666 0000001714 3560116604 012677 0ustar00000000 000000 import * as sinon from 'sinon'; import { Dirent } from '../../../fs.macchiato'; import { Entry, Errno } from '../types'; export function buildFakeFileEntry(entry?: Partial): Entry { return { name: 'fake.txt', path: 'directory/fake.txt', dirent: new Dirent({ name: 'fake.txt' }), ...entry }; } export function buildFakeDirectoryEntry(entry?: Partial): Entry { return { name: 'fake', path: 'directory/fake', dirent: new Dirent({ name: 'fake', isFile: false, isDirectory: true }), ...entry }; } export const EPERM_ERRNO: Errno = { name: 'EPERM', code: 'EPERM', message: 'EPERM' }; export class TestAsyncReader { public read: sinon.SinonStub = sinon.stub(); public destroy: sinon.SinonStub = sinon.stub(); public onError: sinon.SinonStub = sinon.stub(); public onEntry: sinon.SinonStub = sinon.stub(); public onEnd: sinon.SinonStub = sinon.stub(); } export class TestSyncReader { public read: sinon.SinonStub = sinon.stub(); } package/src/types/index.ts000666 0000000301 3560116604 012670 0ustar00000000 000000 import * as scandir from '@nodelib/fs.scandir'; export type Entry = scandir.Entry; export type Errno = NodeJS.ErrnoException; export type QueueItem = { directory: string; base?: string; }; package/out/readers/reader.d.ts000666 0000000365 3560116604 013560 0ustar00000000 000000 import Settings from '../settings'; export default class Reader { protected readonly _root: string; protected readonly _settings: Settings; constructor(_root: string, _settings: Settings); } //# sourceMappingURL=reader.d.ts.mappackage/out/readers/reader.spec.d.ts000666 0000000065 3560116604 014506 0ustar00000000 000000 export {}; //# sourceMappingURL=reader.spec.d.ts.mappackage/src/readers/reader.spec.ts000666 0000001372 3560116604 014246 0ustar00000000 000000 import * as assert from 'assert'; import * as path from 'path'; import Settings, { Options } from '../settings'; import Reader from './reader'; class TestReader extends Reader { public get root(): string { return this._root; } } function getReader(root: string, options: Options = {}): TestReader { return new TestReader(root, new Settings(options)); } describe('Readers → Reader', () => { describe('Constructor', () => { it('should return root path with replaced path segment separators', () => { const root = path.join('directory', 'file.txt'); const reader = getReader(root, { pathSegmentSeparator: '_' }); const expected = 'directory_file.txt'; const actual = reader.root; assert.strictEqual(actual, expected); }); }); }); package/src/readers/reader.ts000666 0000000437 3560116604 013316 0ustar00000000 000000 import Settings from '../settings'; import * as common from './common'; export default class Reader { constructor(protected readonly _root: string, protected readonly _settings: Settings) { this._root = common.replacePathSegmentSeparator(_root, _settings.pathSegmentSeparator); } } package/out/settings.d.ts000666 0000002334 3560116604 012527 0ustar00000000 000000 import * as fsScandir from '@nodelib/fs.scandir'; import { Entry, Errno } from './types'; export declare type FilterFunction = (value: T) => boolean; export declare type DeepFilterFunction = FilterFunction; export declare type EntryFilterFunction = FilterFunction; export declare type ErrorFilterFunction = FilterFunction; export declare type Options = { basePath?: string; concurrency?: number; deepFilter?: DeepFilterFunction; entryFilter?: EntryFilterFunction; errorFilter?: ErrorFilterFunction; followSymbolicLinks?: boolean; fs?: Partial; pathSegmentSeparator?: string; stats?: boolean; throwErrorOnBrokenSymbolicLink?: boolean; }; export default class Settings { private readonly _options; readonly basePath?: string; readonly concurrency: number; readonly deepFilter: DeepFilterFunction | null; readonly entryFilter: EntryFilterFunction | null; readonly errorFilter: ErrorFilterFunction | null; readonly pathSegmentSeparator: string; readonly fsScandirSettings: fsScandir.Settings; constructor(_options?: Options); private _getValue; } //# sourceMappingURL=settings.d.ts.mappackage/out/settings.spec.d.ts000666 0000000067 3560116604 013461 0ustar00000000 000000 export {}; //# sourceMappingURL=settings.spec.d.ts.mappackage/src/settings.spec.ts000666 0000002047 3560116604 013217 0ustar00000000 000000 import * as assert from 'assert'; import * as fsScandir from '@nodelib/fs.scandir'; import Settings from './settings'; describe('Settings', () => { it('should return instance with default values', () => { const fsWalkSettings = new Settings(); const fsScandirSettings = new fsScandir.Settings({ followSymbolicLinks: undefined, fs: undefined, pathSegmentSeparator: undefined, stats: undefined, throwErrorOnBrokenSymbolicLink: undefined }); assert.strictEqual(fsWalkSettings.basePath, undefined); assert.strictEqual(fsWalkSettings.concurrency, Infinity); assert.strictEqual(fsWalkSettings.deepFilter, null); assert.strictEqual(fsWalkSettings.entryFilter, null); assert.strictEqual(fsWalkSettings.errorFilter, null); assert.deepStrictEqual(fsWalkSettings.fsScandirSettings, fsScandirSettings); }); it('should return instance with custom values', () => { const filter = (): boolean => true; const fsWalkSettings = new Settings({ entryFilter: filter }); assert.strictEqual(fsWalkSettings.entryFilter, filter); }); }); package/src/settings.ts000666 0000003444 3560116604 012270 0ustar00000000 000000 import * as path from 'path'; import * as fsScandir from '@nodelib/fs.scandir'; import { Entry, Errno } from './types'; export type FilterFunction = (value: T) => boolean; export type DeepFilterFunction = FilterFunction; export type EntryFilterFunction = FilterFunction; export type ErrorFilterFunction = FilterFunction; export type Options = { basePath?: string; concurrency?: number; deepFilter?: DeepFilterFunction; entryFilter?: EntryFilterFunction; errorFilter?: ErrorFilterFunction; followSymbolicLinks?: boolean; fs?: Partial; pathSegmentSeparator?: string; stats?: boolean; throwErrorOnBrokenSymbolicLink?: boolean; }; export default class Settings { public readonly basePath?: string = this._getValue(this._options.basePath, undefined); public readonly concurrency: number = this._getValue(this._options.concurrency, Infinity); public readonly deepFilter: DeepFilterFunction | null = this._getValue(this._options.deepFilter, null); public readonly entryFilter: EntryFilterFunction | null = this._getValue(this._options.entryFilter, null); public readonly errorFilter: ErrorFilterFunction | null = this._getValue(this._options.errorFilter, null); public readonly pathSegmentSeparator: string = this._getValue(this._options.pathSegmentSeparator, path.sep); public readonly fsScandirSettings: fsScandir.Settings = new fsScandir.Settings({ followSymbolicLinks: this._options.followSymbolicLinks, fs: this._options.fs, pathSegmentSeparator: this._options.pathSegmentSeparator, stats: this._options.stats, throwErrorOnBrokenSymbolicLink: this._options.throwErrorOnBrokenSymbolicLink }); constructor(private readonly _options: Options = {}) { } private _getValue(option: T | undefined, value: T): T { return option ?? value; } } package/out/providers/stream.d.ts000666 0000000710 3560116604 014173 0ustar00000000 000000 /// import { Readable } from 'stream'; import AsyncReader from '../readers/async'; import Settings from '../settings'; export default class StreamProvider { private readonly _root; private readonly _settings; protected readonly _reader: AsyncReader; protected readonly _stream: Readable; constructor(_root: string, _settings: Settings); read(): Readable; } //# sourceMappingURL=stream.d.ts.mappackage/out/providers/stream.spec.d.ts000666 0000000065 3560116604 015127 0ustar00000000 000000 export {}; //# sourceMappingURL=stream.spec.d.ts.mappackage/src/providers/stream.spec.ts000666 0000004611 3560116604 014666 0ustar00000000 000000 import * as assert from 'assert'; import { Readable } from 'stream'; import * as sinon from 'sinon'; import AsyncReader from '../readers/async'; import Settings from '../settings'; import * as tests from '../tests'; import StreamProvider from './stream'; class TestProvider extends StreamProvider { protected readonly _reader: AsyncReader = new tests.TestAsyncReader() as unknown as AsyncReader; constructor(_root: string, _settings: Settings = new Settings()) { super(_root, _settings); this._stream.emit = sinon.stub(); this._stream.push = sinon.stub(); } public get reader(): tests.TestAsyncReader { return this._reader as unknown as tests.TestAsyncReader; } public get stream(): sinon.SinonStubbedInstance { return this._stream as unknown as sinon.SinonStubbedInstance; } } describe('Providers → Stream', () => { describe('.read', () => { it('should return stream', () => { const provider = new TestProvider('directory'); const stream = provider.read(); assert.ok(stream instanceof Readable); }); it('should call reader function with correct set of arguments', () => { const provider = new TestProvider('directory'); provider.read(); assert.ok(provider.reader.read.called); }); it('should re-emit the "error" event from reader', () => { const provider = new TestProvider('directory'); provider.reader.onError.yields(tests.EPERM_ERRNO); provider.read(); assert.deepStrictEqual(provider.stream.emit.args, [['error', tests.EPERM_ERRNO]]); }); it('should call the "push" method with entry value for the "entry" event from reader', () => { const provider = new TestProvider('directory'); const fakeEntry = tests.buildFakeFileEntry(); provider.reader.onEntry.yields(fakeEntry); provider.read(); assert.deepStrictEqual(provider.stream.push.args, [[fakeEntry]]); }); it('should call the "push" method with "null" value for the "end" event from reader', () => { const provider = new TestProvider('directory'); provider.reader.onEnd.yields(); provider.read(); assert.deepStrictEqual(provider.stream.push.args, [[null]]); }); it('should do not destroy reader when it is already destroyed', () => { const provider = new TestProvider('directory'); const stream = provider.read(); stream.destroy(); assert.ok(stream.destroyed); assert.doesNotThrow(() => stream.destroy()); }); }); }); package/src/providers/stream.ts000666 0000001475 3560116604 013742 0ustar00000000 000000 import { Readable } from 'stream'; import AsyncReader from '../readers/async'; import Settings from '../settings'; export default class StreamProvider { protected readonly _reader: AsyncReader = new AsyncReader(this._root, this._settings); protected readonly _stream: Readable = new Readable({ objectMode: true, read: () => { /* noop */ }, destroy: () => { if (!this._reader.isDestroyed) { this._reader.destroy(); } } }); constructor(private readonly _root: string, private readonly _settings: Settings) { } public read(): Readable { this._reader.onError((error) => { this._stream.emit('error', error); }); this._reader.onEntry((entry) => { this._stream.push(entry); }); this._reader.onEnd(() => { this._stream.push(null); }); this._reader.read(); return this._stream; } } package/out/providers/sync.d.ts000666 0000000564 3560116604 013663 0ustar00000000 000000 import SyncReader from '../readers/sync'; import Settings from '../settings'; import { Entry } from '../types'; export default class SyncProvider { private readonly _root; private readonly _settings; protected readonly _reader: SyncReader; constructor(_root: string, _settings: Settings); read(): Entry[]; } //# sourceMappingURL=sync.d.ts.mappackage/out/readers/sync.d.ts000666 0000001011 3560116604 013257 0ustar00000000 000000 import * as fsScandir from '@nodelib/fs.scandir'; import { Entry } from '../types'; import Reader from './reader'; export default class SyncReader extends Reader { protected readonly _scandir: typeof fsScandir.scandirSync; private readonly _storage; private readonly _queue; read(): Entry[]; private _pushToQueue; private _handleQueue; private _handleDirectory; private _handleError; private _handleEntry; private _pushToStorage; } //# sourceMappingURL=sync.d.ts.mappackage/out/providers/sync.spec.d.ts000666 0000000063 3560116604 014606 0ustar00000000 000000 export {}; //# sourceMappingURL=sync.spec.d.ts.mappackage/out/readers/sync.spec.d.ts000666 0000000063 3560116604 014216 0ustar00000000 000000 export {}; //# sourceMappingURL=sync.spec.d.ts.mappackage/src/providers/sync.spec.ts000666 0000001717 3560116604 014353 0ustar00000000 000000 import * as assert from 'assert'; import SyncReader from '../readers/sync'; import Settings from '../settings'; import * as tests from '../tests'; import SyncProvider from './sync'; class TestProvider extends SyncProvider { protected readonly _reader: SyncReader = new tests.TestSyncReader() as unknown as SyncReader; constructor(_root: string, _settings: Settings = new Settings()) { super(_root, _settings); } public get reader(): tests.TestSyncReader { return this._reader as unknown as tests.TestSyncReader; } } describe('Providers → Sync', () => { describe('.read', () => { it('should call reader function with correct set of arguments and got result', () => { const provider = new TestProvider('directory'); const fakeEntry = tests.buildFakeFileEntry(); provider.reader.read.returns([fakeEntry]); const actual = provider.read(); assert.deepStrictEqual(actual, [fakeEntry]); assert.ok(provider.reader.read.called); }); }); }); package/src/readers/sync.spec.ts000666 0000007741 3560116604 013766 0ustar00000000 000000 import * as assert from 'assert'; import * as path from 'path'; import * as sinon from 'sinon'; import Settings from '../settings'; import * as tests from '../tests'; import SyncReader from './sync'; class TestReader extends SyncReader { protected readonly _scandir: sinon.SinonStub = sinon.stub(); constructor(_root: string, _settings: Settings = new Settings()) { super(_root, _settings); } public get scandir(): sinon.SinonStub { return this._scandir; } } describe('Readers → Sync', () => { describe('.read', () => { it('should throw an error when the first call of scandir is broken', () => { const reader = new TestReader('non-exist-directory'); reader.scandir.throws(tests.EPERM_ERRNO); assert.throws(() => reader.read(), { code: 'EPERM' }); }); it('should return empty array when the first call of scandir is broken but this error can be suppressed', () => { const settings = new Settings({ errorFilter: (error) => error.code === 'EPERM' }); const reader = new TestReader('non-exist-directory', settings); reader.scandir.throws(tests.EPERM_ERRNO); const actual = reader.read(); assert.deepStrictEqual(actual, []); }); it('should return entries', () => { const reader = new TestReader('directory'); const fakeDirectoryEntry = tests.buildFakeDirectoryEntry(); const fakeFileEntry = tests.buildFakeFileEntry(); reader.scandir.onFirstCall().returns([fakeDirectoryEntry]); reader.scandir.onSecondCall().returns([fakeFileEntry]); const expected = [fakeDirectoryEntry, fakeFileEntry]; const actual = reader.read(); assert.deepStrictEqual(actual, expected); }); it('should push to results only directories', () => { const settings = new Settings({ entryFilter: (entry) => !entry.dirent.isFile() }); const reader = new TestReader('directory', settings); const fakeDirectoryEntry = tests.buildFakeDirectoryEntry(); const fakeFileEntry = tests.buildFakeFileEntry(); reader.scandir.onFirstCall().returns([fakeDirectoryEntry]); reader.scandir.onSecondCall().returns([fakeFileEntry]); const expected = [fakeDirectoryEntry]; const actual = reader.read(); assert.deepStrictEqual(actual, expected); }); it('should do not read root directory', () => { const settings = new Settings({ deepFilter: () => false }); const reader = new TestReader('directory', settings); const fakeDirectoryEntry = tests.buildFakeDirectoryEntry(); const fakeFileEntry = tests.buildFakeFileEntry(); reader.scandir.onFirstCall().returns([fakeDirectoryEntry]); reader.scandir.onSecondCall().returns([fakeFileEntry]); const expected = [fakeDirectoryEntry]; const actual = reader.read(); assert.deepStrictEqual(actual, expected); }); it('should set base path to entry when the `basePath` option is exist', () => { const settings = new Settings({ basePath: 'base' }); const reader = new TestReader('directory', settings); const fakeDirectoryEntry = tests.buildFakeDirectoryEntry(); const fakeFileEntry = tests.buildFakeFileEntry(); reader.scandir.onFirstCall().returns([fakeDirectoryEntry]); reader.scandir.onSecondCall().returns([fakeFileEntry]); const actual = reader.read(); assert.strictEqual(actual[0].path, path.join('base', fakeDirectoryEntry.name)); assert.strictEqual(actual[1].path, path.join('base', 'fake', fakeFileEntry.name)); }); it('should set base path to entry when the `basePath` option is exist and value is an empty string', () => { const settings = new Settings({ basePath: '' }); const reader = new TestReader('directory', settings); const fakeDirectoryEntry = tests.buildFakeDirectoryEntry(); const fakeFileEntry = tests.buildFakeFileEntry(); reader.scandir.onFirstCall().returns([fakeDirectoryEntry]); reader.scandir.onSecondCall().returns([fakeFileEntry]); const actual = reader.read(); assert.strictEqual(actual[0].path, fakeDirectoryEntry.name); assert.strictEqual(actual[1].path, path.join('fake', fakeFileEntry.name)); }); }); }); package/src/providers/sync.ts000666 0000000601 3560116604 013411 0ustar00000000 000000 import SyncReader from '../readers/sync'; import Settings from '../settings'; import { Entry } from '../types'; export default class SyncProvider { protected readonly _reader: SyncReader = new SyncReader(this._root, this._settings); constructor(private readonly _root: string, private readonly _settings: Settings) { } public read(): Entry[] { return this._reader.read(); } } package/src/readers/sync.ts000666 0000003362 3560116604 013030 0ustar00000000 000000 import * as fsScandir from '@nodelib/fs.scandir'; import { Entry, Errno, QueueItem } from '../types'; import * as common from './common'; import Reader from './reader'; export default class SyncReader extends Reader { protected readonly _scandir: typeof fsScandir.scandirSync = fsScandir.scandirSync; private readonly _storage: Set = new Set(); private readonly _queue: Set = new Set(); public read(): Entry[] { this._pushToQueue(this._root, this._settings.basePath); this._handleQueue(); return [...this._storage]; } private _pushToQueue(directory: string, base?: string): void { this._queue.add({ directory, base }); } private _handleQueue(): void { for (const item of this._queue.values()) { this._handleDirectory(item.directory, item.base); } } private _handleDirectory(directory: string, base?: string): void { try { const entries = this._scandir(directory, this._settings.fsScandirSettings); for (const entry of entries) { this._handleEntry(entry, base); } } catch (error) { this._handleError(error as Errno); } } private _handleError(error: Errno): void { if (!common.isFatalError(this._settings, error)) { return; } throw error; } private _handleEntry(entry: Entry, base?: string): void { const fullpath = entry.path; if (base !== undefined) { entry.path = common.joinPathSegments(base, entry.name, this._settings.pathSegmentSeparator); } if (common.isAppliedFilter(this._settings.entryFilter, entry)) { this._pushToStorage(entry); } if (entry.dirent.isDirectory() && common.isAppliedFilter(this._settings.deepFilter, entry)) { this._pushToQueue(fullpath, entry.path); } } private _pushToStorage(entry: Entry): void { this._storage.add(entry); } } package/tsconfig.tsbuildinfo000666 0000275367 3560116604 013370 0ustar00000000 000000 { "program": { "fileInfos": { "../../../node_modules/typescript/lib/lib.es5.d.ts": { "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", "affectsGlobalScope": true }, "../../../node_modules/typescript/lib/lib.es2015.d.ts": { "version": "dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6", "signature": "dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6", "affectsGlobalScope": false }, "../../../node_modules/typescript/lib/lib.es2016.d.ts": { "version": "7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467", "signature": "7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467", "affectsGlobalScope": false }, "../../../node_modules/typescript/lib/lib.es2017.d.ts": { "version": "8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9", "signature": "8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9", "affectsGlobalScope": false }, "../../../node_modules/typescript/lib/lib.es2018.d.ts": { "version": "5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06", "signature": "5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06", "affectsGlobalScope": false }, "../../../node_modules/typescript/lib/lib.dom.d.ts": { "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", "affectsGlobalScope": true }, "../../../node_modules/typescript/lib/lib.dom.iterable.d.ts": { "version": "fb0c09b697dc42afa84d1587e3c994a2f554d2a45635e4f0618768d16a86b69a", "signature": "fb0c09b697dc42afa84d1587e3c994a2f554d2a45635e4f0618768d16a86b69a", "affectsGlobalScope": true }, "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", "affectsGlobalScope": true }, "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", "affectsGlobalScope": true }, "../../../node_modules/typescript/lib/lib.es2015.core.d.ts": { "version": "63e0cc12d0f77394094bd19e84464f9840af0071e5b9358ced30511efef1d8d2", "signature": "63e0cc12d0f77394094bd19e84464f9840af0071e5b9358ced30511efef1d8d2", "affectsGlobalScope": true }, "../../../node_modules/typescript/lib/lib.es2015.collection.d.ts": { "version": "43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c", "signature": "43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c", "affectsGlobalScope": true }, "../../../node_modules/typescript/lib/lib.es2015.generator.d.ts": { "version": "cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a", "signature": "cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a", "affectsGlobalScope": true }, "../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts": { "version": "42f5e41e5893da663dbf0394268f54f1da4b43dc0ddd2ea4bf471fe5361d6faf", "signature": "42f5e41e5893da663dbf0394268f54f1da4b43dc0ddd2ea4bf471fe5361d6faf", "affectsGlobalScope": true }, "../../../node_modules/typescript/lib/lib.es2015.promise.d.ts": { "version": "0b7a905675e6cb4211c128f0a3aa47d414b275180a299a9aad5d3ec298abbfc4", "signature": "0b7a905675e6cb4211c128f0a3aa47d414b275180a299a9aad5d3ec298abbfc4", "affectsGlobalScope": true }, "../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts": { "version": "dfff68b3c34338f6b307a25d4566de15eed7973b0dc5d69f9fde2bcac1c25315", "signature": "dfff68b3c34338f6b307a25d4566de15eed7973b0dc5d69f9fde2bcac1c25315", "affectsGlobalScope": true }, "../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts": { "version": "cb609802a8698aa28b9c56331d4b53f590ca3c1c3a255350304ae3d06017779d", "signature": "cb609802a8698aa28b9c56331d4b53f590ca3c1c3a255350304ae3d06017779d", "affectsGlobalScope": true }, "../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts": { "version": "3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93", "signature": "3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93", "affectsGlobalScope": true }, "../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts": { "version": "4670208dd7da9d6c774ab1b75c1527a810388c7989c4905de6aaea8561cb9dce", "signature": "4670208dd7da9d6c774ab1b75c1527a810388c7989c4905de6aaea8561cb9dce", "affectsGlobalScope": true }, "../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts": { "version": "3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006", "signature": "3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006", "affectsGlobalScope": true }, "../../../node_modules/typescript/lib/lib.es2017.object.d.ts": { "version": "17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a", "signature": "17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a", "affectsGlobalScope": true }, "../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts": { "version": "d0db416bccdb33975548baf09a42ee8c47eace1aac7907351a000f1e568e7232", "signature": "d0db416bccdb33975548baf09a42ee8c47eace1aac7907351a000f1e568e7232", "affectsGlobalScope": true }, "../../../node_modules/typescript/lib/lib.es2017.string.d.ts": { "version": "6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577", "signature": "6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577", "affectsGlobalScope": true }, "../../../node_modules/typescript/lib/lib.es2017.intl.d.ts": { "version": "12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d", "signature": "12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d", "affectsGlobalScope": true }, "../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts": { "version": "b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e", "signature": "b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e", "affectsGlobalScope": true }, "../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts": { "version": "0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a", "signature": "0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a", "affectsGlobalScope": true }, "../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts": { "version": "a40c4d82bf13fcded295ac29f354eb7d40249613c15e07b53f2fc75e45e16359", "signature": "a40c4d82bf13fcded295ac29f354eb7d40249613c15e07b53f2fc75e45e16359", "affectsGlobalScope": true }, "../../../node_modules/typescript/lib/lib.es2018.intl.d.ts": { "version": "df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e", "signature": "df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e", "affectsGlobalScope": true }, "../../../node_modules/typescript/lib/lib.es2018.promise.d.ts": { "version": "bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c", "signature": "bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c", "affectsGlobalScope": true }, "../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts": { "version": "c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8", "signature": "c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8", "affectsGlobalScope": true }, "../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts": { "version": "4f435f794b7853c55e2ae7cff6206025802aa79232d2867544178f2ca8ff5eaa", "signature": "4f435f794b7853c55e2ae7cff6206025802aa79232d2867544178f2ca8ff5eaa", "affectsGlobalScope": true }, "../../../node_modules/typescript/lib/lib.esnext.intl.d.ts": { "version": "89bf2b7a601b73ea4311eda9c41f86a58994fec1bee3b87c4a14d68d9adcdcbd", "signature": "89bf2b7a601b73ea4311eda9c41f86a58994fec1bee3b87c4a14d68d9adcdcbd", "affectsGlobalScope": true }, "../../../node_modules/typescript/lib/lib.es2017.full.d.ts": { "version": "d2f31f19e1ba6ed59be9259d660a239d9a3fcbbc8e038c6b2009bde34b175fed", "signature": "d2f31f19e1ba6ed59be9259d660a239d9a3fcbbc8e038c6b2009bde34b175fed", "affectsGlobalScope": false }, "../../../node_modules/@types/node/globals.d.ts": { "version": "74d61a149bea97a20b324410e4520796ffc36dcf35b54f03cfd0cfe922bb61cc", "signature": "74d61a149bea97a20b324410e4520796ffc36dcf35b54f03cfd0cfe922bb61cc", "affectsGlobalScope": true }, "../../../node_modules/@types/node/async_hooks.d.ts": { "version": "950e73fe3bcda768b5f593cec3f7137bb7cab709a82be89dd08c2a20568a28e2", "signature": "950e73fe3bcda768b5f593cec3f7137bb7cab709a82be89dd08c2a20568a28e2", "affectsGlobalScope": false }, "../../../node_modules/@types/node/buffer.d.ts": { "version": "61215c1a376bbe8f51cab4cc4ddbf3746387015113c37a84d981d4738c21b878", "signature": "61215c1a376bbe8f51cab4cc4ddbf3746387015113c37a84d981d4738c21b878", "affectsGlobalScope": false }, "../../../node_modules/@types/node/child_process.d.ts": { "version": "5eca801fb67009c5728b88793670f0137b5e31a8f7d1576d5110a1276feaba8c", "signature": "5eca801fb67009c5728b88793670f0137b5e31a8f7d1576d5110a1276feaba8c", "affectsGlobalScope": false }, "../../../node_modules/@types/node/cluster.d.ts": { "version": "ce629710e5e58724902b753212e97861fd73e2aa09f5d88cb6d55dc763cf8c8a", "signature": "ce629710e5e58724902b753212e97861fd73e2aa09f5d88cb6d55dc763cf8c8a", "affectsGlobalScope": false }, "../../../node_modules/@types/node/console.d.ts": { "version": "525c8fc510d9632d2a0a9de2d41c3ac1cdd79ff44d3b45c6d81cacabb683528d", "signature": "525c8fc510d9632d2a0a9de2d41c3ac1cdd79ff44d3b45c6d81cacabb683528d", "affectsGlobalScope": false }, "../../../node_modules/@types/node/constants.d.ts": { "version": "0279383034fae92db8097d0a41350293553599cc9c3c917b60e2542d0dfcbd44", "signature": "0279383034fae92db8097d0a41350293553599cc9c3c917b60e2542d0dfcbd44", "affectsGlobalScope": false }, "../../../node_modules/@types/node/crypto.d.ts": { "version": "9b9f8b151698fb1798f04b8375e240c764f094e730192e6a5353abdb1c709d6f", "signature": "9b9f8b151698fb1798f04b8375e240c764f094e730192e6a5353abdb1c709d6f", "affectsGlobalScope": false }, "../../../node_modules/@types/node/dgram.d.ts": { "version": "37c4598a5f2025c97492e18bed8909ccd10bf26bb5f54d5f6009f9153291af91", "signature": "37c4598a5f2025c97492e18bed8909ccd10bf26bb5f54d5f6009f9153291af91", "affectsGlobalScope": false }, "../../../node_modules/@types/node/dns.d.ts": { "version": "ef226a42de7022eacdfa0f15aabf73b46c47af93044c8ebfab8aa8e3cf6c330c", "signature": "ef226a42de7022eacdfa0f15aabf73b46c47af93044c8ebfab8aa8e3cf6c330c", "affectsGlobalScope": false }, "../../../node_modules/@types/node/domain.d.ts": { "version": "d5b7c8819ce1bd31a45f7675309e145ec28e3aa1b60a8e0637fd0e8916255baa", "signature": "d5b7c8819ce1bd31a45f7675309e145ec28e3aa1b60a8e0637fd0e8916255baa", "affectsGlobalScope": false }, "../../../node_modules/@types/node/events.d.ts": { "version": "76048f3c7325a6c1fa6306d40eb0c8570fa0209d09472d46f9b1221f66edae6f", "signature": "76048f3c7325a6c1fa6306d40eb0c8570fa0209d09472d46f9b1221f66edae6f", "affectsGlobalScope": false }, "../../../node_modules/@types/node/fs.d.ts": { "version": "03be37150cc8fe48fd243169653f15149e0ed4a34eea0cae027b708d39eb01f8", "signature": "03be37150cc8fe48fd243169653f15149e0ed4a34eea0cae027b708d39eb01f8", "affectsGlobalScope": false }, "../../../node_modules/@types/node/http.d.ts": { "version": "f50ba0d2d8f891fa11326db36e6c25fe14bce747cf2bd9b554de3bb2a814f49c", "signature": "f50ba0d2d8f891fa11326db36e6c25fe14bce747cf2bd9b554de3bb2a814f49c", "affectsGlobalScope": false }, "../../../node_modules/@types/node/http2.d.ts": { "version": "48b53111cc4ce136803fbf857cd8de2d5df33895b1af714a87caf87562182e46", "signature": "48b53111cc4ce136803fbf857cd8de2d5df33895b1af714a87caf87562182e46", "affectsGlobalScope": false }, "../../../node_modules/@types/node/https.d.ts": { "version": "dacbe08610729f6343ea9880ea8e737c6d7a6efa4a318d8f6acaf85db4aceed6", "signature": "dacbe08610729f6343ea9880ea8e737c6d7a6efa4a318d8f6acaf85db4aceed6", "affectsGlobalScope": false }, "../../../node_modules/@types/node/inspector.d.ts": { "version": "4218ced3933a31eed1278d350dd63c5900df0f0904f57d61c054d7a4b83dbe4c", "signature": "4218ced3933a31eed1278d350dd63c5900df0f0904f57d61c054d7a4b83dbe4c", "affectsGlobalScope": false }, "../../../node_modules/@types/node/module.d.ts": { "version": "03394bf8deb8781b490ae9266a843fbdf00647947d79e25fcbf1d89a9e9c8a66", "signature": "03394bf8deb8781b490ae9266a843fbdf00647947d79e25fcbf1d89a9e9c8a66", "affectsGlobalScope": false }, "../../../node_modules/@types/node/net.d.ts": { "version": "358398fe4034395d85c87c319cca7a04001434b13dc68d067481ecb374385bfc", "signature": "358398fe4034395d85c87c319cca7a04001434b13dc68d067481ecb374385bfc", "affectsGlobalScope": false }, "../../../node_modules/@types/node/os.d.ts": { "version": "d9bc6f1917c24d862a68d2633e4a32fd586bfe3e412e5d11fd07d8266b94ced5", "signature": "d9bc6f1917c24d862a68d2633e4a32fd586bfe3e412e5d11fd07d8266b94ced5", "affectsGlobalScope": false }, "../../../node_modules/@types/node/path.d.ts": { "version": "5fb30076f0e0e5744db8993648bfb67aadd895f439edad5cce039127a87a8a36", "signature": "5fb30076f0e0e5744db8993648bfb67aadd895f439edad5cce039127a87a8a36", "affectsGlobalScope": false }, "../../../node_modules/@types/node/perf_hooks.d.ts": { "version": "93a8a589862b5ac8fd8bb46426f7b081ba825a5171337dd45de9bf141624d55e", "signature": "93a8a589862b5ac8fd8bb46426f7b081ba825a5171337dd45de9bf141624d55e", "affectsGlobalScope": false }, "../../../node_modules/@types/node/process.d.ts": { "version": "0e0d58f5e90c0a270dac052b9c5ad8ccdfc8271118c2105b361063218d528d6e", "signature": "0e0d58f5e90c0a270dac052b9c5ad8ccdfc8271118c2105b361063218d528d6e", "affectsGlobalScope": true }, "../../../node_modules/@types/node/punycode.d.ts": { "version": "3f6a1fd73c9dc3bd7f4b79bc075297ca6527904df69b0f2c2c94e4c4c7d9a32c", "signature": "3f6a1fd73c9dc3bd7f4b79bc075297ca6527904df69b0f2c2c94e4c4c7d9a32c", "affectsGlobalScope": false }, "../../../node_modules/@types/node/querystring.d.ts": { "version": "758948c06a0d02623c7d4ed357ffa79bdc170de6e004046678774a1bfa9a29bb", "signature": "758948c06a0d02623c7d4ed357ffa79bdc170de6e004046678774a1bfa9a29bb", "affectsGlobalScope": false }, "../../../node_modules/@types/node/readline.d.ts": { "version": "2ca26a43dec700c4b0bdc04b123094f4becffda70e3960f3e10b025f7a15ba8f", "signature": "2ca26a43dec700c4b0bdc04b123094f4becffda70e3960f3e10b025f7a15ba8f", "affectsGlobalScope": false }, "../../../node_modules/@types/node/repl.d.ts": { "version": "27c3f3f672a6ce267f7cc34643231032016fa4b6d195c0725db570de0a7a9f91", "signature": "27c3f3f672a6ce267f7cc34643231032016fa4b6d195c0725db570de0a7a9f91", "affectsGlobalScope": false }, "../../../node_modules/@types/node/stream.d.ts": { "version": "9c581919a8c483f5080487ae8ec1dd398d94027aedf8e77436085e7fab23951a", "signature": "9c581919a8c483f5080487ae8ec1dd398d94027aedf8e77436085e7fab23951a", "affectsGlobalScope": false }, "../../../node_modules/@types/node/string_decoder.d.ts": { "version": "7e62aac2cc9c0710d772047ad89e8d7117f52592c791eb995ce1f865fedab432", "signature": "7e62aac2cc9c0710d772047ad89e8d7117f52592c791eb995ce1f865fedab432", "affectsGlobalScope": false }, "../../../node_modules/@types/node/timers.d.ts": { "version": "b40652bf8ce4a18133b31349086523b219724dca8df3448c1a0742528e7ad5b9", "signature": "b40652bf8ce4a18133b31349086523b219724dca8df3448c1a0742528e7ad5b9", "affectsGlobalScope": false }, "../../../node_modules/@types/node/tls.d.ts": { "version": "48064f81a8354d04808e7b5bddf570aaf19f894cf1d8a2aa1f56c81decd33508", "signature": "48064f81a8354d04808e7b5bddf570aaf19f894cf1d8a2aa1f56c81decd33508", "affectsGlobalScope": false }, "../../../node_modules/@types/node/trace_events.d.ts": { "version": "a77fdb357c78b70142b2fdbbfb72958d69e8f765fd2a3c69946c1018e89d4638", "signature": "a77fdb357c78b70142b2fdbbfb72958d69e8f765fd2a3c69946c1018e89d4638", "affectsGlobalScope": false }, "../../../node_modules/@types/node/tty.d.ts": { "version": "3c2ac350c3baa61fd2b1925844109e098f4376d0768a4643abc82754fd752748", "signature": "3c2ac350c3baa61fd2b1925844109e098f4376d0768a4643abc82754fd752748", "affectsGlobalScope": false }, "../../../node_modules/@types/node/url.d.ts": { "version": "834545a7726e414890371aec1a89b7915963e08e790e093259e8bed429ef15c6", "signature": "834545a7726e414890371aec1a89b7915963e08e790e093259e8bed429ef15c6", "affectsGlobalScope": false }, "../../../node_modules/@types/node/util.d.ts": { "version": "b248fb69886bce18cf6650491f43f0326ed6d59c8fdf7fd63dbd35bf4ef3e2bc", "signature": "b248fb69886bce18cf6650491f43f0326ed6d59c8fdf7fd63dbd35bf4ef3e2bc", "affectsGlobalScope": false }, "../../../node_modules/@types/node/v8.d.ts": { "version": "4407bd5f1d6f748590ba125195eb1d7a003c2de2f3b057456d3ac76a742d2561", "signature": "4407bd5f1d6f748590ba125195eb1d7a003c2de2f3b057456d3ac76a742d2561", "affectsGlobalScope": false }, "../../../node_modules/@types/node/vm.d.ts": { "version": "2b57b7d7191c6e2efc2ed4f87cf1e25c383278ac5d019670406508df42dc34f3", "signature": "2b57b7d7191c6e2efc2ed4f87cf1e25c383278ac5d019670406508df42dc34f3", "affectsGlobalScope": false }, "../../../node_modules/@types/node/worker_threads.d.ts": { "version": "46f0413ecc0d83b047d46dbe03a37c7c760f59f0bb9a8633150e2d9335870675", "signature": "46f0413ecc0d83b047d46dbe03a37c7c760f59f0bb9a8633150e2d9335870675", "affectsGlobalScope": false }, "../../../node_modules/@types/node/zlib.d.ts": { "version": "2ea98f43cfae8dfbefc45d8bd1ec4907bbad33d18203ea8ef8b50d36b97afa35", "signature": "2ea98f43cfae8dfbefc45d8bd1ec4907bbad33d18203ea8ef8b50d36b97afa35", "affectsGlobalScope": false }, "../../../node_modules/@types/node/ts3.3/base.d.ts": { "version": "067b1964df87a4fc98ebffbd2bada6d7ed14a5b032f9071ea39478d82e701a99", "signature": "067b1964df87a4fc98ebffbd2bada6d7ed14a5b032f9071ea39478d82e701a99", "affectsGlobalScope": false }, "../../../node_modules/@types/node/globals.global.d.ts": { "version": "2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1", "signature": "2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1", "affectsGlobalScope": true }, "../../../node_modules/@types/node/wasi.d.ts": { "version": "14a6a3cee450438254c004a6b4f1191ec9977186bdeda07764f2a8d90ef71117", "signature": "14a6a3cee450438254c004a6b4f1191ec9977186bdeda07764f2a8d90ef71117", "affectsGlobalScope": false }, "../../../node_modules/@types/node/ts3.6/base.d.ts": { "version": "d170ea32762c00c660740f2cc0ca9526290ab9d9fb9c72282c1fa53cd1a7728e", "signature": "d170ea32762c00c660740f2cc0ca9526290ab9d9fb9c72282c1fa53cd1a7728e", "affectsGlobalScope": false }, "../../../node_modules/@types/node/assert.d.ts": { "version": "54b2276780dc8d538a71b954b87ea081a1e9f90e7f1195f2daf2bddde0bf52df", "signature": "54b2276780dc8d538a71b954b87ea081a1e9f90e7f1195f2daf2bddde0bf52df", "affectsGlobalScope": false }, "../../../node_modules/@types/node/base.d.ts": { "version": "e61a21e9418f279bc480394a94d1581b2dee73747adcbdef999b6737e34d721b", "signature": "e61a21e9418f279bc480394a94d1581b2dee73747adcbdef999b6737e34d721b", "affectsGlobalScope": false }, "../../../node_modules/@types/node/index.d.ts": { "version": "6fa68653382bd571bc63831e9f9c1307cc52f7310c1470463fe429d84147667d", "signature": "6fa68653382bd571bc63831e9f9c1307cc52f7310c1470463fe429d84147667d", "affectsGlobalScope": false }, "../../../node_modules/@types/minimatch/index.d.ts": { "version": "1d1e6bd176eee5970968423d7e215bfd66828b6db8d54d17afec05a831322633", "signature": "1d1e6bd176eee5970968423d7e215bfd66828b6db8d54d17afec05a831322633", "affectsGlobalScope": false }, "../../../node_modules/@types/glob/index.d.ts": { "version": "393137c76bd922ba70a2f8bf1ade4f59a16171a02fb25918c168d48875b0cfb0", "signature": "393137c76bd922ba70a2f8bf1ade4f59a16171a02fb25918c168d48875b0cfb0", "affectsGlobalScope": false }, "../../../node_modules/@types/rimraf/index.d.ts": { "version": "6462324ef579c47415610a63f1aa8b72f5b5114f8fe8307967f9add2bca634f5", "signature": "6462324ef579c47415610a63f1aa8b72f5b5114f8fe8307967f9add2bca634f5", "affectsGlobalScope": false }, "../fs.scandir/out/adapters/fs.d.ts": { "version": "6cee571d9f8ea88d197d1614e5cf328391e96dff69ca61ab5299a630d0c65822", "signature": "6cee571d9f8ea88d197d1614e5cf328391e96dff69ca61ab5299a630d0c65822", "affectsGlobalScope": false }, "../fs.stat/out/adapters/fs.d.ts": { "version": "ceebf93146ac7b3f85276a2501de57c5cf5bb19742944c958bd831f995b41409", "signature": "ceebf93146ac7b3f85276a2501de57c5cf5bb19742944c958bd831f995b41409", "affectsGlobalScope": false }, "../fs.stat/out/settings.d.ts": { "version": "30c47bd1f03a220a10e8c11708a2c73c04135999ca1a35271605f9683d36b432", "signature": "30c47bd1f03a220a10e8c11708a2c73c04135999ca1a35271605f9683d36b432", "affectsGlobalScope": false }, "../fs.stat/out/types/index.d.ts": { "version": "8b9fa6dfb2bec7abe9937fe049505d896550b2ad600cb7114b6fe2813b5cf180", "signature": "8b9fa6dfb2bec7abe9937fe049505d896550b2ad600cb7114b6fe2813b5cf180", "affectsGlobalScope": false }, "../fs.stat/out/providers/async.d.ts": { "version": "c692034610ac35559227657172f6f76581ee7b16c319c7d5973e19b650f11b9f", "signature": "c692034610ac35559227657172f6f76581ee7b16c319c7d5973e19b650f11b9f", "affectsGlobalScope": false }, "../fs.stat/out/index.d.ts": { "version": "079488cc4bf1eef64297994ef8719c078a86380610beea1d1a920c9436997967", "signature": "079488cc4bf1eef64297994ef8719c078a86380610beea1d1a920c9436997967", "affectsGlobalScope": false }, "../fs.scandir/out/settings.d.ts": { "version": "354b18c096926d3f35b597b6309d9792b6517840bbf972c095930d067e28de83", "signature": "354b18c096926d3f35b597b6309d9792b6517840bbf972c095930d067e28de83", "affectsGlobalScope": false }, "../fs.scandir/out/types/index.d.ts": { "version": "a86bb35bb7b946058e544aba4a7ac5359648d58904184701f1ca23b26b36ccd3", "signature": "a86bb35bb7b946058e544aba4a7ac5359648d58904184701f1ca23b26b36ccd3", "affectsGlobalScope": false }, "../fs.scandir/out/providers/async.d.ts": { "version": "fa316e5f457f8a5ef600f305a60cb0031f0cf07c7c6991b520d353739f56c6ad", "signature": "fa316e5f457f8a5ef600f305a60cb0031f0cf07c7c6991b520d353739f56c6ad", "affectsGlobalScope": false }, "../fs.scandir/out/index.d.ts": { "version": "105b0c9e3b159a1f32ca33bf1cb5ead919ea15bab7143bd99b298ceb687b0e84", "signature": "105b0c9e3b159a1f32ca33bf1cb5ead919ea15bab7143bd99b298ceb687b0e84", "affectsGlobalScope": false }, "./src/types/index.ts": { "version": "6a96e278bdce17d05b4f37250085483a80729a2158c7a867c408c84381028faa", "signature": "e336f6c501a424c6e016b3244b094d5924d06b320cb659aaa0adb647ab5a9fd6", "affectsGlobalScope": false }, "../../../node_modules/fastq/index.d.ts": { "version": "f34118dde11e1e6b2402d7e250e6864b0705ec609c4a8cb6e7a64e94bc3800d1", "signature": "f34118dde11e1e6b2402d7e250e6864b0705ec609c4a8cb6e7a64e94bc3800d1", "affectsGlobalScope": false }, "./src/settings.ts": { "version": "61f27272c17f7fc99cac0143e912a54f8b9f5e5123e88d3557336ac8d4187016", "signature": "07924b2c69a8f7019f242fbb1d9363b98731456d8afc791fc0622c91f60598b7", "affectsGlobalScope": false }, "./src/readers/common.ts": { "version": "32f39c761407b1bf9e1eb841c52f8a55b619933a095789a4cf119d98b54afdf9", "signature": "a19646eafd0213927fb4c08e69088bebf265b3c16726e8cacaa810b35d0dbeb5", "affectsGlobalScope": false }, "./src/readers/reader.ts": { "version": "6c46b344594d6870286dde196a95e72e3d63ed61d02a301cddd5a935ec5058d9", "signature": "b8576d89cac43fe52489662c1218b463cba5197c3bec501e2832f5663327838d", "affectsGlobalScope": false }, "./src/readers/async.ts": { "version": "c7e216abc4caaf7ca77092e124dc378ff3af3143d246d3ba6182a445423c8109", "signature": "e7a91ba8f4fa3f6d166235d9c94fc01d3b055fc4a16bc18dcf0c5c1e0491f22b", "affectsGlobalScope": false }, "./src/providers/async.ts": { "version": "b4666d83483f607e7dacbac5510cf9e108d0d38a79dda411d00857b20614f504", "signature": "51d7fcd7672c0f53f01c84e5ea8ef5f3947e8a385807de7eecdc0b7464c2dd68", "affectsGlobalScope": false }, "./src/providers/stream.ts": { "version": "978511ca1df883f878315565dc638a6b0784b9c929d0103dc62c4c41024a1e10", "signature": "13adf8b7a2325d87ea12edbb2081c0a81a06c575fb3d6c583fd9fc87113e7731", "affectsGlobalScope": false }, "./src/readers/sync.ts": { "version": "521e4d1fb8fb7de21cf7b599a9fd7ea0e6d747c8914cc7119b4a6b3756ff27d1", "signature": "a7d40806b1d5aa763d2c75d00e5d6c3050f70e37ae2ca7f8856c48803d7a7f71", "affectsGlobalScope": false }, "./src/providers/sync.ts": { "version": "a984e8ab39513cc15581fabe10d543e80c265000dabbaf5ff06f7edacd509b86", "signature": "56c12b46bc3bb96c824c0f7c7fe4a032f8dfe4ee77932ad78be7a5cf83eca366", "affectsGlobalScope": false }, "./src/index.ts": { "version": "79a628cf15fdf18ee685eaa0b75066cac2dfa18f80826336f2561e25530426f6", "signature": "96892cc7ee950d2bbded6dc7f03ff50a719df54f6529aa938ce3854fef04ee2a", "affectsGlobalScope": false }, "./src/index.spec.ts": { "version": "c159a9d372124a9f22b0cb9dd242b5354d4c8e7f6f4602792d92b75a87d71605", "signature": "a900cdf2c35bba00b0363cc950bbf88b887976e70a9eae929dad35ef964109d9", "affectsGlobalScope": false }, "./src/settings.spec.ts": { "version": "f68c3c54888592c789941dc2d6a7145a054dfdc359d8f806bb8aa37369b18bda", "signature": "714d2bb322e0442caf181768f049abd17a96d328d87169c2e6c13a86839c4463", "affectsGlobalScope": false }, "../../../node_modules/@types/sinon/ts3.1/index.d.ts": { "version": "168435ab3390620aebf1aa0001b380983582d0849755eeb17f2c501d1fc57587", "signature": "168435ab3390620aebf1aa0001b380983582d0849755eeb17f2c501d1fc57587", "affectsGlobalScope": false }, "../fs.macchiato/out/types.d.ts": { "version": "47b605d1e61f92f418c7879051e5458f8ec00aeacac419a37754066fec42b9ba", "signature": "47b605d1e61f92f418c7879051e5458f8ec00aeacac419a37754066fec42b9ba", "affectsGlobalScope": false }, "../fs.macchiato/out/dirent.d.ts": { "version": "98387ef539ccca1023a5934f6ea2dd87ee8a6c87db31ec7986b9da016c66fc16", "signature": "98387ef539ccca1023a5934f6ea2dd87ee8a6c87db31ec7986b9da016c66fc16", "affectsGlobalScope": false }, "../fs.macchiato/out/stats.d.ts": { "version": "7c70ba0c69002f78ddac880f0096de5b0e78248cf680c1fe1a89439dbf069c5d", "signature": "7c70ba0c69002f78ddac880f0096de5b0e78248cf680c1fe1a89439dbf069c5d", "affectsGlobalScope": false }, "../fs.macchiato/out/index.d.ts": { "version": "e00937f585b9c2f95d9d4e00b4e76427eb9516c70a4470d805451ba2ea00044e", "signature": "e00937f585b9c2f95d9d4e00b4e76427eb9516c70a4470d805451ba2ea00044e", "affectsGlobalScope": false }, "./src/tests/index.ts": { "version": "22b49bb57a9b554cbca55662d2e04f8a4285ef30ed58aaea4e5826b153a60d5b", "signature": "f5bbb15da84f1ca0d672ab2f502188c214936713d1952885f299e63fa9e2b3de", "affectsGlobalScope": false }, "./src/providers/async.spec.ts": { "version": "6f0dd7b1ef7cd2ca78ed2f954047e3c6a9df5bc37329869f6211c9a6ca195b08", "signature": "6ff501c2b9280fbf7322044c48dff6eea6849df3b6ab6844facd9d789988a2c9", "affectsGlobalScope": false }, "./src/providers/index.ts": { "version": "16e0fc0a24f33533156b270c2ac70e822fa952ef4a305db8248798a6d0ae539f", "signature": "a4f97dec3015c794e10ffd88ee8832db66f667c51d49eb5d69b49b0e1efc410c", "affectsGlobalScope": false }, "./src/providers/stream.spec.ts": { "version": "3dfb335689cb23c892fec86351d885e642a68e346e5856cde087b46c74942097", "signature": "91e8c9343cbf6795565dc7a86b811e9a9742d611faed3f588c2da40dccea14e3", "affectsGlobalScope": false }, "./src/providers/sync.spec.ts": { "version": "0f551e41ebec0b876ee7874bc7aac28f1644f4fdc73e9124116a80bbcee49190", "signature": "be22d8b5a836edfac7c9c5ef03e98058ec89f0b98edef8e54ea410187b0bda28", "affectsGlobalScope": false }, "./src/readers/async.spec.ts": { "version": "a08e84ab63d51e9a4dfcfde0ed356aadb19a1fbbe6c48028be0fb1a189ca61f4", "signature": "6ff501c2b9280fbf7322044c48dff6eea6849df3b6ab6844facd9d789988a2c9", "affectsGlobalScope": false }, "./src/readers/common.spec.ts": { "version": "cc13401e9c9d385fe793a35934d1b5f095707709985fccf28c29192c4f88b4d2", "signature": "d030e48e296ebe726e80c9b6e26988c7d9a5c1dba321a5f03d7ce297f130aeae", "affectsGlobalScope": false }, "./src/readers/reader.spec.ts": { "version": "c337c2f503119ded6fa003a726da62a3c060c29ac61d0dff5d8190a7fc2394fc", "signature": "e57ffc6520bdbd5a218c9b963087784eb84d6a96473c82b438b85628455e7827", "affectsGlobalScope": false }, "./src/readers/sync.spec.ts": { "version": "8c863d867daba979948c0e00bb270bfefbf769322a12c574871d84b1317fc1c1", "signature": "be22d8b5a836edfac7c9c5ef03e98058ec89f0b98edef8e54ea410187b0bda28", "affectsGlobalScope": false }, "../../../node_modules/@types/eslint-visitor-keys/index.d.ts": { "version": "725d9be2fd48440256f4deb00649adffdbc5ecd282b09e89d4e200663792c34c", "signature": "725d9be2fd48440256f4deb00649adffdbc5ecd282b09e89d4e200663792c34c", "affectsGlobalScope": false }, "../../../node_modules/@types/fs-extra/index.d.ts": { "version": "aca36e2d27783f4bad7fc1786a532ff76024f0fc8575df48bcd9a5eb452fe7e7", "signature": "aca36e2d27783f4bad7fc1786a532ff76024f0fc8575df48bcd9a5eb452fe7e7", "affectsGlobalScope": false }, "../../../node_modules/@types/highlight.js/index.d.ts": { "version": "21a2fa3722dc0baba2649e040c3121eb38ce84f5afe35ff1c20276132eaa2f2c", "signature": "21a2fa3722dc0baba2649e040c3121eb38ce84f5afe35ff1c20276132eaa2f2c", "affectsGlobalScope": false }, "../../../node_modules/@types/json-schema/index.d.ts": { "version": "b2be568d8ce95fcb26eebd04c035d94825655fdf689bf67d799f5ff8cbbb1024", "signature": "b2be568d8ce95fcb26eebd04c035d94825655fdf689bf67d799f5ff8cbbb1024", "affectsGlobalScope": false }, "../../../node_modules/@types/lodash/common/common.d.ts": { "version": "3594c022901a1c8993b0f78a3f534cfb81e7b619ed215348f7f6882f3db02abc", "signature": "3594c022901a1c8993b0f78a3f534cfb81e7b619ed215348f7f6882f3db02abc", "affectsGlobalScope": false }, "../../../node_modules/@types/lodash/common/array.d.ts": { "version": "d03a1ae3d39f757c9f22e4e775b940a98d86bb50ec85529b59e32a17b65c2b90", "signature": "d03a1ae3d39f757c9f22e4e775b940a98d86bb50ec85529b59e32a17b65c2b90", "affectsGlobalScope": false }, "../../../node_modules/@types/lodash/common/collection.d.ts": { "version": "0c75b204aed9cf6ff1c7b4bed87a3ece0d9d6fc857a6350c0c95ed0c38c814e8", "signature": "0c75b204aed9cf6ff1c7b4bed87a3ece0d9d6fc857a6350c0c95ed0c38c814e8", "affectsGlobalScope": false }, "../../../node_modules/@types/lodash/common/date.d.ts": { "version": "187119ff4f9553676a884e296089e131e8cc01691c546273b1d0089c3533ce42", "signature": "187119ff4f9553676a884e296089e131e8cc01691c546273b1d0089c3533ce42", "affectsGlobalScope": false }, "../../../node_modules/@types/lodash/common/function.d.ts": { "version": "c9f396e71966bd3a890d8a36a6a497dbf260e9b868158ea7824d4b5421210afe", "signature": "c9f396e71966bd3a890d8a36a6a497dbf260e9b868158ea7824d4b5421210afe", "affectsGlobalScope": false }, "../../../node_modules/@types/lodash/common/lang.d.ts": { "version": "509235563ea2b939e1bbe92aae17e71e6a82ceab8f568b45fb4fce7d72523a32", "signature": "509235563ea2b939e1bbe92aae17e71e6a82ceab8f568b45fb4fce7d72523a32", "affectsGlobalScope": false }, "../../../node_modules/@types/lodash/common/math.d.ts": { "version": "9364c7566b0be2f7b70ff5285eb34686f83ccb01bda529b82d23b2a844653bfb", "signature": "9364c7566b0be2f7b70ff5285eb34686f83ccb01bda529b82d23b2a844653bfb", "affectsGlobalScope": false }, "../../../node_modules/@types/lodash/common/number.d.ts": { "version": "00baffbe8a2f2e4875367479489b5d43b5fc1429ecb4a4cc98cfc3009095f52a", "signature": "00baffbe8a2f2e4875367479489b5d43b5fc1429ecb4a4cc98cfc3009095f52a", "affectsGlobalScope": false }, "../../../node_modules/@types/lodash/common/object.d.ts": { "version": "c311349ec71bb69399ffc4092853e7d8a86c1ca39ddb4cd129e775c19d985793", "signature": "c311349ec71bb69399ffc4092853e7d8a86c1ca39ddb4cd129e775c19d985793", "affectsGlobalScope": false }, "../../../node_modules/@types/lodash/common/seq.d.ts": { "version": "3c92b6dfd43cc1c2485d9eba5ff0b74a19bb8725b692773ef1d66dac48cda4bd", "signature": "3c92b6dfd43cc1c2485d9eba5ff0b74a19bb8725b692773ef1d66dac48cda4bd", "affectsGlobalScope": false }, "../../../node_modules/@types/lodash/common/string.d.ts": { "version": "4908e4c00832b26ce77a629de8501b0e23a903c094f9e79a7fec313a15da796a", "signature": "4908e4c00832b26ce77a629de8501b0e23a903c094f9e79a7fec313a15da796a", "affectsGlobalScope": false }, "../../../node_modules/@types/lodash/common/util.d.ts": { "version": "2630a7cbb597e85d713b7ef47f2946d4280d3d4c02733282770741d40672b1a5", "signature": "2630a7cbb597e85d713b7ef47f2946d4280d3d4c02733282770741d40672b1a5", "affectsGlobalScope": false }, "../../../node_modules/@types/lodash/index.d.ts": { "version": "0714e2046df66c0e93c3330d30dbc0565b3e8cd3ee302cf99e4ede6220e5fec8", "signature": "0714e2046df66c0e93c3330d30dbc0565b3e8cd3ee302cf99e4ede6220e5fec8", "affectsGlobalScope": true }, "../../../node_modules/@types/marked/index.d.ts": { "version": "c08a5e873738f5576ae1ca5810b5ebc30509f05bde56c3a3bbdd75d6c0806e6a", "signature": "c08a5e873738f5576ae1ca5810b5ebc30509f05bde56c3a3bbdd75d6c0806e6a", "affectsGlobalScope": false }, "../../../node_modules/@types/minimist/index.d.ts": { "version": "e437d83044ba17246a861aa9691aa14223ff4a9d6f338ab1269c41c758586a88", "signature": "e437d83044ba17246a861aa9691aa14223ff4a9d6f338ab1269c41c758586a88", "affectsGlobalScope": false }, "../../../node_modules/@types/mocha/index.d.ts": { "version": "c4c03cf65951d980ba618ae9601d10438730803fc9c8a1f7b34af8739981e205", "signature": "c4c03cf65951d980ba618ae9601d10438730803fc9c8a1f7b34af8739981e205", "affectsGlobalScope": true }, "../../../node_modules/@types/normalize-package-data/index.d.ts": { "version": "c9ad058b2cc9ce6dc2ed92960d6d009e8c04bef46d3f5312283debca6869f613", "signature": "c9ad058b2cc9ce6dc2ed92960d6d009e8c04bef46d3f5312283debca6869f613", "affectsGlobalScope": false }, "../../../node_modules/@types/run-parallel/index.d.ts": { "version": "eefea34ce2cdb15ab6678c8c7911c27b2c3da267d7922f192f3d2eb0bf621821", "signature": "eefea34ce2cdb15ab6678c8c7911c27b2c3da267d7922f192f3d2eb0bf621821", "affectsGlobalScope": false }, "../../../node_modules/@types/shelljs/index.d.ts": { "version": "b73abc91e3166b1951d302f8008c17e62d32e570e71b2680141f7c3f5d0a990d", "signature": "b73abc91e3166b1951d302f8008c17e62d32e570e71b2680141f7c3f5d0a990d", "affectsGlobalScope": false } }, "options": { "target": 4, "module": 1, "moduleResolution": 2, "strict": true, "alwaysStrict": true, "strictFunctionTypes": true, "strictNullChecks": true, "strictPropertyInitialization": true, "forceConsistentCasingInFileNames": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noFallthroughCasesInSwitch": true, "noUnusedLocals": true, "noUnusedParameters": true, "emitDecoratorMetadata": true, "experimentalDecorators": true, "downlevelIteration": true, "composite": true, "declaration": true, "declarationMap": true, "pretty": true, "rootDir": "./src", "outDir": "./out", "configFilePath": "./tsconfig.json" }, "referencedMap": { "../../../node_modules/@types/fs-extra/index.d.ts": [ "../../../node_modules/@types/node/fs.d.ts", "../../../node_modules/@types/node/index.d.ts" ], "../../../node_modules/@types/glob/index.d.ts": [ "../../../node_modules/@types/minimatch/index.d.ts", "../../../node_modules/@types/node/events.d.ts", "../../../node_modules/@types/node/index.d.ts" ], "../../../node_modules/@types/lodash/common/array.d.ts": [ "../../../node_modules/@types/lodash/common/collection.d.ts", "../../../node_modules/@types/lodash/common/common.d.ts", "../../../node_modules/@types/lodash/common/date.d.ts", "../../../node_modules/@types/lodash/common/function.d.ts", "../../../node_modules/@types/lodash/common/lang.d.ts", "../../../node_modules/@types/lodash/common/math.d.ts", "../../../node_modules/@types/lodash/common/number.d.ts", "../../../node_modules/@types/lodash/common/object.d.ts", "../../../node_modules/@types/lodash/common/seq.d.ts", "../../../node_modules/@types/lodash/common/string.d.ts", "../../../node_modules/@types/lodash/common/util.d.ts", "../../../node_modules/@types/lodash/index.d.ts" ], "../../../node_modules/@types/lodash/common/collection.d.ts": [ "../../../node_modules/@types/lodash/common/array.d.ts", "../../../node_modules/@types/lodash/common/common.d.ts", "../../../node_modules/@types/lodash/common/date.d.ts", "../../../node_modules/@types/lodash/common/function.d.ts", "../../../node_modules/@types/lodash/common/lang.d.ts", "../../../node_modules/@types/lodash/common/math.d.ts", "../../../node_modules/@types/lodash/common/number.d.ts", "../../../node_modules/@types/lodash/common/object.d.ts", "../../../node_modules/@types/lodash/common/seq.d.ts", "../../../node_modules/@types/lodash/common/string.d.ts", "../../../node_modules/@types/lodash/common/util.d.ts", "../../../node_modules/@types/lodash/index.d.ts" ], "../../../node_modules/@types/lodash/common/common.d.ts": [ "../../../node_modules/@types/lodash/common/array.d.ts", "../../../node_modules/@types/lodash/common/collection.d.ts", "../../../node_modules/@types/lodash/common/date.d.ts", "../../../node_modules/@types/lodash/common/function.d.ts", "../../../node_modules/@types/lodash/common/lang.d.ts", "../../../node_modules/@types/lodash/common/math.d.ts", "../../../node_modules/@types/lodash/common/number.d.ts", "../../../node_modules/@types/lodash/common/object.d.ts", "../../../node_modules/@types/lodash/common/seq.d.ts", "../../../node_modules/@types/lodash/common/string.d.ts", "../../../node_modules/@types/lodash/common/util.d.ts", "../../../node_modules/@types/lodash/index.d.ts" ], "../../../node_modules/@types/lodash/common/date.d.ts": [ "../../../node_modules/@types/lodash/common/array.d.ts", "../../../node_modules/@types/lodash/common/collection.d.ts", "../../../node_modules/@types/lodash/common/common.d.ts", "../../../node_modules/@types/lodash/common/function.d.ts", "../../../node_modules/@types/lodash/common/lang.d.ts", "../../../node_modules/@types/lodash/common/math.d.ts", "../../../node_modules/@types/lodash/common/number.d.ts", "../../../node_modules/@types/lodash/common/object.d.ts", "../../../node_modules/@types/lodash/common/seq.d.ts", "../../../node_modules/@types/lodash/common/string.d.ts", "../../../node_modules/@types/lodash/common/util.d.ts", "../../../node_modules/@types/lodash/index.d.ts" ], "../../../node_modules/@types/lodash/common/function.d.ts": [ "../../../node_modules/@types/lodash/common/array.d.ts", "../../../node_modules/@types/lodash/common/collection.d.ts", "../../../node_modules/@types/lodash/common/common.d.ts", "../../../node_modules/@types/lodash/common/date.d.ts", "../../../node_modules/@types/lodash/common/lang.d.ts", "../../../node_modules/@types/lodash/common/math.d.ts", "../../../node_modules/@types/lodash/common/number.d.ts", "../../../node_modules/@types/lodash/common/object.d.ts", "../../../node_modules/@types/lodash/common/seq.d.ts", "../../../node_modules/@types/lodash/common/string.d.ts", "../../../node_modules/@types/lodash/common/util.d.ts", "../../../node_modules/@types/lodash/index.d.ts" ], "../../../node_modules/@types/lodash/common/lang.d.ts": [ "../../../node_modules/@types/lodash/common/array.d.ts", "../../../node_modules/@types/lodash/common/collection.d.ts", "../../../node_modules/@types/lodash/common/common.d.ts", "../../../node_modules/@types/lodash/common/date.d.ts", "../../../node_modules/@types/lodash/common/function.d.ts", "../../../node_modules/@types/lodash/common/math.d.ts", "../../../node_modules/@types/lodash/common/number.d.ts", "../../../node_modules/@types/lodash/common/object.d.ts", "../../../node_modules/@types/lodash/common/seq.d.ts", "../../../node_modules/@types/lodash/common/string.d.ts", "../../../node_modules/@types/lodash/common/util.d.ts", "../../../node_modules/@types/lodash/index.d.ts" ], "../../../node_modules/@types/lodash/common/math.d.ts": [ "../../../node_modules/@types/lodash/common/array.d.ts", "../../../node_modules/@types/lodash/common/collection.d.ts", "../../../node_modules/@types/lodash/common/common.d.ts", "../../../node_modules/@types/lodash/common/date.d.ts", "../../../node_modules/@types/lodash/common/function.d.ts", "../../../node_modules/@types/lodash/common/lang.d.ts", "../../../node_modules/@types/lodash/common/number.d.ts", "../../../node_modules/@types/lodash/common/object.d.ts", "../../../node_modules/@types/lodash/common/seq.d.ts", "../../../node_modules/@types/lodash/common/string.d.ts", "../../../node_modules/@types/lodash/common/util.d.ts", "../../../node_modules/@types/lodash/index.d.ts" ], "../../../node_modules/@types/lodash/common/number.d.ts": [ "../../../node_modules/@types/lodash/common/array.d.ts", "../../../node_modules/@types/lodash/common/collection.d.ts", "../../../node_modules/@types/lodash/common/common.d.ts", "../../../node_modules/@types/lodash/common/date.d.ts", "../../../node_modules/@types/lodash/common/function.d.ts", "../../../node_modules/@types/lodash/common/lang.d.ts", "../../../node_modules/@types/lodash/common/math.d.ts", "../../../node_modules/@types/lodash/common/object.d.ts", "../../../node_modules/@types/lodash/common/seq.d.ts", "../../../node_modules/@types/lodash/common/string.d.ts", "../../../node_modules/@types/lodash/common/util.d.ts", "../../../node_modules/@types/lodash/index.d.ts" ], "../../../node_modules/@types/lodash/common/object.d.ts": [ "../../../node_modules/@types/lodash/common/array.d.ts", "../../../node_modules/@types/lodash/common/collection.d.ts", "../../../node_modules/@types/lodash/common/common.d.ts", "../../../node_modules/@types/lodash/common/date.d.ts", "../../../node_modules/@types/lodash/common/function.d.ts", "../../../node_modules/@types/lodash/common/lang.d.ts", "../../../node_modules/@types/lodash/common/math.d.ts", "../../../node_modules/@types/lodash/common/number.d.ts", "../../../node_modules/@types/lodash/common/seq.d.ts", "../../../node_modules/@types/lodash/common/string.d.ts", "../../../node_modules/@types/lodash/common/util.d.ts", "../../../node_modules/@types/lodash/index.d.ts" ], "../../../node_modules/@types/lodash/common/seq.d.ts": [ "../../../node_modules/@types/lodash/common/array.d.ts", "../../../node_modules/@types/lodash/common/collection.d.ts", "../../../node_modules/@types/lodash/common/common.d.ts", "../../../node_modules/@types/lodash/common/date.d.ts", "../../../node_modules/@types/lodash/common/function.d.ts", "../../../node_modules/@types/lodash/common/lang.d.ts", "../../../node_modules/@types/lodash/common/math.d.ts", "../../../node_modules/@types/lodash/common/number.d.ts", "../../../node_modules/@types/lodash/common/object.d.ts", "../../../node_modules/@types/lodash/common/string.d.ts", "../../../node_modules/@types/lodash/common/util.d.ts", "../../../node_modules/@types/lodash/index.d.ts" ], "../../../node_modules/@types/lodash/common/string.d.ts": [ "../../../node_modules/@types/lodash/common/array.d.ts", "../../../node_modules/@types/lodash/common/collection.d.ts", "../../../node_modules/@types/lodash/common/common.d.ts", "../../../node_modules/@types/lodash/common/date.d.ts", "../../../node_modules/@types/lodash/common/function.d.ts", "../../../node_modules/@types/lodash/common/lang.d.ts", "../../../node_modules/@types/lodash/common/math.d.ts", "../../../node_modules/@types/lodash/common/number.d.ts", "../../../node_modules/@types/lodash/common/object.d.ts", "../../../node_modules/@types/lodash/common/seq.d.ts", "../../../node_modules/@types/lodash/common/util.d.ts", "../../../node_modules/@types/lodash/index.d.ts" ], "../../../node_modules/@types/lodash/common/util.d.ts": [ "../../../node_modules/@types/lodash/common/array.d.ts", "../../../node_modules/@types/lodash/common/collection.d.ts", "../../../node_modules/@types/lodash/common/common.d.ts", "../../../node_modules/@types/lodash/common/date.d.ts", "../../../node_modules/@types/lodash/common/function.d.ts", "../../../node_modules/@types/lodash/common/lang.d.ts", "../../../node_modules/@types/lodash/common/math.d.ts", "../../../node_modules/@types/lodash/common/number.d.ts", "../../../node_modules/@types/lodash/common/object.d.ts", "../../../node_modules/@types/lodash/common/seq.d.ts", "../../../node_modules/@types/lodash/common/string.d.ts", "../../../node_modules/@types/lodash/index.d.ts" ], "../../../node_modules/@types/lodash/index.d.ts": [ "../../../node_modules/@types/lodash/common/array.d.ts", "../../../node_modules/@types/lodash/common/collection.d.ts", "../../../node_modules/@types/lodash/common/common.d.ts", "../../../node_modules/@types/lodash/common/date.d.ts", "../../../node_modules/@types/lodash/common/function.d.ts", "../../../node_modules/@types/lodash/common/lang.d.ts", "../../../node_modules/@types/lodash/common/math.d.ts", "../../../node_modules/@types/lodash/common/number.d.ts", "../../../node_modules/@types/lodash/common/object.d.ts", "../../../node_modules/@types/lodash/common/seq.d.ts", "../../../node_modules/@types/lodash/common/string.d.ts", "../../../node_modules/@types/lodash/common/util.d.ts" ], "../../../node_modules/@types/node/base.d.ts": [ "../../../node_modules/@types/node/assert.d.ts", "../../../node_modules/@types/node/ts3.6/base.d.ts" ], "../../../node_modules/@types/node/child_process.d.ts": [ "../../../node_modules/@types/node/events.d.ts", "../../../node_modules/@types/node/net.d.ts", "../../../node_modules/@types/node/stream.d.ts" ], "../../../node_modules/@types/node/cluster.d.ts": [ "../../../node_modules/@types/node/child_process.d.ts", "../../../node_modules/@types/node/events.d.ts", "../../../node_modules/@types/node/net.d.ts" ], "../../../node_modules/@types/node/crypto.d.ts": [ "../../../node_modules/@types/node/stream.d.ts" ], "../../../node_modules/@types/node/dgram.d.ts": [ "../../../node_modules/@types/node/dns.d.ts", "../../../node_modules/@types/node/events.d.ts", "../../../node_modules/@types/node/net.d.ts" ], "../../../node_modules/@types/node/domain.d.ts": [ "../../../node_modules/@types/node/events.d.ts" ], "../../../node_modules/@types/node/fs.d.ts": [ "../../../node_modules/@types/node/events.d.ts", "../../../node_modules/@types/node/stream.d.ts", "../../../node_modules/@types/node/url.d.ts" ], "../../../node_modules/@types/node/http.d.ts": [ "../../../node_modules/@types/node/events.d.ts", "../../../node_modules/@types/node/net.d.ts", "../../../node_modules/@types/node/stream.d.ts", "../../../node_modules/@types/node/url.d.ts" ], "../../../node_modules/@types/node/http2.d.ts": [ "../../../node_modules/@types/node/events.d.ts", "../../../node_modules/@types/node/fs.d.ts", "../../../node_modules/@types/node/http.d.ts", "../../../node_modules/@types/node/net.d.ts", "../../../node_modules/@types/node/stream.d.ts", "../../../node_modules/@types/node/tls.d.ts", "../../../node_modules/@types/node/url.d.ts" ], "../../../node_modules/@types/node/https.d.ts": [ "../../../node_modules/@types/node/events.d.ts", "../../../node_modules/@types/node/http.d.ts", "../../../node_modules/@types/node/tls.d.ts", "../../../node_modules/@types/node/url.d.ts" ], "../../../node_modules/@types/node/index.d.ts": [ "../../../node_modules/@types/node/base.d.ts" ], "../../../node_modules/@types/node/inspector.d.ts": [ "../../../node_modules/@types/node/events.d.ts" ], "../../../node_modules/@types/node/net.d.ts": [ "../../../node_modules/@types/node/dns.d.ts", "../../../node_modules/@types/node/events.d.ts", "../../../node_modules/@types/node/stream.d.ts" ], "../../../node_modules/@types/node/perf_hooks.d.ts": [ "../../../node_modules/@types/node/async_hooks.d.ts" ], "../../../node_modules/@types/node/process.d.ts": [ "../../../node_modules/@types/node/tty.d.ts" ], "../../../node_modules/@types/node/readline.d.ts": [ "../../../node_modules/@types/node/events.d.ts", "../../../node_modules/@types/node/stream.d.ts" ], "../../../node_modules/@types/node/repl.d.ts": [ "../../../node_modules/@types/node/readline.d.ts", "../../../node_modules/@types/node/util.d.ts", "../../../node_modules/@types/node/vm.d.ts" ], "../../../node_modules/@types/node/stream.d.ts": [ "../../../node_modules/@types/node/events.d.ts" ], "../../../node_modules/@types/node/tls.d.ts": [ "../../../node_modules/@types/node/crypto.d.ts", "../../../node_modules/@types/node/dns.d.ts", "../../../node_modules/@types/node/net.d.ts", "../../../node_modules/@types/node/stream.d.ts" ], "../../../node_modules/@types/node/ts3.3/base.d.ts": [ "../../../node_modules/@types/node/async_hooks.d.ts", "../../../node_modules/@types/node/buffer.d.ts", "../../../node_modules/@types/node/child_process.d.ts", "../../../node_modules/@types/node/cluster.d.ts", "../../../node_modules/@types/node/console.d.ts", "../../../node_modules/@types/node/constants.d.ts", "../../../node_modules/@types/node/crypto.d.ts", "../../../node_modules/@types/node/dgram.d.ts", "../../../node_modules/@types/node/dns.d.ts", "../../../node_modules/@types/node/domain.d.ts", "../../../node_modules/@types/node/events.d.ts", "../../../node_modules/@types/node/fs.d.ts", "../../../node_modules/@types/node/globals.d.ts", "../../../node_modules/@types/node/http.d.ts", "../../../node_modules/@types/node/http2.d.ts", "../../../node_modules/@types/node/https.d.ts", "../../../node_modules/@types/node/inspector.d.ts", "../../../node_modules/@types/node/module.d.ts", "../../../node_modules/@types/node/net.d.ts", "../../../node_modules/@types/node/os.d.ts", "../../../node_modules/@types/node/path.d.ts", "../../../node_modules/@types/node/perf_hooks.d.ts", "../../../node_modules/@types/node/process.d.ts", "../../../node_modules/@types/node/punycode.d.ts", "../../../node_modules/@types/node/querystring.d.ts", "../../../node_modules/@types/node/readline.d.ts", "../../../node_modules/@types/node/repl.d.ts", "../../../node_modules/@types/node/stream.d.ts", "../../../node_modules/@types/node/string_decoder.d.ts", "../../../node_modules/@types/node/timers.d.ts", "../../../node_modules/@types/node/tls.d.ts", "../../../node_modules/@types/node/trace_events.d.ts", "../../../node_modules/@types/node/tty.d.ts", "../../../node_modules/@types/node/url.d.ts", "../../../node_modules/@types/node/util.d.ts", "../../../node_modules/@types/node/v8.d.ts", "../../../node_modules/@types/node/vm.d.ts", "../../../node_modules/@types/node/worker_threads.d.ts", "../../../node_modules/@types/node/zlib.d.ts" ], "../../../node_modules/@types/node/ts3.6/base.d.ts": [ "../../../node_modules/@types/node/globals.global.d.ts", "../../../node_modules/@types/node/ts3.3/base.d.ts", "../../../node_modules/@types/node/wasi.d.ts" ], "../../../node_modules/@types/node/tty.d.ts": [ "../../../node_modules/@types/node/net.d.ts" ], "../../../node_modules/@types/node/url.d.ts": [ "../../../node_modules/@types/node/querystring.d.ts" ], "../../../node_modules/@types/node/v8.d.ts": [ "../../../node_modules/@types/node/stream.d.ts" ], "../../../node_modules/@types/node/worker_threads.d.ts": [ "../../../node_modules/@types/node/events.d.ts", "../../../node_modules/@types/node/fs.d.ts", "../../../node_modules/@types/node/stream.d.ts", "../../../node_modules/@types/node/vm.d.ts" ], "../../../node_modules/@types/node/zlib.d.ts": [ "../../../node_modules/@types/node/stream.d.ts" ], "../../../node_modules/@types/rimraf/index.d.ts": [ "../../../node_modules/@types/glob/index.d.ts", "../../../node_modules/@types/node/fs.d.ts", "../../../node_modules/@types/node/index.d.ts" ], "../../../node_modules/@types/shelljs/index.d.ts": [ "../../../node_modules/@types/glob/index.d.ts", "../../../node_modules/@types/node/child_process.d.ts", "../../../node_modules/@types/node/index.d.ts" ], "../fs.macchiato/out/dirent.d.ts": [ "../../../node_modules/@types/node/fs.d.ts", "../../../node_modules/@types/node/index.d.ts", "../fs.macchiato/out/types.d.ts" ], "../fs.macchiato/out/index.d.ts": [ "../fs.macchiato/out/dirent.d.ts", "../fs.macchiato/out/stats.d.ts" ], "../fs.macchiato/out/stats.d.ts": [ "../../../node_modules/@types/node/fs.d.ts", "../../../node_modules/@types/node/index.d.ts", "../fs.macchiato/out/types.d.ts" ], "../fs.scandir/out/adapters/fs.d.ts": [ "../../../node_modules/@types/node/fs.d.ts", "../../../node_modules/@types/node/index.d.ts" ], "../fs.scandir/out/index.d.ts": [ "../fs.scandir/out/adapters/fs.d.ts", "../fs.scandir/out/providers/async.d.ts", "../fs.scandir/out/settings.d.ts", "../fs.scandir/out/types/index.d.ts" ], "../fs.scandir/out/providers/async.d.ts": [ "../../../node_modules/@types/node/index.d.ts", "../fs.scandir/out/settings.d.ts", "../fs.scandir/out/types/index.d.ts" ], "../fs.scandir/out/settings.d.ts": [ "../fs.scandir/out/adapters/fs.d.ts", "../fs.stat/out/index.d.ts" ], "../fs.scandir/out/types/index.d.ts": [ "../../../node_modules/@types/node/fs.d.ts", "../../../node_modules/@types/node/index.d.ts" ], "../fs.stat/out/adapters/fs.d.ts": [ "../../../node_modules/@types/node/fs.d.ts", "../../../node_modules/@types/node/index.d.ts" ], "../fs.stat/out/index.d.ts": [ "../fs.stat/out/adapters/fs.d.ts", "../fs.stat/out/providers/async.d.ts", "../fs.stat/out/settings.d.ts", "../fs.stat/out/types/index.d.ts" ], "../fs.stat/out/providers/async.d.ts": [ "../fs.stat/out/settings.d.ts", "../fs.stat/out/types/index.d.ts" ], "../fs.stat/out/settings.d.ts": [ "../fs.stat/out/adapters/fs.d.ts" ], "../fs.stat/out/types/index.d.ts": [ "../../../node_modules/@types/node/fs.d.ts", "../../../node_modules/@types/node/index.d.ts" ], "./src/index.spec.ts": [ "../../../node_modules/@types/node/assert.d.ts", "../../../node_modules/@types/node/fs.d.ts", "../../../node_modules/@types/node/stream.d.ts", "../../../node_modules/@types/rimraf/index.d.ts", "./src/index.ts", "./src/types/index.ts" ], "./src/index.ts": [ "../../../node_modules/@types/node/stream.d.ts", "../fs.scandir/out/index.d.ts", "./src/providers/async.ts", "./src/providers/stream.ts", "./src/providers/sync.ts", "./src/settings.ts", "./src/types/index.ts" ], "./src/providers/async.spec.ts": [ "../../../node_modules/@types/node/assert.d.ts", "../../../node_modules/@types/sinon/ts3.1/index.d.ts", "./src/providers/async.ts", "./src/readers/async.ts", "./src/settings.ts", "./src/tests/index.ts" ], "./src/providers/async.ts": [ "./src/readers/async.ts", "./src/settings.ts", "./src/types/index.ts" ], "./src/providers/index.ts": [ "./src/providers/async.ts", "./src/providers/stream.ts", "./src/providers/sync.ts" ], "./src/providers/stream.spec.ts": [ "../../../node_modules/@types/node/assert.d.ts", "../../../node_modules/@types/node/stream.d.ts", "../../../node_modules/@types/sinon/ts3.1/index.d.ts", "./src/providers/stream.ts", "./src/readers/async.ts", "./src/settings.ts", "./src/tests/index.ts" ], "./src/providers/stream.ts": [ "../../../node_modules/@types/node/stream.d.ts", "./src/readers/async.ts", "./src/settings.ts" ], "./src/providers/sync.spec.ts": [ "../../../node_modules/@types/node/assert.d.ts", "./src/providers/sync.ts", "./src/readers/sync.ts", "./src/settings.ts", "./src/tests/index.ts" ], "./src/providers/sync.ts": [ "./src/readers/sync.ts", "./src/settings.ts", "./src/types/index.ts" ], "./src/readers/async.spec.ts": [ "../../../node_modules/@types/node/assert.d.ts", "../../../node_modules/@types/node/path.d.ts", "../../../node_modules/@types/sinon/ts3.1/index.d.ts", "../fs.scandir/out/index.d.ts", "./src/readers/async.ts", "./src/settings.ts", "./src/tests/index.ts", "./src/types/index.ts" ], "./src/readers/async.ts": [ "../../../node_modules/@types/node/events.d.ts", "../../../node_modules/fastq/index.d.ts", "../fs.scandir/out/index.d.ts", "./src/readers/common.ts", "./src/readers/reader.ts", "./src/settings.ts", "./src/types/index.ts" ], "./src/readers/common.spec.ts": [ "../../../node_modules/@types/node/assert.d.ts", "../../../node_modules/@types/node/path.d.ts", "./src/readers/common.ts", "./src/settings.ts", "./src/tests/index.ts" ], "./src/readers/common.ts": [ "./src/settings.ts", "./src/types/index.ts" ], "./src/readers/reader.spec.ts": [ "../../../node_modules/@types/node/assert.d.ts", "../../../node_modules/@types/node/path.d.ts", "./src/readers/reader.ts", "./src/settings.ts" ], "./src/readers/reader.ts": [ "./src/readers/common.ts", "./src/settings.ts" ], "./src/readers/sync.spec.ts": [ "../../../node_modules/@types/node/assert.d.ts", "../../../node_modules/@types/node/path.d.ts", "../../../node_modules/@types/sinon/ts3.1/index.d.ts", "./src/readers/sync.ts", "./src/settings.ts", "./src/tests/index.ts" ], "./src/readers/sync.ts": [ "../fs.scandir/out/index.d.ts", "./src/readers/common.ts", "./src/readers/reader.ts", "./src/types/index.ts" ], "./src/settings.spec.ts": [ "../../../node_modules/@types/node/assert.d.ts", "../fs.scandir/out/index.d.ts", "./src/settings.ts" ], "./src/settings.ts": [ "../../../node_modules/@types/node/path.d.ts", "../fs.scandir/out/index.d.ts", "./src/types/index.ts" ], "./src/tests/index.ts": [ "../../../node_modules/@types/sinon/ts3.1/index.d.ts", "../fs.macchiato/out/index.d.ts", "./src/types/index.ts" ], "./src/types/index.ts": [ "../fs.scandir/out/index.d.ts" ] }, "exportedModulesMap": { "../../../node_modules/@types/fs-extra/index.d.ts": [ "../../../node_modules/@types/node/fs.d.ts", "../../../node_modules/@types/node/index.d.ts" ], "../../../node_modules/@types/glob/index.d.ts": [ "../../../node_modules/@types/minimatch/index.d.ts", "../../../node_modules/@types/node/events.d.ts", "../../../node_modules/@types/node/index.d.ts" ], "../../../node_modules/@types/lodash/common/array.d.ts": [ "../../../node_modules/@types/lodash/common/collection.d.ts", "../../../node_modules/@types/lodash/common/common.d.ts", "../../../node_modules/@types/lodash/common/date.d.ts", "../../../node_modules/@types/lodash/common/function.d.ts", "../../../node_modules/@types/lodash/common/lang.d.ts", "../../../node_modules/@types/lodash/common/math.d.ts", "../../../node_modules/@types/lodash/common/number.d.ts", "../../../node_modules/@types/lodash/common/object.d.ts", "../../../node_modules/@types/lodash/common/seq.d.ts", "../../../node_modules/@types/lodash/common/string.d.ts", "../../../node_modules/@types/lodash/common/util.d.ts", "../../../node_modules/@types/lodash/index.d.ts" ], "../../../node_modules/@types/lodash/common/collection.d.ts": [ "../../../node_modules/@types/lodash/common/array.d.ts", "../../../node_modules/@types/lodash/common/common.d.ts", "../../../node_modules/@types/lodash/common/date.d.ts", "../../../node_modules/@types/lodash/common/function.d.ts", "../../../node_modules/@types/lodash/common/lang.d.ts", "../../../node_modules/@types/lodash/common/math.d.ts", "../../../node_modules/@types/lodash/common/number.d.ts", "../../../node_modules/@types/lodash/common/object.d.ts", "../../../node_modules/@types/lodash/common/seq.d.ts", "../../../node_modules/@types/lodash/common/string.d.ts", "../../../node_modules/@types/lodash/common/util.d.ts", "../../../node_modules/@types/lodash/index.d.ts" ], "../../../node_modules/@types/lodash/common/common.d.ts": [ "../../../node_modules/@types/lodash/common/array.d.ts", "../../../node_modules/@types/lodash/common/collection.d.ts", "../../../node_modules/@types/lodash/common/date.d.ts", "../../../node_modules/@types/lodash/common/function.d.ts", "../../../node_modules/@types/lodash/common/lang.d.ts", "../../../node_modules/@types/lodash/common/math.d.ts", "../../../node_modules/@types/lodash/common/number.d.ts", "../../../node_modules/@types/lodash/common/object.d.ts", "../../../node_modules/@types/lodash/common/seq.d.ts", "../../../node_modules/@types/lodash/common/string.d.ts", "../../../node_modules/@types/lodash/common/util.d.ts", "../../../node_modules/@types/lodash/index.d.ts" ], "../../../node_modules/@types/lodash/common/date.d.ts": [ "../../../node_modules/@types/lodash/common/array.d.ts", "../../../node_modules/@types/lodash/common/collection.d.ts", "../../../node_modules/@types/lodash/common/common.d.ts", "../../../node_modules/@types/lodash/common/function.d.ts", "../../../node_modules/@types/lodash/common/lang.d.ts", "../../../node_modules/@types/lodash/common/math.d.ts", "../../../node_modules/@types/lodash/common/number.d.ts", "../../../node_modules/@types/lodash/common/object.d.ts", "../../../node_modules/@types/lodash/common/seq.d.ts", "../../../node_modules/@types/lodash/common/string.d.ts", "../../../node_modules/@types/lodash/common/util.d.ts", "../../../node_modules/@types/lodash/index.d.ts" ], "../../../node_modules/@types/lodash/common/function.d.ts": [ "../../../node_modules/@types/lodash/common/array.d.ts", "../../../node_modules/@types/lodash/common/collection.d.ts", "../../../node_modules/@types/lodash/common/common.d.ts", "../../../node_modules/@types/lodash/common/date.d.ts", "../../../node_modules/@types/lodash/common/lang.d.ts", "../../../node_modules/@types/lodash/common/math.d.ts", "../../../node_modules/@types/lodash/common/number.d.ts", "../../../node_modules/@types/lodash/common/object.d.ts", "../../../node_modules/@types/lodash/common/seq.d.ts", "../../../node_modules/@types/lodash/common/string.d.ts", "../../../node_modules/@types/lodash/common/util.d.ts", "../../../node_modules/@types/lodash/index.d.ts" ], "../../../node_modules/@types/lodash/common/lang.d.ts": [ "../../../node_modules/@types/lodash/common/array.d.ts", "../../../node_modules/@types/lodash/common/collection.d.ts", "../../../node_modules/@types/lodash/common/common.d.ts", "../../../node_modules/@types/lodash/common/date.d.ts", "../../../node_modules/@types/lodash/common/function.d.ts", "../../../node_modules/@types/lodash/common/math.d.ts", "../../../node_modules/@types/lodash/common/number.d.ts", "../../../node_modules/@types/lodash/common/object.d.ts", "../../../node_modules/@types/lodash/common/seq.d.ts", "../../../node_modules/@types/lodash/common/string.d.ts", "../../../node_modules/@types/lodash/common/util.d.ts", "../../../node_modules/@types/lodash/index.d.ts" ], "../../../node_modules/@types/lodash/common/math.d.ts": [ "../../../node_modules/@types/lodash/common/array.d.ts", "../../../node_modules/@types/lodash/common/collection.d.ts", "../../../node_modules/@types/lodash/common/common.d.ts", "../../../node_modules/@types/lodash/common/date.d.ts", "../../../node_modules/@types/lodash/common/function.d.ts", "../../../node_modules/@types/lodash/common/lang.d.ts", "../../../node_modules/@types/lodash/common/number.d.ts", "../../../node_modules/@types/lodash/common/object.d.ts", "../../../node_modules/@types/lodash/common/seq.d.ts", "../../../node_modules/@types/lodash/common/string.d.ts", "../../../node_modules/@types/lodash/common/util.d.ts", "../../../node_modules/@types/lodash/index.d.ts" ], "../../../node_modules/@types/lodash/common/number.d.ts": [ "../../../node_modules/@types/lodash/common/array.d.ts", "../../../node_modules/@types/lodash/common/collection.d.ts", "../../../node_modules/@types/lodash/common/common.d.ts", "../../../node_modules/@types/lodash/common/date.d.ts", "../../../node_modules/@types/lodash/common/function.d.ts", "../../../node_modules/@types/lodash/common/lang.d.ts", "../../../node_modules/@types/lodash/common/math.d.ts", "../../../node_modules/@types/lodash/common/object.d.ts", "../../../node_modules/@types/lodash/common/seq.d.ts", "../../../node_modules/@types/lodash/common/string.d.ts", "../../../node_modules/@types/lodash/common/util.d.ts", "../../../node_modules/@types/lodash/index.d.ts" ], "../../../node_modules/@types/lodash/common/object.d.ts": [ "../../../node_modules/@types/lodash/common/array.d.ts", "../../../node_modules/@types/lodash/common/collection.d.ts", "../../../node_modules/@types/lodash/common/common.d.ts", "../../../node_modules/@types/lodash/common/date.d.ts", "../../../node_modules/@types/lodash/common/function.d.ts", "../../../node_modules/@types/lodash/common/lang.d.ts", "../../../node_modules/@types/lodash/common/math.d.ts", "../../../node_modules/@types/lodash/common/number.d.ts", "../../../node_modules/@types/lodash/common/seq.d.ts", "../../../node_modules/@types/lodash/common/string.d.ts", "../../../node_modules/@types/lodash/common/util.d.ts", "../../../node_modules/@types/lodash/index.d.ts" ], "../../../node_modules/@types/lodash/common/seq.d.ts": [ "../../../node_modules/@types/lodash/common/array.d.ts", "../../../node_modules/@types/lodash/common/collection.d.ts", "../../../node_modules/@types/lodash/common/common.d.ts", "../../../node_modules/@types/lodash/common/date.d.ts", "../../../node_modules/@types/lodash/common/function.d.ts", "../../../node_modules/@types/lodash/common/lang.d.ts", "../../../node_modules/@types/lodash/common/math.d.ts", "../../../node_modules/@types/lodash/common/number.d.ts", "../../../node_modules/@types/lodash/common/object.d.ts", "../../../node_modules/@types/lodash/common/string.d.ts", "../../../node_modules/@types/lodash/common/util.d.ts", "../../../node_modules/@types/lodash/index.d.ts" ], "../../../node_modules/@types/lodash/common/string.d.ts": [ "../../../node_modules/@types/lodash/common/array.d.ts", "../../../node_modules/@types/lodash/common/collection.d.ts", "../../../node_modules/@types/lodash/common/common.d.ts", "../../../node_modules/@types/lodash/common/date.d.ts", "../../../node_modules/@types/lodash/common/function.d.ts", "../../../node_modules/@types/lodash/common/lang.d.ts", "../../../node_modules/@types/lodash/common/math.d.ts", "../../../node_modules/@types/lodash/common/number.d.ts", "../../../node_modules/@types/lodash/common/object.d.ts", "../../../node_modules/@types/lodash/common/seq.d.ts", "../../../node_modules/@types/lodash/common/util.d.ts", "../../../node_modules/@types/lodash/index.d.ts" ], "../../../node_modules/@types/lodash/common/util.d.ts": [ "../../../node_modules/@types/lodash/common/array.d.ts", "../../../node_modules/@types/lodash/common/collection.d.ts", "../../../node_modules/@types/lodash/common/common.d.ts", "../../../node_modules/@types/lodash/common/date.d.ts", "../../../node_modules/@types/lodash/common/function.d.ts", "../../../node_modules/@types/lodash/common/lang.d.ts", "../../../node_modules/@types/lodash/common/math.d.ts", "../../../node_modules/@types/lodash/common/number.d.ts", "../../../node_modules/@types/lodash/common/object.d.ts", "../../../node_modules/@types/lodash/common/seq.d.ts", "../../../node_modules/@types/lodash/common/string.d.ts", "../../../node_modules/@types/lodash/index.d.ts" ], "../../../node_modules/@types/lodash/index.d.ts": [ "../../../node_modules/@types/lodash/common/array.d.ts", "../../../node_modules/@types/lodash/common/collection.d.ts", "../../../node_modules/@types/lodash/common/common.d.ts", "../../../node_modules/@types/lodash/common/date.d.ts", "../../../node_modules/@types/lodash/common/function.d.ts", "../../../node_modules/@types/lodash/common/lang.d.ts", "../../../node_modules/@types/lodash/common/math.d.ts", "../../../node_modules/@types/lodash/common/number.d.ts", "../../../node_modules/@types/lodash/common/object.d.ts", "../../../node_modules/@types/lodash/common/seq.d.ts", "../../../node_modules/@types/lodash/common/string.d.ts", "../../../node_modules/@types/lodash/common/util.d.ts" ], "../../../node_modules/@types/node/base.d.ts": [ "../../../node_modules/@types/node/assert.d.ts", "../../../node_modules/@types/node/ts3.6/base.d.ts" ], "../../../node_modules/@types/node/child_process.d.ts": [ "../../../node_modules/@types/node/events.d.ts", "../../../node_modules/@types/node/net.d.ts", "../../../node_modules/@types/node/stream.d.ts" ], "../../../node_modules/@types/node/cluster.d.ts": [ "../../../node_modules/@types/node/child_process.d.ts", "../../../node_modules/@types/node/events.d.ts", "../../../node_modules/@types/node/net.d.ts" ], "../../../node_modules/@types/node/crypto.d.ts": [ "../../../node_modules/@types/node/stream.d.ts" ], "../../../node_modules/@types/node/dgram.d.ts": [ "../../../node_modules/@types/node/dns.d.ts", "../../../node_modules/@types/node/events.d.ts", "../../../node_modules/@types/node/net.d.ts" ], "../../../node_modules/@types/node/domain.d.ts": [ "../../../node_modules/@types/node/events.d.ts" ], "../../../node_modules/@types/node/fs.d.ts": [ "../../../node_modules/@types/node/events.d.ts", "../../../node_modules/@types/node/stream.d.ts", "../../../node_modules/@types/node/url.d.ts" ], "../../../node_modules/@types/node/http.d.ts": [ "../../../node_modules/@types/node/events.d.ts", "../../../node_modules/@types/node/net.d.ts", "../../../node_modules/@types/node/stream.d.ts", "../../../node_modules/@types/node/url.d.ts" ], "../../../node_modules/@types/node/http2.d.ts": [ "../../../node_modules/@types/node/events.d.ts", "../../../node_modules/@types/node/fs.d.ts", "../../../node_modules/@types/node/http.d.ts", "../../../node_modules/@types/node/net.d.ts", "../../../node_modules/@types/node/stream.d.ts", "../../../node_modules/@types/node/tls.d.ts", "../../../node_modules/@types/node/url.d.ts" ], "../../../node_modules/@types/node/https.d.ts": [ "../../../node_modules/@types/node/events.d.ts", "../../../node_modules/@types/node/http.d.ts", "../../../node_modules/@types/node/tls.d.ts", "../../../node_modules/@types/node/url.d.ts" ], "../../../node_modules/@types/node/index.d.ts": [ "../../../node_modules/@types/node/base.d.ts" ], "../../../node_modules/@types/node/inspector.d.ts": [ "../../../node_modules/@types/node/events.d.ts" ], "../../../node_modules/@types/node/net.d.ts": [ "../../../node_modules/@types/node/dns.d.ts", "../../../node_modules/@types/node/events.d.ts", "../../../node_modules/@types/node/stream.d.ts" ], "../../../node_modules/@types/node/perf_hooks.d.ts": [ "../../../node_modules/@types/node/async_hooks.d.ts" ], "../../../node_modules/@types/node/process.d.ts": [ "../../../node_modules/@types/node/tty.d.ts" ], "../../../node_modules/@types/node/readline.d.ts": [ "../../../node_modules/@types/node/events.d.ts", "../../../node_modules/@types/node/stream.d.ts" ], "../../../node_modules/@types/node/repl.d.ts": [ "../../../node_modules/@types/node/readline.d.ts", "../../../node_modules/@types/node/util.d.ts", "../../../node_modules/@types/node/vm.d.ts" ], "../../../node_modules/@types/node/stream.d.ts": [ "../../../node_modules/@types/node/events.d.ts" ], "../../../node_modules/@types/node/tls.d.ts": [ "../../../node_modules/@types/node/crypto.d.ts", "../../../node_modules/@types/node/dns.d.ts", "../../../node_modules/@types/node/net.d.ts", "../../../node_modules/@types/node/stream.d.ts" ], "../../../node_modules/@types/node/ts3.3/base.d.ts": [ "../../../node_modules/@types/node/async_hooks.d.ts", "../../../node_modules/@types/node/buffer.d.ts", "../../../node_modules/@types/node/child_process.d.ts", "../../../node_modules/@types/node/cluster.d.ts", "../../../node_modules/@types/node/console.d.ts", "../../../node_modules/@types/node/constants.d.ts", "../../../node_modules/@types/node/crypto.d.ts", "../../../node_modules/@types/node/dgram.d.ts", "../../../node_modules/@types/node/dns.d.ts", "../../../node_modules/@types/node/domain.d.ts", "../../../node_modules/@types/node/events.d.ts", "../../../node_modules/@types/node/fs.d.ts", "../../../node_modules/@types/node/globals.d.ts", "../../../node_modules/@types/node/http.d.ts", "../../../node_modules/@types/node/http2.d.ts", "../../../node_modules/@types/node/https.d.ts", "../../../node_modules/@types/node/inspector.d.ts", "../../../node_modules/@types/node/module.d.ts", "../../../node_modules/@types/node/net.d.ts", "../../../node_modules/@types/node/os.d.ts", "../../../node_modules/@types/node/path.d.ts", "../../../node_modules/@types/node/perf_hooks.d.ts", "../../../node_modules/@types/node/process.d.ts", "../../../node_modules/@types/node/punycode.d.ts", "../../../node_modules/@types/node/querystring.d.ts", "../../../node_modules/@types/node/readline.d.ts", "../../../node_modules/@types/node/repl.d.ts", "../../../node_modules/@types/node/stream.d.ts", "../../../node_modules/@types/node/string_decoder.d.ts", "../../../node_modules/@types/node/timers.d.ts", "../../../node_modules/@types/node/tls.d.ts", "../../../node_modules/@types/node/trace_events.d.ts", "../../../node_modules/@types/node/tty.d.ts", "../../../node_modules/@types/node/url.d.ts", "../../../node_modules/@types/node/util.d.ts", "../../../node_modules/@types/node/v8.d.ts", "../../../node_modules/@types/node/vm.d.ts", "../../../node_modules/@types/node/worker_threads.d.ts", "../../../node_modules/@types/node/zlib.d.ts" ], "../../../node_modules/@types/node/ts3.6/base.d.ts": [ "../../../node_modules/@types/node/globals.global.d.ts", "../../../node_modules/@types/node/ts3.3/base.d.ts", "../../../node_modules/@types/node/wasi.d.ts" ], "../../../node_modules/@types/node/tty.d.ts": [ "../../../node_modules/@types/node/net.d.ts" ], "../../../node_modules/@types/node/url.d.ts": [ "../../../node_modules/@types/node/querystring.d.ts" ], "../../../node_modules/@types/node/v8.d.ts": [ "../../../node_modules/@types/node/stream.d.ts" ], "../../../node_modules/@types/node/worker_threads.d.ts": [ "../../../node_modules/@types/node/events.d.ts", "../../../node_modules/@types/node/fs.d.ts", "../../../node_modules/@types/node/stream.d.ts", "../../../node_modules/@types/node/vm.d.ts" ], "../../../node_modules/@types/node/zlib.d.ts": [ "../../../node_modules/@types/node/stream.d.ts" ], "../../../node_modules/@types/rimraf/index.d.ts": [ "../../../node_modules/@types/glob/index.d.ts", "../../../node_modules/@types/node/fs.d.ts", "../../../node_modules/@types/node/index.d.ts" ], "../../../node_modules/@types/shelljs/index.d.ts": [ "../../../node_modules/@types/glob/index.d.ts", "../../../node_modules/@types/node/child_process.d.ts", "../../../node_modules/@types/node/index.d.ts" ], "../fs.macchiato/out/dirent.d.ts": [ "../../../node_modules/@types/node/fs.d.ts", "../../../node_modules/@types/node/index.d.ts", "../fs.macchiato/out/types.d.ts" ], "../fs.macchiato/out/index.d.ts": [ "../fs.macchiato/out/dirent.d.ts", "../fs.macchiato/out/stats.d.ts" ], "../fs.macchiato/out/stats.d.ts": [ "../../../node_modules/@types/node/fs.d.ts", "../../../node_modules/@types/node/index.d.ts", "../fs.macchiato/out/types.d.ts" ], "../fs.scandir/out/adapters/fs.d.ts": [ "../../../node_modules/@types/node/fs.d.ts", "../../../node_modules/@types/node/index.d.ts" ], "../fs.scandir/out/index.d.ts": [ "../fs.scandir/out/adapters/fs.d.ts", "../fs.scandir/out/providers/async.d.ts", "../fs.scandir/out/settings.d.ts", "../fs.scandir/out/types/index.d.ts" ], "../fs.scandir/out/providers/async.d.ts": [ "../../../node_modules/@types/node/index.d.ts", "../fs.scandir/out/settings.d.ts", "../fs.scandir/out/types/index.d.ts" ], "../fs.scandir/out/settings.d.ts": [ "../fs.scandir/out/adapters/fs.d.ts", "../fs.stat/out/index.d.ts" ], "../fs.scandir/out/types/index.d.ts": [ "../../../node_modules/@types/node/fs.d.ts", "../../../node_modules/@types/node/index.d.ts" ], "../fs.stat/out/adapters/fs.d.ts": [ "../../../node_modules/@types/node/fs.d.ts", "../../../node_modules/@types/node/index.d.ts" ], "../fs.stat/out/index.d.ts": [ "../fs.stat/out/adapters/fs.d.ts", "../fs.stat/out/providers/async.d.ts", "../fs.stat/out/settings.d.ts", "../fs.stat/out/types/index.d.ts" ], "../fs.stat/out/providers/async.d.ts": [ "../fs.stat/out/settings.d.ts", "../fs.stat/out/types/index.d.ts" ], "../fs.stat/out/settings.d.ts": [ "../fs.stat/out/adapters/fs.d.ts" ], "../fs.stat/out/types/index.d.ts": [ "../../../node_modules/@types/node/fs.d.ts", "../../../node_modules/@types/node/index.d.ts" ], "./src/index.ts": [ "../../../node_modules/@types/node/stream.d.ts", "../fs.scandir/out/index.d.ts", "./src/providers/async.ts", "./src/settings.ts", "./src/types/index.ts" ], "./src/providers/async.ts": [ "./src/readers/async.ts", "./src/settings.ts", "./src/types/index.ts" ], "./src/providers/index.ts": [ "./src/providers/async.ts", "./src/providers/stream.ts", "./src/providers/sync.ts" ], "./src/providers/stream.ts": [ "../../../node_modules/@types/node/stream.d.ts", "./src/readers/async.ts", "./src/settings.ts" ], "./src/providers/sync.ts": [ "./src/readers/sync.ts", "./src/settings.ts", "./src/types/index.ts" ], "./src/readers/async.ts": [ "../../../node_modules/@types/node/events.d.ts", "../fs.scandir/out/index.d.ts", "./src/readers/reader.ts", "./src/settings.ts", "./src/types/index.ts" ], "./src/readers/common.ts": [ "./src/settings.ts", "./src/types/index.ts" ], "./src/readers/reader.ts": [ "./src/settings.ts" ], "./src/readers/sync.ts": [ "../fs.scandir/out/index.d.ts", "./src/readers/reader.ts", "./src/types/index.ts" ], "./src/settings.ts": [ "../fs.scandir/out/index.d.ts", "./src/types/index.ts" ], "./src/tests/index.ts": [ "../../../node_modules/@types/sinon/ts3.1/index.d.ts", "./src/types/index.ts" ], "./src/types/index.ts": [ "../fs.scandir/out/index.d.ts" ] }, "semanticDiagnosticsPerFile": [ "../../../node_modules/@types/eslint-visitor-keys/index.d.ts", "../../../node_modules/@types/fs-extra/index.d.ts", "../../../node_modules/@types/glob/index.d.ts", "../../../node_modules/@types/highlight.js/index.d.ts", "../../../node_modules/@types/json-schema/index.d.ts", "../../../node_modules/@types/lodash/common/array.d.ts", "../../../node_modules/@types/lodash/common/collection.d.ts", "../../../node_modules/@types/lodash/common/common.d.ts", "../../../node_modules/@types/lodash/common/date.d.ts", "../../../node_modules/@types/lodash/common/function.d.ts", "../../../node_modules/@types/lodash/common/lang.d.ts", "../../../node_modules/@types/lodash/common/math.d.ts", "../../../node_modules/@types/lodash/common/number.d.ts", "../../../node_modules/@types/lodash/common/object.d.ts", "../../../node_modules/@types/lodash/common/seq.d.ts", "../../../node_modules/@types/lodash/common/string.d.ts", "../../../node_modules/@types/lodash/common/util.d.ts", "../../../node_modules/@types/lodash/index.d.ts", "../../../node_modules/@types/marked/index.d.ts", "../../../node_modules/@types/minimatch/index.d.ts", "../../../node_modules/@types/minimist/index.d.ts", "../../../node_modules/@types/mocha/index.d.ts", "../../../node_modules/@types/node/assert.d.ts", "../../../node_modules/@types/node/async_hooks.d.ts", "../../../node_modules/@types/node/base.d.ts", "../../../node_modules/@types/node/buffer.d.ts", "../../../node_modules/@types/node/child_process.d.ts", "../../../node_modules/@types/node/cluster.d.ts", "../../../node_modules/@types/node/console.d.ts", "../../../node_modules/@types/node/constants.d.ts", "../../../node_modules/@types/node/crypto.d.ts", "../../../node_modules/@types/node/dgram.d.ts", "../../../node_modules/@types/node/dns.d.ts", "../../../node_modules/@types/node/domain.d.ts", "../../../node_modules/@types/node/events.d.ts", "../../../node_modules/@types/node/fs.d.ts", "../../../node_modules/@types/node/globals.d.ts", "../../../node_modules/@types/node/globals.global.d.ts", "../../../node_modules/@types/node/http.d.ts", "../../../node_modules/@types/node/http2.d.ts", "../../../node_modules/@types/node/https.d.ts", "../../../node_modules/@types/node/index.d.ts", "../../../node_modules/@types/node/inspector.d.ts", "../../../node_modules/@types/node/module.d.ts", "../../../node_modules/@types/node/net.d.ts", "../../../node_modules/@types/node/os.d.ts", "../../../node_modules/@types/node/path.d.ts", "../../../node_modules/@types/node/perf_hooks.d.ts", "../../../node_modules/@types/node/process.d.ts", "../../../node_modules/@types/node/punycode.d.ts", "../../../node_modules/@types/node/querystring.d.ts", "../../../node_modules/@types/node/readline.d.ts", "../../../node_modules/@types/node/repl.d.ts", "../../../node_modules/@types/node/stream.d.ts", "../../../node_modules/@types/node/string_decoder.d.ts", "../../../node_modules/@types/node/timers.d.ts", "../../../node_modules/@types/node/tls.d.ts", "../../../node_modules/@types/node/trace_events.d.ts", "../../../node_modules/@types/node/ts3.3/base.d.ts", "../../../node_modules/@types/node/ts3.6/base.d.ts", "../../../node_modules/@types/node/tty.d.ts", "../../../node_modules/@types/node/url.d.ts", "../../../node_modules/@types/node/util.d.ts", "../../../node_modules/@types/node/v8.d.ts", "../../../node_modules/@types/node/vm.d.ts", "../../../node_modules/@types/node/wasi.d.ts", "../../../node_modules/@types/node/worker_threads.d.ts", "../../../node_modules/@types/node/zlib.d.ts", "../../../node_modules/@types/normalize-package-data/index.d.ts", "../../../node_modules/@types/rimraf/index.d.ts", "../../../node_modules/@types/run-parallel/index.d.ts", "../../../node_modules/@types/shelljs/index.d.ts", "../../../node_modules/@types/sinon/ts3.1/index.d.ts", "../../../node_modules/fastq/index.d.ts", "../../../node_modules/typescript/lib/lib.dom.d.ts", "../../../node_modules/typescript/lib/lib.dom.iterable.d.ts", "../../../node_modules/typescript/lib/lib.es2015.collection.d.ts", "../../../node_modules/typescript/lib/lib.es2015.core.d.ts", "../../../node_modules/typescript/lib/lib.es2015.d.ts", "../../../node_modules/typescript/lib/lib.es2015.generator.d.ts", "../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts", "../../../node_modules/typescript/lib/lib.es2015.promise.d.ts", "../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts", "../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts", "../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts", "../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts", "../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts", "../../../node_modules/typescript/lib/lib.es2016.d.ts", "../../../node_modules/typescript/lib/lib.es2017.d.ts", "../../../node_modules/typescript/lib/lib.es2017.full.d.ts", "../../../node_modules/typescript/lib/lib.es2017.intl.d.ts", "../../../node_modules/typescript/lib/lib.es2017.object.d.ts", "../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts", "../../../node_modules/typescript/lib/lib.es2017.string.d.ts", "../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts", "../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts", "../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts", "../../../node_modules/typescript/lib/lib.es2018.d.ts", "../../../node_modules/typescript/lib/lib.es2018.intl.d.ts", "../../../node_modules/typescript/lib/lib.es2018.promise.d.ts", "../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts", "../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts", "../../../node_modules/typescript/lib/lib.es5.d.ts", "../../../node_modules/typescript/lib/lib.esnext.intl.d.ts", "../../../node_modules/typescript/lib/lib.scripthost.d.ts", "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts", "../fs.macchiato/out/dirent.d.ts", "../fs.macchiato/out/index.d.ts", "../fs.macchiato/out/stats.d.ts", "../fs.macchiato/out/types.d.ts", "../fs.scandir/out/adapters/fs.d.ts", "../fs.scandir/out/index.d.ts", "../fs.scandir/out/providers/async.d.ts", "../fs.scandir/out/settings.d.ts", "../fs.scandir/out/types/index.d.ts", "../fs.stat/out/adapters/fs.d.ts", "../fs.stat/out/index.d.ts", "../fs.stat/out/providers/async.d.ts", "../fs.stat/out/settings.d.ts", "../fs.stat/out/types/index.d.ts", "./src/index.spec.ts", "./src/index.ts", "./src/providers/async.spec.ts", "./src/providers/async.ts", "./src/providers/index.ts", "./src/providers/stream.spec.ts", "./src/providers/stream.ts", "./src/providers/sync.spec.ts", "./src/providers/sync.ts", "./src/readers/async.spec.ts", "./src/readers/async.ts", "./src/readers/common.spec.ts", "./src/readers/common.ts", "./src/readers/reader.spec.ts", "./src/readers/reader.ts", "./src/readers/sync.spec.ts", "./src/readers/sync.ts", "./src/settings.spec.ts", "./src/settings.ts", "./src/tests/index.ts", "./src/types/index.ts" ] }, "version": "3.9.7" }