elrh-cosca 0.3.6 → 0.4.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.
Files changed (39) hide show
  1. package/README.md +237 -99
  2. package/dist/chunks/magicast-B0ixXlDw.mjs +14033 -0
  3. package/dist/chunks/rolldown-runtime-Dqa2HsxW.mjs +20 -0
  4. package/dist/chunks/yaml-BwPmYYDT.mjs +4297 -0
  5. package/dist/elrh-cosca.mjs +328 -14157
  6. package/dist/types/src/_private/fetch-file.d.ts +1 -1
  7. package/dist/types/src/checks/get-package-manager.d.ts +2 -2
  8. package/dist/types/src/checks/has-json-key.d.ts +5 -3
  9. package/dist/types/src/checks/has-text.d.ts +6 -4
  10. package/dist/types/src/checks/has-yaml-key.d.ts +11 -0
  11. package/dist/types/src/checks/path-exists.d.ts +6 -4
  12. package/dist/types/src/functions/create-file-from-template.d.ts +10 -8
  13. package/dist/types/src/functions/create-file-from-web-template.d.ts +10 -8
  14. package/dist/types/src/functions/delete-path.d.ts +9 -7
  15. package/dist/types/src/functions/remove-from-json-file.d.ts +8 -6
  16. package/dist/types/src/functions/remove-from-text-file.d.ts +8 -6
  17. package/dist/types/src/functions/remove-from-yaml-file.d.ts +13 -0
  18. package/dist/types/src/functions/update-config-file.d.ts +13 -7
  19. package/dist/types/src/functions/update-json-file.d.ts +12 -10
  20. package/dist/types/src/functions/update-text-file.d.ts +11 -7
  21. package/dist/types/src/functions/update-yaml-file.d.ts +15 -0
  22. package/dist/types/src/main.d.ts +5 -1
  23. package/dist/types/src/terminal/prompt-user.d.ts +8 -8
  24. package/dist/types/src/terminal/show-error.d.ts +5 -3
  25. package/dist/types/src/terminal/show-message.d.ts +5 -3
  26. package/dist/types/src/types/data.d.ts +6 -0
  27. package/dist/types/src/types/functions.d.ts +99 -0
  28. package/dist/types/src/utils/get-env-value.d.ts +6 -4
  29. package/dist/types/src/utils/parse-qualified-path.d.ts +4 -2
  30. package/dist/types/src/utils/resolve-package-path.d.ts +7 -5
  31. package/dist/types/test/checks-has-yaml-key.test.d.ts +1 -0
  32. package/dist/types/test/functions-remove-from-yaml-file.test.d.ts +1 -0
  33. package/dist/types/test/functions-update-yaml-file.test.d.ts +1 -0
  34. package/dist/types/test/private-deep-merge-object.test.d.ts +1 -0
  35. package/dist/types/test/private-fetch-file.test.d.ts +1 -0
  36. package/dist/types/test/snapshots/created-config-file.d.ts +7 -0
  37. package/package.json +15 -11
  38. package/test/cosca-test.js +17 -17
  39. package/dist/types/src/types/json.d.ts +0 -6
@@ -0,0 +1,20 @@
1
+ //#region \0rolldown/runtime.js
2
+ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), s = (e, n) => {
3
+ let r = {};
4
+ for (var i in e) t(r, i, {
5
+ get: e[i],
6
+ enumerable: !0
7
+ });
8
+ return n || t(r, Symbol.toStringTag, { value: "Module" }), r;
9
+ }, c = (e, i, o, s) => {
10
+ if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
11
+ get: ((e) => i[e]).bind(null, d),
12
+ enumerable: !(s = n(i, d)) || s.enumerable
13
+ });
14
+ return e;
15
+ }, l = (n, r, a) => (a = n == null ? {} : e(i(n)), c(r || !n || !n.__esModule ? t(a, "default", {
16
+ value: n,
17
+ enumerable: !0
18
+ }) : a, n));
19
+ //#endregion
20
+ export { s as n, l as r, o as t };