@bleedingdev/modern-js-utils 3.2.0-ultramodern.0 → 3.2.0-ultramodern.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (238) hide show
  1. package/dist/types/cli/alias.d.ts +2 -2
  2. package/dist/types/cli/get/data.d.ts +1 -1
  3. package/dist/types/cli/prettyInstructions.d.ts +1 -4
  4. package/dist/types/cli/watch.d.ts +1 -1
  5. package/package.json +3 -3
  6. package/dist/compiled/address/index.js +0 -171
  7. package/dist/compiled/address/lib/address.d.ts +0 -28
  8. package/dist/compiled/address/package.json +0 -1
  9. package/dist/compiled/browserslist/index.d.ts +0 -178
  10. package/dist/compiled/browserslist/index.js +0 -1329
  11. package/dist/compiled/browserslist/license +0 -20
  12. package/dist/compiled/browserslist/package.json +0 -1
  13. package/dist/compiled/chalk/index.d.ts +0 -415
  14. package/dist/compiled/chalk/index.js +0 -2368
  15. package/dist/compiled/chalk/license +0 -9
  16. package/dist/compiled/chalk/package.json +0 -1
  17. package/dist/compiled/chokidar/anymatch/index.d.ts +0 -19
  18. package/dist/compiled/chokidar/fsevents.node +0 -0
  19. package/dist/compiled/chokidar/index.js +0 -4162
  20. package/dist/compiled/chokidar/index.js.LICENSE.txt +0 -41
  21. package/dist/compiled/chokidar/license +0 -21
  22. package/dist/compiled/chokidar/package.json +0 -1
  23. package/dist/compiled/chokidar/types/index.d.ts +0 -188
  24. package/dist/compiled/commander/index.js +0 -1540
  25. package/dist/compiled/commander/index.mjs +0 -2
  26. package/dist/compiled/commander/license +0 -22
  27. package/dist/compiled/commander/package.json +0 -1
  28. package/dist/compiled/commander/typings/index.d.ts +0 -890
  29. package/dist/compiled/debug/index.d.ts +0 -54
  30. package/dist/compiled/debug/index.js +0 -621
  31. package/dist/compiled/debug/license +0 -20
  32. package/dist/compiled/debug/ms/index.d.ts +0 -25
  33. package/dist/compiled/debug/package.json +0 -1
  34. package/dist/compiled/dotenv/index.js +0 -101
  35. package/dist/compiled/dotenv/license +0 -23
  36. package/dist/compiled/dotenv/package.json +0 -1
  37. package/dist/compiled/dotenv/types/index.d.ts +0 -59
  38. package/dist/compiled/dotenv-expand/index.d.ts +0 -15
  39. package/dist/compiled/dotenv-expand/index.js +0 -54
  40. package/dist/compiled/dotenv-expand/license +0 -24
  41. package/dist/compiled/dotenv-expand/package.json +0 -1
  42. package/dist/compiled/execa/index.d.ts +0 -564
  43. package/dist/compiled/execa/index.js +0 -1738
  44. package/dist/compiled/execa/license +0 -9
  45. package/dist/compiled/execa/package.json +0 -1
  46. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/adapters/fs.d.ts +0 -20
  47. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/index.d.ts +0 -12
  48. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/providers/async.d.ts +0 -7
  49. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/settings.d.ts +0 -20
  50. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/types/index.d.ts +0 -20
  51. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/adapters/fs.d.ts +0 -13
  52. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/index.d.ts +0 -12
  53. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/providers/async.d.ts +0 -4
  54. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/settings.d.ts +0 -16
  55. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/types/index.d.ts +0 -4
  56. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/index.d.ts +0 -14
  57. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/providers/async.d.ts +0 -12
  58. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/readers/async.d.ts +0 -30
  59. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/readers/reader.d.ts +0 -6
  60. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/settings.d.ts +0 -30
  61. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/types/index.d.ts +0 -8
  62. package/dist/compiled/fast-glob/index.js +0 -4665
  63. package/dist/compiled/fast-glob/index.js.LICENSE.txt +0 -38
  64. package/dist/compiled/fast-glob/license +0 -21
  65. package/dist/compiled/fast-glob/out/index.d.ts +0 -27
  66. package/dist/compiled/fast-glob/out/managers/tasks.d.ts +0 -22
  67. package/dist/compiled/fast-glob/out/settings.d.ts +0 -164
  68. package/dist/compiled/fast-glob/out/types/index.d.ts +0 -31
  69. package/dist/compiled/fast-glob/package.json +0 -1
  70. package/dist/compiled/filesize/filesize.d.ts +0 -131
  71. package/dist/compiled/filesize/index.js +0 -198
  72. package/dist/compiled/filesize/index.js.LICENSE.txt +0 -7
  73. package/dist/compiled/filesize/license +0 -28
  74. package/dist/compiled/filesize/package.json +0 -1
  75. package/dist/compiled/fs-extra/index.d.ts +0 -563
  76. package/dist/compiled/fs-extra/index.js +0 -2222
  77. package/dist/compiled/fs-extra/license +0 -15
  78. package/dist/compiled/fs-extra/package.json +0 -1
  79. package/dist/compiled/glob/index.d.ts +0 -91
  80. package/dist/compiled/glob/index.js +0 -2011
  81. package/dist/compiled/glob/license +0 -21
  82. package/dist/compiled/glob/minimatch/index.d.ts +0 -204
  83. package/dist/compiled/glob/package.json +0 -1
  84. package/dist/compiled/globby/index.d.ts +0 -186
  85. package/dist/compiled/globby/index.js +0 -690
  86. package/dist/compiled/globby/license +0 -9
  87. package/dist/compiled/globby/package.json +0 -1
  88. package/dist/compiled/gzip-size/index.d.ts +0 -96
  89. package/dist/compiled/gzip-size/index.js +0 -157
  90. package/dist/compiled/gzip-size/license +0 -9
  91. package/dist/compiled/gzip-size/package.json +0 -1
  92. package/dist/compiled/import-lazy/index.d.ts +0 -26
  93. package/dist/compiled/import-lazy/index.js +0 -45
  94. package/dist/compiled/import-lazy/license +0 -9
  95. package/dist/compiled/import-lazy/package.json +0 -1
  96. package/dist/compiled/inquirer/index.d.ts +0 -997
  97. package/dist/compiled/inquirer/index.js +0 -20167
  98. package/dist/compiled/inquirer/index.js.LICENSE.txt +0 -7
  99. package/dist/compiled/inquirer/lib/objects/choice.d.ts +0 -65
  100. package/dist/compiled/inquirer/lib/objects/choices.d.ts +0 -206
  101. package/dist/compiled/inquirer/lib/objects/separator.d.ts +0 -37
  102. package/dist/compiled/inquirer/lib/ui/baseUI.d.ts +0 -37
  103. package/dist/compiled/inquirer/lib/ui/bottom-bar.d.ts +0 -65
  104. package/dist/compiled/inquirer/lib/ui/prompt.d.ts +0 -104
  105. package/dist/compiled/inquirer/license +0 -22
  106. package/dist/compiled/inquirer/package.json +0 -1
  107. package/dist/compiled/inquirer/through/index.d.ts +0 -25
  108. package/dist/compiled/js-yaml/index.d.ts +0 -154
  109. package/dist/compiled/js-yaml/index.js +0 -2191
  110. package/dist/compiled/js-yaml/index.mjs +0 -2167
  111. package/dist/compiled/js-yaml/index.mjs.LICENSE.txt +0 -1
  112. package/dist/compiled/js-yaml/license +0 -21
  113. package/dist/compiled/js-yaml/package.json +0 -1
  114. package/dist/compiled/json5/index.js +0 -983
  115. package/dist/compiled/json5/lib/index.d.ts +0 -4
  116. package/dist/compiled/json5/lib/parse.d.ts +0 -15
  117. package/dist/compiled/json5/lib/stringify.d.ts +0 -89
  118. package/dist/compiled/json5/package.json +0 -1
  119. package/dist/compiled/lodash/common/array.d.ts +0 -2126
  120. package/dist/compiled/lodash/common/collection.d.ts +0 -1930
  121. package/dist/compiled/lodash/common/common.d.ts +0 -280
  122. package/dist/compiled/lodash/common/date.d.ts +0 -23
  123. package/dist/compiled/lodash/common/function.d.ts +0 -1446
  124. package/dist/compiled/lodash/common/lang.d.ts +0 -1693
  125. package/dist/compiled/lodash/common/math.d.ts +0 -405
  126. package/dist/compiled/lodash/common/number.d.ts +0 -131
  127. package/dist/compiled/lodash/common/object.d.ts +0 -2519
  128. package/dist/compiled/lodash/common/seq.d.ts +0 -210
  129. package/dist/compiled/lodash/common/string.d.ts +0 -788
  130. package/dist/compiled/lodash/common/util.d.ts +0 -1220
  131. package/dist/compiled/lodash/index.d.ts +0 -46
  132. package/dist/compiled/lodash/index.js +0 -1
  133. package/dist/compiled/lodash/index.mjs +0 -1
  134. package/dist/compiled/lodash/license +0 -47
  135. package/dist/compiled/lodash/package.json +0 -1
  136. package/dist/compiled/mime-types/index.d.ts +0 -14
  137. package/dist/compiled/mime-types/index.js +0 -116
  138. package/dist/compiled/mime-types/index.js.LICENSE.txt +0 -13
  139. package/dist/compiled/mime-types/license +0 -23
  140. package/dist/compiled/mime-types/package.json +0 -1
  141. package/dist/compiled/minimist/index.d.ts +0 -95
  142. package/dist/compiled/minimist/index.js +0 -202
  143. package/dist/compiled/minimist/license +0 -18
  144. package/dist/compiled/minimist/package.json +0 -1
  145. package/dist/compiled/nanoid/index.d.ts +0 -91
  146. package/dist/compiled/nanoid/index.js +0 -83
  147. package/dist/compiled/nanoid/index.mjs +0 -69
  148. package/dist/compiled/nanoid/license +0 -20
  149. package/dist/compiled/nanoid/package.json +0 -1
  150. package/dist/compiled/ora/cli-spinners/index.d.ts +0 -125
  151. package/dist/compiled/ora/index.d.ts +0 -277
  152. package/dist/compiled/ora/index.js +0 -3936
  153. package/dist/compiled/ora/index.js.LICENSE.txt +0 -1
  154. package/dist/compiled/ora/license +0 -9
  155. package/dist/compiled/ora/package.json +0 -1
  156. package/dist/compiled/pkg-up/index.d.ts +0 -48
  157. package/dist/compiled/pkg-up/index.js +0 -15
  158. package/dist/compiled/pkg-up/license +0 -9
  159. package/dist/compiled/pkg-up/package.json +0 -1
  160. package/dist/compiled/semver/classes/comparator.d.ts +0 -17
  161. package/dist/compiled/semver/classes/range.d.ts +0 -21
  162. package/dist/compiled/semver/classes/semver.d.ts +0 -62
  163. package/dist/compiled/semver/functions/clean.d.ts +0 -8
  164. package/dist/compiled/semver/functions/cmp.d.ts +0 -16
  165. package/dist/compiled/semver/functions/coerce.d.ts +0 -12
  166. package/dist/compiled/semver/functions/compare-build.d.ts +0 -16
  167. package/dist/compiled/semver/functions/compare-loose.d.ts +0 -5
  168. package/dist/compiled/semver/functions/compare.d.ts +0 -20
  169. package/dist/compiled/semver/functions/diff.d.ts +0 -13
  170. package/dist/compiled/semver/functions/eq.d.ts +0 -9
  171. package/dist/compiled/semver/functions/gt.d.ts +0 -9
  172. package/dist/compiled/semver/functions/gte.d.ts +0 -9
  173. package/dist/compiled/semver/functions/inc.d.ts +0 -15
  174. package/dist/compiled/semver/functions/lt.d.ts +0 -9
  175. package/dist/compiled/semver/functions/lte.d.ts +0 -8
  176. package/dist/compiled/semver/functions/major.d.ts +0 -9
  177. package/dist/compiled/semver/functions/minor.d.ts +0 -9
  178. package/dist/compiled/semver/functions/neq.d.ts +0 -9
  179. package/dist/compiled/semver/functions/parse.d.ts +0 -12
  180. package/dist/compiled/semver/functions/patch.d.ts +0 -9
  181. package/dist/compiled/semver/functions/prerelease.d.ts +0 -12
  182. package/dist/compiled/semver/functions/rcompare.d.ts +0 -15
  183. package/dist/compiled/semver/functions/rsort.d.ts +0 -9
  184. package/dist/compiled/semver/functions/satisfies.d.ts +0 -14
  185. package/dist/compiled/semver/functions/sort.d.ts +0 -9
  186. package/dist/compiled/semver/functions/valid.d.ts +0 -11
  187. package/dist/compiled/semver/index.d.ts +0 -133
  188. package/dist/compiled/semver/index.js +0 -1779
  189. package/dist/compiled/semver/internals/identifiers.d.ts +0 -13
  190. package/dist/compiled/semver/license +0 -15
  191. package/dist/compiled/semver/package.json +0 -1
  192. package/dist/compiled/semver/ranges/gtr.d.ts +0 -14
  193. package/dist/compiled/semver/ranges/intersects.d.ts +0 -13
  194. package/dist/compiled/semver/ranges/ltr.d.ts +0 -14
  195. package/dist/compiled/semver/ranges/max-satisfying.d.ts +0 -14
  196. package/dist/compiled/semver/ranges/min-satisfying.d.ts +0 -14
  197. package/dist/compiled/semver/ranges/min-version.d.ts +0 -10
  198. package/dist/compiled/semver/ranges/outside.d.ts +0 -15
  199. package/dist/compiled/semver/ranges/simplify.d.ts +0 -14
  200. package/dist/compiled/semver/ranges/subset.d.ts +0 -13
  201. package/dist/compiled/semver/ranges/to-comparators.d.ts +0 -9
  202. package/dist/compiled/semver/ranges/valid.d.ts +0 -12
  203. package/dist/compiled/signale/index.d.ts +0 -162
  204. package/dist/compiled/signale/index.js +0 -1704
  205. package/dist/compiled/signale/package.json +0 -1
  206. package/dist/compiled/slash/index.d.ts +0 -25
  207. package/dist/compiled/slash/index.js +0 -32
  208. package/dist/compiled/slash/license +0 -9
  209. package/dist/compiled/slash/package.json +0 -1
  210. package/dist/compiled/strip-ansi/index.d.ts +0 -17
  211. package/dist/compiled/strip-ansi/index.js +0 -34
  212. package/dist/compiled/strip-ansi/license +0 -9
  213. package/dist/compiled/strip-ansi/package.json +0 -1
  214. package/dist/compiled/tsconfig-paths/index.js +0 -629
  215. package/dist/compiled/tsconfig-paths/index.mjs +0 -2
  216. package/dist/compiled/tsconfig-paths/lib/config-loader.d.ts +0 -33
  217. package/dist/compiled/tsconfig-paths/lib/filesystem.d.ts +0 -34
  218. package/dist/compiled/tsconfig-paths/lib/index.d.ts +0 -5
  219. package/dist/compiled/tsconfig-paths/lib/mapping-entry.d.ts +0 -18
  220. package/dist/compiled/tsconfig-paths/lib/match-path-async.d.ts +0 -21
  221. package/dist/compiled/tsconfig-paths/lib/match-path-sync.d.ts +0 -32
  222. package/dist/compiled/tsconfig-paths/lib/register.d.ts +0 -12
  223. package/dist/compiled/tsconfig-paths/lib/try-path.d.ts +0 -15
  224. package/dist/compiled/tsconfig-paths/lib/tsconfig-loader.d.ts +0 -28
  225. package/dist/compiled/tsconfig-paths/license +0 -21
  226. package/dist/compiled/tsconfig-paths/package.json +0 -1
  227. package/dist/compiled/upath/index.js +0 -135
  228. package/dist/compiled/upath/license +0 -22
  229. package/dist/compiled/upath/package.json +0 -1
  230. package/dist/compiled/upath/upath.d.ts +0 -241
  231. package/dist/compiled/url-join/index.d.ts +0 -17
  232. package/dist/compiled/url-join/index.js +0 -61
  233. package/dist/compiled/url-join/license +0 -21
  234. package/dist/compiled/url-join/package.json +0 -1
  235. package/dist/compiled/webpack-chain/index.js +0 -1475
  236. package/dist/compiled/webpack-chain/license +0 -373
  237. package/dist/compiled/webpack-chain/package.json +0 -1
  238. package/dist/compiled/webpack-chain/types/index.d.ts +0 -599
