npm-pkg-lint 4.0.5 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +10 -6
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6941,7 +6941,7 @@ var import_argparse = __toESM(require_argparse(), 1);
|
|
|
6941
6941
|
// node_modules/find-up/index.js
|
|
6942
6942
|
import path2 from "node:path";
|
|
6943
6943
|
|
|
6944
|
-
// node_modules/locate-path/index.js
|
|
6944
|
+
// node_modules/find-up/node_modules/locate-path/index.js
|
|
6945
6945
|
import process2 from "node:process";
|
|
6946
6946
|
import path from "node:path";
|
|
6947
6947
|
import fs, { promises as fsPromises } from "node:fs";
|
|
@@ -7093,18 +7093,18 @@ async function pLocate(iterable, tester, {
|
|
|
7093
7093
|
}
|
|
7094
7094
|
}
|
|
7095
7095
|
|
|
7096
|
-
// node_modules/locate-path/index.js
|
|
7096
|
+
// node_modules/find-up/node_modules/locate-path/index.js
|
|
7097
7097
|
var typeMappings = {
|
|
7098
7098
|
directory: "isDirectory",
|
|
7099
7099
|
file: "isFile"
|
|
7100
7100
|
};
|
|
7101
7101
|
function checkType(type) {
|
|
7102
|
-
if (Object.
|
|
7102
|
+
if (type === "both" || Object.hasOwn(typeMappings, type)) {
|
|
7103
7103
|
return;
|
|
7104
7104
|
}
|
|
7105
7105
|
throw new Error(`Invalid type specified: ${type}`);
|
|
7106
7106
|
}
|
|
7107
|
-
var matchType = (type, stat2) => stat2[typeMappings[type]]();
|
|
7107
|
+
var matchType = (type, stat2) => type === "both" ? stat2.isFile() || stat2.isDirectory() : stat2[typeMappings[type]]();
|
|
7108
7108
|
var toPath = (urlOrPath) => urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath;
|
|
7109
7109
|
async function locatePath(paths, {
|
|
7110
7110
|
cwd = process2.cwd(),
|
|
@@ -7126,18 +7126,22 @@ async function locatePath(paths, {
|
|
|
7126
7126
|
}, { concurrency, preserveOrder });
|
|
7127
7127
|
}
|
|
7128
7128
|
|
|
7129
|
-
// node_modules/unicorn-magic/node.js
|
|
7129
|
+
// node_modules/find-up/node_modules/unicorn-magic/node.js
|
|
7130
|
+
import { promisify } from "node:util";
|
|
7131
|
+
import { execFile as execFileCallback, execFileSync as execFileSyncOriginal } from "node:child_process";
|
|
7130
7132
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
7133
|
+
var execFileOriginal = promisify(execFileCallback);
|
|
7131
7134
|
function toPath2(urlOrPath) {
|
|
7132
7135
|
return urlOrPath instanceof URL ? fileURLToPath2(urlOrPath) : urlOrPath;
|
|
7133
7136
|
}
|
|
7137
|
+
var TEN_MEGABYTES_IN_BYTES = 10 * 1024 * 1024;
|
|
7134
7138
|
|
|
7135
7139
|
// node_modules/find-up/index.js
|
|
7136
7140
|
var findUpStop = Symbol("findUpStop");
|
|
7137
7141
|
async function findUpMultiple(name2, options = {}) {
|
|
7138
7142
|
let directory2 = path2.resolve(toPath2(options.cwd) ?? "");
|
|
7139
7143
|
const { root } = path2.parse(directory2);
|
|
7140
|
-
const stopAt = path2.resolve(directory2, toPath2(options.stopAt ?? root)
|
|
7144
|
+
const stopAt = path2.resolve(directory2, toPath2(options.stopAt) ?? root);
|
|
7141
7145
|
const limit = options.limit ?? Number.POSITIVE_INFINITY;
|
|
7142
7146
|
const paths = [name2].flat();
|
|
7143
7147
|
const runMatcher = async (locateOptions) => {
|