Server IP : 185.86.78.101 / Your IP : 216.73.216.124 Web Server : Apache System : Linux 675867-vds-valikoshka1996.gmhost.pp.ua 5.4.0-150-generic #167-Ubuntu SMP Mon May 15 17:35:05 UTC 2023 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /www/wwwroot/mifepriston.org/node_modules/fast-glob/out/ |
Upload File : |
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var optionsManager = require("./managers/options"); var taskManager = require("./managers/tasks"); var reader_async_1 = require("./providers/reader-async"); var reader_stream_1 = require("./providers/reader-stream"); var reader_sync_1 = require("./providers/reader-sync"); var arrayUtils = require("./utils/array"); var streamUtils = require("./utils/stream"); /** * Synchronous API. */ function sync(source, opts) { assertPatternsInput(source); var works = getWorks(source, reader_sync_1.default, opts); return arrayUtils.flatten(works); } exports.sync = sync; /** * Asynchronous API. */ function async(source, opts) { try { assertPatternsInput(source); } catch (error) { return Promise.reject(error); } var works = getWorks(source, reader_async_1.default, opts); return Promise.all(works).then(arrayUtils.flatten); } exports.async = async; /** * Stream API. */ function stream(source, opts) { assertPatternsInput(source); var works = getWorks(source, reader_stream_1.default, opts); return streamUtils.merge(works); } exports.stream = stream; /** * Return a set of tasks based on provided patterns. */ function generateTasks(source, opts) { assertPatternsInput(source); var patterns = [].concat(source); var options = optionsManager.prepare(opts); return taskManager.generate(patterns, options); } exports.generateTasks = generateTasks; /** * Returns a set of works based on provided tasks and class of the reader. */ function getWorks(source, _Reader, opts) { var patterns = [].concat(source); var options = optionsManager.prepare(opts); var tasks = taskManager.generate(patterns, options); var reader = new _Reader(options); return tasks.map(reader.read, reader); } function assertPatternsInput(source) { if ([].concat(source).every(isString)) { return; } throw new TypeError('Patterns must be a string or an array of strings'); } function isString(source) { /* tslint:disable-next-line strict-type-predicates */ return typeof source === 'string'; }