Comparing version 3.1.2 to 3.1.3
@@ -5,34 +5,40 @@ // TypeScript Version: 3.2 | ||
import * as fs from "fs"; | ||
import {Readable} from "stream"; | ||
import * as fs from 'fs'; | ||
import { Readable } from 'stream'; | ||
interface EntryInfo { | ||
path: string, | ||
fullPath: string, | ||
basename: string, | ||
stats?: fs.Stats, | ||
dirent?: fs.Dirent | ||
} | ||
declare namespace readdir { | ||
interface EntryInfo { | ||
path: string; | ||
fullPath: string; | ||
basename: string; | ||
stats?: fs.Stats; | ||
dirent?: fs.Dirent; | ||
} | ||
interface ReaddirpOptions { | ||
root?: string; | ||
fileFilter?: string | string[] | ((entry: EntryInfo) => boolean), | ||
directoryFilter?: (entry: EntryInfo) => boolean, | ||
type?: 'files' | 'directories' | 'files_directories' | 'all' | ||
lstat?: boolean, | ||
depth?: number | ||
alwaysStat?: boolean | ||
} | ||
interface ReaddirpOptions { | ||
root?: string; | ||
fileFilter?: string | string[] | ((entry: EntryInfo) => boolean); | ||
directoryFilter?: (entry: EntryInfo) => boolean; | ||
type?: 'files' | 'directories' | 'files_directories' | 'all'; | ||
lstat?: boolean; | ||
depth?: number; | ||
alwaysStat?: boolean; | ||
} | ||
declare class ReaddirpStream extends Readable implements AsyncIterable<EntryInfo> { | ||
read(): EntryInfo; | ||
[Symbol.asyncIterator](): AsyncIterableIterator<EntryInfo>; | ||
interface ReaddirpStream extends Readable, AsyncIterable<EntryInfo> { | ||
read(): EntryInfo; | ||
[Symbol.asyncIterator](): AsyncIterableIterator<EntryInfo>; | ||
} | ||
function promise( | ||
root: string, | ||
options?: ReaddirpOptions | ||
): Promise<EntryInfo[]>; | ||
} | ||
declare const readdir: { | ||
(root: string, options?: ReaddirpOptions): ReaddirpStream; | ||
promise(root: string, options?: ReaddirpOptions): Promise<Array<EntryInfo>>; | ||
ReaddirpStream: ReaddirpStream; | ||
EntryInfo: EntryInfo; | ||
}; | ||
declare function readdir( | ||
root: string, | ||
options?: readdir.ReaddirpOptions | ||
): readdir.ReaddirpStream; | ||
export = readdir; |
{ | ||
"name": "readdirp", | ||
"description": "Recursive version of fs.readdir with streaming api.", | ||
"version": "3.1.2", | ||
"version": "3.1.3", | ||
"homepage": "https://github.com/paulmillr/readdirp", | ||
@@ -33,3 +33,3 @@ "repository": { | ||
"scripts": { | ||
"test": "nyc mocha" | ||
"test": "nyc mocha && dtslint" | ||
}, | ||
@@ -45,3 +45,4 @@ "dependencies": { | ||
"chai-subset": "^1.6", | ||
"mocha": "^6.1.3", | ||
"dtslint": "^0.9.8", | ||
"mocha": "~6.1.3", | ||
"nyc": "^14.1.1", | ||
@@ -48,0 +49,0 @@ "rimraf": "^2.6.3" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19010
318
9