Initial commit: New MoreminiMore website with fresh design
This commit is contained in:
2
node_modules/common-ancestor-path/dist/commonjs/index.d.ts
generated
vendored
Normal file
2
node_modules/common-ancestor-path/dist/commonjs/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export declare const commonAncestorPath: (...paths: (string | null)[]) => string | null;
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
node_modules/common-ancestor-path/dist/commonjs/index.d.ts.map
generated
vendored
Normal file
1
node_modules/common-ancestor-path/dist/commonjs/index.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,kBAAkB,GAAI,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,kBAC3C,CAAA"}
|
||||
20
node_modules/common-ancestor-path/dist/commonjs/index.js
generated
vendored
Normal file
20
node_modules/common-ancestor-path/dist/commonjs/index.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.commonAncestorPath = void 0;
|
||||
const node_path_1 = require("node:path");
|
||||
function* commonArrayMembers(a, b) {
|
||||
const [l, s] = a.length > b.length ? [a, b] : [b, a];
|
||||
for (const x of s) {
|
||||
if (x === l.shift())
|
||||
yield x;
|
||||
else
|
||||
break;
|
||||
}
|
||||
}
|
||||
const cap = (a, b) => a === b ? a
|
||||
: !a || !b ? null
|
||||
: (0, node_path_1.parse)(a).root !== (0, node_path_1.parse)(b).root ? null
|
||||
: [...commonArrayMembers((0, node_path_1.normalize)(a).split(node_path_1.sep), (0, node_path_1.normalize)(b).split(node_path_1.sep))].join(node_path_1.sep);
|
||||
const commonAncestorPath = (...paths) => paths.reduce(cap);
|
||||
exports.commonAncestorPath = commonAncestorPath;
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
node_modules/common-ancestor-path/dist/commonjs/index.js.map
generated
vendored
Normal file
1
node_modules/common-ancestor-path/dist/commonjs/index.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,yCAAyD;AAEzD,QAAQ,CAAC,CAAC,kBAAkB,CAAC,CAAW,EAAE,CAAW;IACnD,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;IACpD,KAAK,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;QAClB,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE;YAAE,MAAM,CAAC,CAAA;;YACvB,MAAK;IACZ,CAAC;AACH,CAAC;AAED,MAAM,GAAG,GAAG,CAAC,CAAgB,EAAE,CAAgB,EAAE,EAAE,CACjD,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IACX,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI;QACjB,CAAC,CAAC,IAAA,iBAAK,EAAC,CAAC,CAAC,CAAC,IAAI,KAAK,IAAA,iBAAK,EAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI;YACxC,CAAC,CAAC,CAAC,GAAG,kBAAkB,CAAC,IAAA,qBAAI,EAAC,CAAC,CAAC,CAAC,KAAK,CAAC,eAAG,CAAC,EAAE,IAAA,qBAAI,EAAC,CAAC,CAAC,CAAC,KAAK,CAAC,eAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAClE,eAAG,CACJ,CAAA;AAEE,MAAM,kBAAkB,GAAG,CAAC,GAAG,KAAwB,EAAE,EAAE,CAChE,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;AADN,QAAA,kBAAkB,sBACZ","sourcesContent":["import { parse, sep, normalize as norm } from 'node:path'\n\nfunction* commonArrayMembers(a: string[], b: string[]) {\n const [l, s] = a.length > b.length ? [a, b] : [b, a]\n for (const x of s) {\n if (x === l.shift()) yield x\n else break\n }\n}\n\nconst cap = (a: string | null, b: string | null) =>\n a === b ? a\n : !a || !b ? null\n : parse(a).root !== parse(b).root ? null\n : [...commonArrayMembers(norm(a).split(sep), norm(b).split(sep))].join(\n sep,\n )\n\nexport const commonAncestorPath = (...paths: (string | null)[]) =>\n paths.reduce(cap)\n"]}
|
||||
3
node_modules/common-ancestor-path/dist/commonjs/package.json
generated
vendored
Normal file
3
node_modules/common-ancestor-path/dist/commonjs/package.json
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"type": "commonjs"
|
||||
}
|
||||
2
node_modules/common-ancestor-path/dist/esm/index.d.ts
generated
vendored
Normal file
2
node_modules/common-ancestor-path/dist/esm/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export declare const commonAncestorPath: (...paths: (string | null)[]) => string | null;
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
node_modules/common-ancestor-path/dist/esm/index.d.ts.map
generated
vendored
Normal file
1
node_modules/common-ancestor-path/dist/esm/index.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,kBAAkB,GAAI,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,kBAC3C,CAAA"}
|
||||
16
node_modules/common-ancestor-path/dist/esm/index.js
generated
vendored
Normal file
16
node_modules/common-ancestor-path/dist/esm/index.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import { parse, sep, normalize as norm } from 'node:path';
|
||||
function* commonArrayMembers(a, b) {
|
||||
const [l, s] = a.length > b.length ? [a, b] : [b, a];
|
||||
for (const x of s) {
|
||||
if (x === l.shift())
|
||||
yield x;
|
||||
else
|
||||
break;
|
||||
}
|
||||
}
|
||||
const cap = (a, b) => a === b ? a
|
||||
: !a || !b ? null
|
||||
: parse(a).root !== parse(b).root ? null
|
||||
: [...commonArrayMembers(norm(a).split(sep), norm(b).split(sep))].join(sep);
|
||||
export const commonAncestorPath = (...paths) => paths.reduce(cap);
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
node_modules/common-ancestor-path/dist/esm/index.js.map
generated
vendored
Normal file
1
node_modules/common-ancestor-path/dist/esm/index.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,SAAS,IAAI,IAAI,EAAE,MAAM,WAAW,CAAA;AAEzD,QAAQ,CAAC,CAAC,kBAAkB,CAAC,CAAW,EAAE,CAAW;IACnD,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;IACpD,KAAK,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;QAClB,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE;YAAE,MAAM,CAAC,CAAA;;YACvB,MAAK;IACZ,CAAC;AACH,CAAC;AAED,MAAM,GAAG,GAAG,CAAC,CAAgB,EAAE,CAAgB,EAAE,EAAE,CACjD,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IACX,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI;QACjB,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI;YACxC,CAAC,CAAC,CAAC,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAClE,GAAG,CACJ,CAAA;AAEL,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,GAAG,KAAwB,EAAE,EAAE,CAChE,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA","sourcesContent":["import { parse, sep, normalize as norm } from 'node:path'\n\nfunction* commonArrayMembers(a: string[], b: string[]) {\n const [l, s] = a.length > b.length ? [a, b] : [b, a]\n for (const x of s) {\n if (x === l.shift()) yield x\n else break\n }\n}\n\nconst cap = (a: string | null, b: string | null) =>\n a === b ? a\n : !a || !b ? null\n : parse(a).root !== parse(b).root ? null\n : [...commonArrayMembers(norm(a).split(sep), norm(b).split(sep))].join(\n sep,\n )\n\nexport const commonAncestorPath = (...paths: (string | null)[]) =>\n paths.reduce(cap)\n"]}
|
||||
3
node_modules/common-ancestor-path/dist/esm/package.json
generated
vendored
Normal file
3
node_modules/common-ancestor-path/dist/esm/package.json
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"type": "module"
|
||||
}
|
||||
Reference in New Issue
Block a user