@likec4/config 1.57.0 → 1.59.0
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/chunks/index.d.mts +596 -0
- package/dist/chunks/rolldown-runtime.mjs +1 -0
- package/dist/chunks/src.mjs +17 -0
- package/dist/index.d.mts +1 -595
- package/dist/index.mjs +1 -421
- package/dist/node/index.d.mts +2 -595
- package/dist/node/index.mjs +2 -537
- package/package.json +17 -17
- package/src/node/load-config.ts +1 -1
- package/dist/THIRD-PARTY-LICENSES.md +0 -41
- package/dist/_chunks/libs/defu.mjs +0 -29
- package/dist/_chunks/libs/remeda.mjs +0 -56
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/defu@6.1.7/node_modules/defu/dist/defu.mjs
|
|
2
|
-
function isPlainObject(value) {
|
|
3
|
-
if (value === null || typeof value !== "object") return false;
|
|
4
|
-
const prototype = Object.getPrototypeOf(value);
|
|
5
|
-
if (prototype !== null && prototype !== Object.prototype && Object.getPrototypeOf(prototype) !== null) return false;
|
|
6
|
-
if (Symbol.iterator in value) return false;
|
|
7
|
-
if (Symbol.toStringTag in value) return Object.prototype.toString.call(value) === "[object Module]";
|
|
8
|
-
return true;
|
|
9
|
-
}
|
|
10
|
-
function _defu(baseObject, defaults, namespace = ".", merger) {
|
|
11
|
-
if (!isPlainObject(defaults)) return _defu(baseObject, {}, namespace, merger);
|
|
12
|
-
const object = { ...defaults };
|
|
13
|
-
for (const key of Object.keys(baseObject)) {
|
|
14
|
-
if (key === "__proto__" || key === "constructor") continue;
|
|
15
|
-
const value = baseObject[key];
|
|
16
|
-
if (value === null || value === void 0) continue;
|
|
17
|
-
if (merger && merger(object, key, value, namespace)) continue;
|
|
18
|
-
if (Array.isArray(value) && Array.isArray(object[key])) object[key] = [...value, ...object[key]];
|
|
19
|
-
else if (isPlainObject(value) && isPlainObject(object[key])) object[key] = _defu(value, object[key], (namespace ? `${namespace}.` : "") + key.toString(), merger);
|
|
20
|
-
else object[key] = value;
|
|
21
|
-
}
|
|
22
|
-
return object;
|
|
23
|
-
}
|
|
24
|
-
function createDefu(merger) {
|
|
25
|
-
return (...arguments_) => arguments_.reduce((p, c) => _defu(p, c, "", merger), {});
|
|
26
|
-
}
|
|
27
|
-
const defu = createDefu();
|
|
28
|
-
//#endregion
|
|
29
|
-
export { defu as t };
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/remeda@2.33.7/node_modules/remeda/dist/lazyDataLastImpl-DtF3cihj.js
|
|
2
|
-
function e$2(e, t, n) {
|
|
3
|
-
let r = (n) => e(n, ...t);
|
|
4
|
-
return n === void 0 ? r : Object.assign(r, {
|
|
5
|
-
lazy: n,
|
|
6
|
-
lazyArgs: t
|
|
7
|
-
});
|
|
8
|
-
}
|
|
9
|
-
//#endregion
|
|
10
|
-
//#region ../../node_modules/.pnpm/remeda@2.33.7/node_modules/remeda/dist/purry.js
|
|
11
|
-
function t$3(t, n, r) {
|
|
12
|
-
let i = t.length - n.length;
|
|
13
|
-
if (i === 0) return t(...n);
|
|
14
|
-
if (i === 1) return e$2(t, n, r);
|
|
15
|
-
throw Error(`Wrong number of arguments`);
|
|
16
|
-
}
|
|
17
|
-
//#endregion
|
|
18
|
-
//#region ../../node_modules/.pnpm/remeda@2.33.7/node_modules/remeda/dist/hasAtLeast.js
|
|
19
|
-
function t$2(...t) {
|
|
20
|
-
return t$3(n$2, t);
|
|
21
|
-
}
|
|
22
|
-
const n$2 = (e, t) => e.length >= t;
|
|
23
|
-
//#endregion
|
|
24
|
-
//#region ../../node_modules/.pnpm/remeda@2.33.7/node_modules/remeda/dist/isNonNullish.js
|
|
25
|
-
function e$1(e) {
|
|
26
|
-
return e != null;
|
|
27
|
-
}
|
|
28
|
-
//#endregion
|
|
29
|
-
//#region ../../node_modules/.pnpm/remeda@2.33.7/node_modules/remeda/dist/last.js
|
|
30
|
-
function t$1(...t) {
|
|
31
|
-
return t$3(n$1, t);
|
|
32
|
-
}
|
|
33
|
-
const n$1 = (e) => e.at(-1);
|
|
34
|
-
//#endregion
|
|
35
|
-
//#region ../../node_modules/.pnpm/remeda@2.33.7/node_modules/remeda/dist/omit.js
|
|
36
|
-
function n(...t) {
|
|
37
|
-
return t$3(r, t);
|
|
38
|
-
}
|
|
39
|
-
function r(e, n) {
|
|
40
|
-
if (!t$2(n, 1)) return { ...e };
|
|
41
|
-
if (!t$2(n, 2)) {
|
|
42
|
-
let { [n[0]]: t, ...r } = e;
|
|
43
|
-
return r;
|
|
44
|
-
}
|
|
45
|
-
let r = { ...e };
|
|
46
|
-
for (let e of n) delete r[e];
|
|
47
|
-
return r;
|
|
48
|
-
}
|
|
49
|
-
new Set([
|
|
50
|
-
`-`,
|
|
51
|
-
`_`,
|
|
52
|
-
...` .
|
|
53
|
-
.\v.\f.\r. .
.\xA0. . . . . . . . . . . . .\u2028.\u2029. . . .`.split(`.`)
|
|
54
|
-
]);
|
|
55
|
-
//#endregion
|
|
56
|
-
export { t$2 as i, t$1 as n, e$1 as r, n as t };
|