@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.
- package/dist/{app-BDOrs4YR.mjs → app-DcgzLzb0.mjs} +3 -2
- package/dist/{app-BDOrs4YR.mjs.map → app-DcgzLzb0.mjs.map} +1 -1
- package/dist/cargo-inputs.mjs +1 -1
- package/dist/cli.mjs +9 -5
- package/dist/cli.mjs.map +1 -1
- package/dist/library.d.mts +2 -1
- package/dist/library.mjs +2 -1
- package/dist/library.mjs.map +1 -1
- package/dist/lint-rules.mjs +1 -1
- package/dist/{published-B2lOBh9P.mjs → published-D87PrlyG.mjs} +2 -2
- package/dist/{published-B2lOBh9P.mjs.map → published-D87PrlyG.mjs.map} +1 -1
- package/dist/workspace-settings.mjs +1 -1
- package/package.json +1 -1
|
@@ -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 {
|
|
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-
|
|
2125
|
+
//# sourceMappingURL=app-DcgzLzb0.mjs.map
|