findup-lit
Advanced tools
Comparing version 1.5.0 to 1.6.0
@@ -194,5 +194,21 @@ import path from 'path'; | ||
/** | ||
* @typedef {Object} Options | ||
* @prop {URL | string} [cwd] | ||
* @prop {'file' | 'directory'} [type] | ||
* @prop {boolean} [allowSymlinks] | ||
*/ | ||
/** | ||
* @typedef {Object} AsyncOptions | ||
* @prop {URL | string} [cwd] | ||
* @prop {'file' | 'directory'} [type] | ||
* @prop {boolean} [allowSymlinks] | ||
* @prop {number} [concurrency] | ||
* @prop {boolean} [preserveOrder] | ||
*/ | ||
/** | ||
* findUp walks the directory tree up until it finds the given `name`. | ||
* @param {string|string[]|(directory: string) => string|undefined} name | ||
* @param {Object} [options={}] | ||
* @param {AsyncOptions} [options={}] | ||
* @returns {Promise<string>|undefined} | ||
@@ -241,3 +257,3 @@ */ | ||
* @param {string|string[]|(directory: string) => string|undefined} name | ||
* @param {Object} [options={}] | ||
* @param {Options} [options={}] | ||
* @returns {string|undefined} | ||
@@ -244,0 +260,0 @@ */ |
@@ -194,5 +194,21 @@ import path from 'path'; | ||
/** | ||
* @typedef {Object} Options | ||
* @prop {URL | string} [cwd] | ||
* @prop {'file' | 'directory'} [type] | ||
* @prop {boolean} [allowSymlinks] | ||
*/ | ||
/** | ||
* @typedef {Object} AsyncOptions | ||
* @prop {URL | string} [cwd] | ||
* @prop {'file' | 'directory'} [type] | ||
* @prop {boolean} [allowSymlinks] | ||
* @prop {number} [concurrency] | ||
* @prop {boolean} [preserveOrder] | ||
*/ | ||
/** | ||
* findUp walks the directory tree up until it finds the given `name`. | ||
* @param {string|string[]|(directory: string) => string|undefined} name | ||
* @param {Object} [options={}] | ||
* @param {AsyncOptions} [options={}] | ||
* @returns {Promise<string>|undefined} | ||
@@ -241,3 +257,3 @@ */ | ||
* @param {string|string[]|(directory: string) => string|undefined} name | ||
* @param {Object} [options={}] | ||
* @param {Options} [options={}] | ||
* @returns {string|undefined} | ||
@@ -244,0 +260,0 @@ */ |
{ | ||
"name": "findup-lit", | ||
"description": "This package finds a file or directory by walking up parent directories.", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"author": "Joel Voss <mail@joelvoss.com>", | ||
@@ -20,2 +20,3 @@ "license": "MIT", | ||
"exports": { | ||
"types": "./dist/index.d.ts", | ||
"require": "./dist/findup-lit.cjs", | ||
@@ -35,6 +36,6 @@ "import": "./dist/findup-lit.modern.js" | ||
"dependencies": { | ||
"plimit-lit": "^1.4.1" | ||
"plimit-lit": "^1.5.0" | ||
}, | ||
"devDependencies": { | ||
"@jvdx/core": "^3.0.0", | ||
"@jvdx/core": "^3.1.0", | ||
"fixturez": "^1.1.0" | ||
@@ -41,0 +42,0 @@ }, |
Sorry, the diff of this file is not supported yet
30863
7
854
Updatedplimit-lit@^1.5.0