@zebeqo/vendy 0.6.0 → 0.6.1

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.
Files changed (2) hide show
  1. package/dist/main.mjs +6 -5
  2. 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("!")).map(normalizeGlob);
49275
- const exclude = globs.filter((glob) => glob.startsWith("!")).map((glob) => normalizeGlob(glob.slice(1)));
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;
@@ -59669,7 +59670,7 @@ const withGitSeparator = (args) => {
59669
59670
  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
59671
  const run = dual(2, runVendy);
59671
59672
  // src/main.ts
59672
- const version = "0.6.0";
59673
+ const version = "0.6.1";
59673
59674
  const isSqliteExperimentalWarning = (warning) => warning.name === "ExperimentalWarning" && warning.message.startsWith("SQLite ");
59674
59675
  for (const printWarning of process.listeners("warning")) {
59675
59676
  process.off("warning", printWarning);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zebeqo/vendy",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Let your coding agent choose, build with, and maintain vendored repos, and keep your code in step as upstream moves",
5
5
  "license": "MIT",
6
6
  "repository": {