Skip to content

Commit d54de5c

Browse files
committed
deps
1 parent 20a1523 commit d54de5c

File tree

3 files changed

+958
-1726
lines changed

3 files changed

+958
-1726
lines changed

bin/main.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4201,7 +4201,6 @@ var require_lib = __commonJS({
42014201

42024202
// node_modules/find-up/index.js
42034203
var import_node_path2 = __toESM(require("path"), 1);
4204-
var import_node_url2 = require("url");
42054204

42064205
// node_modules/locate-path/index.js
42074206
var import_node_process = __toESM(require("process"), 1);
@@ -4377,14 +4376,19 @@ async function locatePath(paths, {
43774376
}, { concurrency, preserveOrder });
43784377
}
43794378

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+
43804385
// node_modules/find-up/index.js
4381-
var toPath2 = (urlOrPath) => urlOrPath instanceof URL ? (0, import_node_url2.fileURLToPath)(urlOrPath) : urlOrPath;
43824386
var findUpStop = Symbol("findUpStop");
43834387
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) ?? "");
43854389
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;
43884392
const paths = [name].flat();
43894393
const runMatcher = async (locateOptions) => {
43904394
if (typeof name !== "function") {

0 commit comments

Comments
 (0)