From 4081c2036a5af21519095da1b8b99c507b0fba93 Mon Sep 17 00:00:00 2001 From: Minteck Date: Sun, 17 Apr 2022 17:37:10 +0200 Subject: Deprecation --- node_modules/escalade/dist/index.mjs | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 node_modules/escalade/dist/index.mjs (limited to 'node_modules/escalade/dist/index.mjs') diff --git a/node_modules/escalade/dist/index.mjs b/node_modules/escalade/dist/index.mjs deleted file mode 100644 index bf95be0..0000000 --- a/node_modules/escalade/dist/index.mjs +++ /dev/null @@ -1,22 +0,0 @@ -import { dirname, resolve } from 'path'; -import { readdir, stat } from 'fs'; -import { promisify } from 'util'; - -const toStats = promisify(stat); -const toRead = promisify(readdir); - -export default async function (start, callback) { - let dir = resolve('.', start); - let tmp, stats = await toStats(dir); - - if (!stats.isDirectory()) { - dir = dirname(dir); - } - - while (true) { - tmp = await callback(dir, await toRead(dir)); - if (tmp) return resolve(dir, tmp); - dir = dirname(tmp = dir); - if (tmp === dir) break; - } -} -- cgit