@@ -4201,7 +4201,6 @@ var require_lib = __commonJS({
4201
4201
4202
4202
// node_modules/find-up/index.js
4203
4203
var import_node_path2 = __toESM ( require ( "path" ) , 1 ) ;
4204
- var import_node_url2 = require ( "url" ) ;
4205
4204
4206
4205
// node_modules/locate-path/index.js
4207
4206
var import_node_process = __toESM ( require ( "process" ) , 1 ) ;
@@ -4377,14 +4376,19 @@ async function locatePath(paths, {
4377
4376
} , { concurrency, preserveOrder } ) ;
4378
4377
}
4379
4378
4379
+ // node_modules/unicorn-magic/node.js
4380
+ var import_node_url2 = require ( "url" ) ;
4381
+ function toPath2 ( urlOrPath ) {
4382
+ return urlOrPath instanceof URL ? ( 0 , import_node_url2 . fileURLToPath ) ( urlOrPath ) : urlOrPath ;
4383
+ }
4384
+
4380
4385
// node_modules/find-up/index.js
4381
- var toPath2 = ( urlOrPath ) => urlOrPath instanceof URL ? ( 0 , import_node_url2 . fileURLToPath ) ( urlOrPath ) : urlOrPath ;
4382
4386
var findUpStop = Symbol ( "findUpStop" ) ;
4383
4387
async function findUpMultiple ( name , options = { } ) {
4384
- let directory = import_node_path2 . default . resolve ( toPath2 ( options . cwd ) || "" ) ;
4388
+ let directory = import_node_path2 . default . resolve ( toPath2 ( options . cwd ) ?? "" ) ;
4385
4389
const { root } = import_node_path2 . default . parse ( directory ) ;
4386
- const stopAt = import_node_path2 . default . resolve ( directory , options . stopAt || root ) ;
4387
- const limit = options . limit || Number . POSITIVE_INFINITY ;
4390
+ const stopAt = import_node_path2 . default . resolve ( directory , toPath2 ( options . stopAt ?? root ) ) ;
4391
+ const limit = options . limit ?? Number . POSITIVE_INFINITY ;
4388
4392
const paths = [ name ] . flat ( ) ;
4389
4393
const runMatcher = async ( locateOptions ) => {
4390
4394
if ( typeof name !== "function" ) {
0 commit comments