@r_masseater/msch 0.59.0 → 0.59.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.
@@ -5,6 +5,7 @@ const ONE = 1;
5
5
  const toPosix = String$1.replaceAll(BACKSLASH, "/");
6
6
  const segments = (path) => String$1.split(path, "/");
7
7
  const joinAll = (parts) => Array$1.join(parts, "/");
8
+ const join = (directory) => (name) => Array$1.join(Array$1.filter([directory, name], String$1.isNonEmpty), "/");
8
9
  const parent = (path) => joinAll(Array$1.dropRight(segments(path), ONE));
9
10
  const baseName = (path) => pipe(segments(path), Array$1.filter(String$1.isNonEmpty), Array$1.last, Option.getOrElse(() => ""));
10
11
  const afterPrefix = (prefix) => (text) => pipe(Option.liftPredicate(text, String$1.startsWith(prefix)), Option.map(String$1.slice(prefix.length)));
@@ -2119,6 +2120,6 @@ const matcher = (patterns) => {
2119
2120
  };
2120
2121
  String$1.startsWith(NEGATION);
2121
2122
  String$1.slice(1);
2122
- export { parent as a, isWithin as i, baseName as n, relativeTo as o, isInside as r, toPosix as s, matcher as t };
2123
+ export { join as a, toPosix as c, isWithin as i, baseName as n, parent as o, isInside as r, relativeTo as s, matcher as t };
2123
2124
 
2124
- //# sourceMappingURL=app-BDOrs4YR.mjs.map
2125
+ //# sourceMappingURL=app-DcgzLzb0.mjs.map