@@ -1,9 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
4
-
5
- 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:
6
-
7
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
-
9
- 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.
@@ -1 +0,0 @@
1
- {"name":"execa","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"version":"5.1.1","funding":"https://github.com/sindresorhus/execa?sponsor=1","license":"MIT"}
@@ -1,20 +0,0 @@
1
- import type * as fsStat from '../../../@nodelib/fs.stat';
2
- import type { Dirent, ErrnoException } from '../types';
3
- export interface ReaddirAsynchronousMethod {
4
- (filepath: string, options: {
5
- withFileTypes: true;
6
- }, callback: (error: ErrnoException | null, files: Dirent[]) => void): void;
7
- (filepath: string, callback: (error: ErrnoException | null, files: string[]) => void): void;
8
- }
9
- export interface ReaddirSynchronousMethod {
10
- (filepath: string, options: {
11
- withFileTypes: true;
12
- }): Dirent[];
13
- (filepath: string): string[];
14
- }
15
- export declare type FileSystemAdapter = fsStat.FileSystemAdapter & {
16
- readdir: ReaddirAsynchronousMethod;
17
- readdirSync: ReaddirSynchronousMethod;
18
- };
19
- export declare const FILE_SYSTEM_ADAPTER: FileSystemAdapter;
20
- export declare function createFileSystemAdapter(fsMethods?: Partial<FileSystemAdapter>): FileSystemAdapter;
@@ -1,12 +0,0 @@
1
- import type { FileSystemAdapter, ReaddirAsynchronousMethod, ReaddirSynchronousMethod } from './adapters/fs';
2
- import * as async from './providers/async';
3
- import Settings, { Options } from './settings';
4
- import type { Dirent, Entry } from './types';
5
- declare type AsyncCallback = async.AsyncCallback;
6
- declare function scandir(path: string, callback: AsyncCallback): void;
7
- declare function scandir(path: string, optionsOrSettings: Options | Settings, callback: AsyncCallback): void;
8
- declare namespace scandir {
9
- function __promisify__(path: string, optionsOrSettings?: Options | Settings): Promise<Entry[]>;
10
- }
11
- declare function scandirSync(path: string, optionsOrSettings?: Options | Settings): Entry[];
12
- export { scandir, scandirSync, Settings, AsyncCallback, Dirent, Entry, FileSystemAdapter, ReaddirAsynchronousMethod, ReaddirSynchronousMethod, Options };
@@ -1,7 +0,0 @@
1
- /// <reference types="node" />
2
- import type Settings from '../settings';
3
- import type { Entry } from '../types';
4
- export declare type AsyncCallback = (error: NodeJS.ErrnoException, entries: Entry[]) => void;
5
- export declare function read(directory: string, settings: Settings, callback: AsyncCallback): void;
6
- export declare function readdirWithFileTypes(directory: string, settings: Settings, callback: AsyncCallback): void;
7
- export declare function readdir(directory: string, settings: Settings, callback: AsyncCallback): void;
@@ -1,20 +0,0 @@
1
- import * as fsStat from '../../@nodelib/fs.stat';
2
- import * as fs from './adapters/fs';
3
- export interface Options {
4
- followSymbolicLinks?: boolean;
5
- fs?: Partial<fs.FileSystemAdapter>;
6
- pathSegmentSeparator?: string;
7
- stats?: boolean;
8
- throwErrorOnBrokenSymbolicLink?: boolean;
9
- }
10
- export default class Settings {
11
- private readonly _options;
12
- readonly followSymbolicLinks: boolean;
13
- readonly fs: fs.FileSystemAdapter;
14
- readonly pathSegmentSeparator: string;
15
- readonly stats: boolean;
16
- readonly throwErrorOnBrokenSymbolicLink: boolean;
17
- readonly fsStatSettings: fsStat.Settings;
18
- constructor(_options?: Options);
19
- private _getValue;
20
- }
@@ -1,20 +0,0 @@
1
- /// <reference types="node" />
2
- import type * as fs from 'fs';
3
- export interface Entry {
4
- dirent: Dirent;
5
- name: string;
6
- path: string;
7
- stats?: Stats;
8
- }
9
- export declare type Stats = fs.Stats;
10
- export declare type ErrnoException = NodeJS.ErrnoException;
11
- export interface Dirent {
12
- isBlockDevice: () => boolean;
13
- isCharacterDevice: () => boolean;
14
- isDirectory: () => boolean;
15
- isFIFO: () => boolean;
16
- isFile: () => boolean;
17
- isSocket: () => boolean;
18
- isSymbolicLink: () => boolean;
19
- name: string;
20
- }
@@ -1,13 +0,0 @@
1
- /// <reference types="node" />
2
- import * as fs from 'fs';
3
- import type { ErrnoException } from '../types';
4
- export declare type StatAsynchronousMethod = (path: string, callback: (error: ErrnoException | null, stats: fs.Stats) => void) => void;
5
- export declare type StatSynchronousMethod = (path: string) => fs.Stats;
6
- export interface FileSystemAdapter {
7
- lstat: StatAsynchronousMethod;
8
- stat: StatAsynchronousMethod;
9
- lstatSync: StatSynchronousMethod;
10
- statSync: StatSynchronousMethod;
11
- }
12
- export declare const FILE_SYSTEM_ADAPTER: FileSystemAdapter;
13
- export declare function createFileSystemAdapter(fsMethods?: Partial<FileSystemAdapter>): FileSystemAdapter;
@@ -1,12 +0,0 @@
1
- import type { FileSystemAdapter, StatAsynchronousMethod, StatSynchronousMethod } from './adapters/fs';
2
- import * as async from './providers/async';
3
- import Settings, { Options } from './settings';
4
- import type { Stats } from './types';
5
- declare type AsyncCallback = async.AsyncCallback;
6
- declare function stat(path: string, callback: AsyncCallback): void;
7
- declare function stat(path: string, optionsOrSettings: Options | Settings, callback: AsyncCallback): void;
8
- declare namespace stat {
9
- function __promisify__(path: string, optionsOrSettings?: Options | Settings): Promise<Stats>;
10
- }
11
- declare function statSync(path: string, optionsOrSettings?: Options | Settings): Stats;
12
- export { Settings, stat, statSync, AsyncCallback, FileSystemAdapter, StatAsynchronousMethod, StatSynchronousMethod, Options, Stats };
@@ -1,4 +0,0 @@
1
- import type Settings from '../settings';
2
- import type { ErrnoException, Stats } from '../types';
3
- export declare type AsyncCallback = (error: ErrnoException, stats: Stats) => void;
4
- export declare function read(path: string, settings: Settings, callback: AsyncCallback): void;
@@ -1,16 +0,0 @@
1
- import * as fs from './adapters/fs';
2
- export interface Options {
3
- followSymbolicLink?: boolean;
4
- fs?: Partial<fs.FileSystemAdapter>;
5
- markSymbolicLink?: boolean;
6
- throwErrorOnBrokenSymbolicLink?: boolean;
7
- }
8
- export default class Settings {
9
- private readonly _options;
10
- readonly followSymbolicLink: boolean;
11
- readonly fs: fs.FileSystemAdapter;
12
- readonly markSymbolicLink: boolean;
13
- readonly throwErrorOnBrokenSymbolicLink: boolean;
14
- constructor(_options?: Options);
15
- private _getValue;
16
- }
@@ -1,4 +0,0 @@
1
- /// <reference types="node" />
2
- import type * as fs from 'fs';
3
- export declare type Stats = fs.Stats;
4
- export declare type ErrnoException = NodeJS.ErrnoException;
@@ -1,14 +0,0 @@
1
- /// <reference types="node" />
2
- import type { Readable } from 'stream';
3
- import type { Dirent, FileSystemAdapter } from '../../@nodelib/fs.scandir';
4
- import { AsyncCallback } from './providers/async';
5
- import Settings, { DeepFilterFunction, EntryFilterFunction, ErrorFilterFunction, Options } from './settings';
6
- import type { Entry } from './types';
7
- declare function walk(directory: string, callback: AsyncCallback): void;
8
- declare function walk(directory: string, optionsOrSettings: Options | Settings, callback: AsyncCallback): void;
9
- declare namespace walk {
10
- function __promisify__(directory: string, optionsOrSettings?: Options | Settings): Promise<Entry[]>;
11
- }
12
- declare function walkSync(directory: string, optionsOrSettings?: Options | Settings): Entry[];
13
- declare function walkStream(directory: string, optionsOrSettings?: Options | Settings): Readable;
14
- export { walk, walkSync, walkStream, Settings, AsyncCallback, Dirent, Entry, FileSystemAdapter, Options, DeepFilterFunction, EntryFilterFunction, ErrorFilterFunction };
@@ -1,12 +0,0 @@
1
- import AsyncReader from '../readers/async';
2
- import type Settings from '../settings';
3
- import type { Entry, Errno } from '../types';
4
- export declare type AsyncCallback = (error: Errno, entries: Entry[]) => void;
5
- export default class AsyncProvider {
6
- private readonly _root;
7
- private readonly _settings;
8
- protected readonly _reader: AsyncReader;
9
- private readonly _storage;
10
- constructor(_root: string, _settings: Settings);
11
- read(callback: AsyncCallback): void;
12
- }
@@ -1,30 +0,0 @@
1
- /// <reference types="node" />
2
- import { EventEmitter } from 'events';
3
- import * as fsScandir from '../../../@nodelib/fs.scandir';
4
- import type Settings from '../settings';
5
- import type { Entry, Errno } from '../types';
6
- import Reader from './reader';
7
- declare type EntryEventCallback = (entry: Entry) => void;
8
- declare type ErrorEventCallback = (error: Errno) => void;
9
- declare type EndEventCallback = () => void;
10
- export default class AsyncReader extends Reader {
11
- protected readonly _settings: Settings;
12
- protected readonly _scandir: typeof fsScandir.scandir;
13
- protected readonly _emitter: EventEmitter;
14
- private readonly _queue;
15
- private _isFatalError;
16
- private _isDestroyed;
17
- constructor(_root: string, _settings: Settings);
18
- read(): EventEmitter;
19
- get isDestroyed(): boolean;
20
- destroy(): void;
21
- onEntry(callback: EntryEventCallback): void;
22
- onError(callback: ErrorEventCallback): void;
23
- onEnd(callback: EndEventCallback): void;
24
- private _pushToQueue;
25
- private _worker;
26
- private _handleError;
27
- private _handleEntry;
28
- private _emitEntry;
29
- }
30
- export {};
@@ -1,6 +0,0 @@
1
- import type Settings from '../settings';
2
- export default class Reader {
3
- protected readonly _root: string;
4
- protected readonly _settings: Settings;
5
- constructor(_root: string, _settings: Settings);
6
- }
@@ -1,30 +0,0 @@
1
- import * as fsScandir from '../../@nodelib/fs.scandir';
2
- import type { Entry, Errno } from './types';
3
- export declare type FilterFunction<T> = (value: T) => boolean;
4
- export declare type DeepFilterFunction = FilterFunction<Entry>;
5
- export declare type EntryFilterFunction = FilterFunction<Entry>;
6
- export declare type ErrorFilterFunction = FilterFunction<Errno>;
7
- export interface Options {
8
- basePath?: string;
9
- concurrency?: number;
10
- deepFilter?: DeepFilterFunction;
11
- entryFilter?: EntryFilterFunction;
12
- errorFilter?: ErrorFilterFunction;
13
- followSymbolicLinks?: boolean;
14
- fs?: Partial<fsScandir.FileSystemAdapter>;
15
- pathSegmentSeparator?: string;
16
- stats?: boolean;
17
- throwErrorOnBrokenSymbolicLink?: boolean;
18
- }
19
- export default class Settings {
20
- private readonly _options;
21
- readonly basePath?: string;
22
- readonly concurrency: number;
23
- readonly deepFilter: DeepFilterFunction | null;
24
- readonly entryFilter: EntryFilterFunction | null;
25
- readonly errorFilter: ErrorFilterFunction | null;
26
- readonly pathSegmentSeparator: string;
27
- readonly fsScandirSettings: fsScandir.Settings;
28
- constructor(_options?: Options);
29
- private _getValue;
30
- }
@@ -1,8 +0,0 @@
1
- /// <reference types="node" />
2
- import type * as scandir from '../../../@nodelib/fs.scandir';
3
- export declare type Entry = scandir.Entry;
4
- export declare type Errno = NodeJS.ErrnoException;
5
- export interface QueueItem {
6
- directory: string;
7
- base?: string;
8
- }