@zebeqo/vendy 0.6.0 → 0.6.2
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/main.mjs +8 -5
- package/package.json +1 -1
package/dist/main.mjs
CHANGED
|
@@ -49270,11 +49270,12 @@ const normalizeGlob = (glob) => glob.split("/").reduce((segments, segment) => {
|
|
|
49270
49270
|
if (segment === "" || segment === ".") return segments;
|
|
49271
49271
|
return segment === ".." && segments.length > 0 && segments.at(-1) !== ".." ? segments.slice(0, -1) : [...segments, segment];
|
|
49272
49272
|
}, []).join("/");
|
|
49273
|
+
const belowRoot = (globs) => globs.map(normalizeGlob).filter((glob) => glob !== "");
|
|
49273
49274
|
const workspaceMember = (globs) => {
|
|
49274
|
-
const include = globs.filter((glob) => !glob.startsWith("!"))
|
|
49275
|
-
const exclude = globs.filter((glob) => glob.startsWith("!")).map((glob) =>
|
|
49276
|
-
const included = include.length === 0 ? () => false : (0, import_posix.default)(include);
|
|
49277
|
-
const excluded = exclude.length === 0 ? () => false : (0, import_posix.default)(exclude, { dot: true });
|
|
49275
|
+
const include = belowRoot(globs.filter((glob) => !glob.startsWith("!")));
|
|
49276
|
+
const exclude = belowRoot(globs.filter((glob) => glob.startsWith("!")).map((glob) => glob.slice(1)));
|
|
49277
|
+
const included = include.length === 0 ? () => false : (0, import_posix.default)([...include]);
|
|
49278
|
+
const excluded = exclude.length === 0 ? () => false : (0, import_posix.default)([...exclude], { dot: true });
|
|
49278
49279
|
return (directory) => directory === "" || included(directory) && !excluded(directory);
|
|
49279
49280
|
};
|
|
49280
49281
|
const depth = (path) => path.split("/").length;
|
|
@@ -56571,6 +56572,7 @@ const releasedPackages = (repo, published) => {
|
|
|
56571
56572
|
const packageOf = (packages, file) => packages.find((directory) => directory === "" || covers(directory, file)) ?? "";
|
|
56572
56573
|
const governedPackages = (library, project) => (library.repo.uses ?? []).every((use) => use.scope === void 0) ? new Set(project.packages) : new Set(project.files.filter((file) => library.scope.governs(file)).map((file) => packageOf(project.packages, file)));
|
|
56573
56574
|
const declaredIn = (directory) => directory === "" ? "package.json" : `${directory}/package.json`;
|
|
56575
|
+
const isPlaceholder = (version) => import_semver.default.major(version) === 0 && import_semver.default.minor(version) === 0 && import_semver.default.patch(version) === 0;
|
|
56574
56576
|
const libraryDependencies = fn("Check.libraryDependencies")(function* (library, project) {
|
|
56575
56577
|
const { repo, published } = library;
|
|
56576
56578
|
const findings = [];
|
|
@@ -56600,6 +56602,7 @@ const libraryDependencies = fn("Check.libraryDependencies")(function* (library,
|
|
|
56600
56602
|
});
|
|
56601
56603
|
for (const [version, where] of installed) {
|
|
56602
56604
|
if (snapshot === null || import_semver.default.valid(version) === null) continue;
|
|
56605
|
+
if (isPlaceholder(version) || isPlaceholder(snapshot)) continue;
|
|
56603
56606
|
const order = import_semver.default.compare(version, snapshot);
|
|
56604
56607
|
if (order !== 0) findings.push({
|
|
56605
56608
|
_tag: order < 0 ? "DependencyBehind" : "SnapshotBehind",
|
|
@@ -59669,7 +59672,7 @@ const withGitSeparator = (args) => {
|
|
|
59669
59672
|
const runVendy = (args, config) => runWith(vendy, config)(withGitSeparator(args)).pipe(provideService(Blocking, (description) => error(`waiting for file lock on ${description}`)), provideService(runner, invocation(process.cwd())), provideService(CliConfig, cliConfig), provide(layer));
|
|
59670
59673
|
const run = dual(2, runVendy);
|
|
59671
59674
|
// src/main.ts
|
|
59672
|
-
const version = "0.6.
|
|
59675
|
+
const version = "0.6.2";
|
|
59673
59676
|
const isSqliteExperimentalWarning = (warning) => warning.name === "ExperimentalWarning" && warning.message.startsWith("SQLite ");
|
|
59674
59677
|
for (const printWarning of process.listeners("warning")) {
|
|
59675
59678
|
process.off("warning", printWarning);
|
package/package.json
CHANGED