@vite-hub/forge 0.4.1 → 0.5.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.
Files changed (32) hide show
  1. package/README.md +11 -4
  2. package/dist/{association-Ds6Tgs0W-Cu9_YCGq.js → association-Ds6Tgs0W-CgBVH3ii.js} +1 -2
  3. package/dist/build/node.d.ts +1 -3
  4. package/dist/build/node.js +3 -6
  5. package/dist/build.d.ts +1 -1
  6. package/dist/build.js +1 -2
  7. package/dist/{forgejo-UNPc42cY.js → definition-BQFdu9ti-WxMjcAEl.js} +15 -13
  8. package/dist/{events-DW3SFUDA-D2rhS9D-.js → events-BL0zcgMf-9TwyYtCt.js} +3 -5
  9. package/dist/{events-uCMi3LHU-Bz79PQtq.js → events-DDdJnmD2-BSMoOqjV.js} +4 -5
  10. package/dist/{events-DjRw3KSr-C72gY7Vu.js → events-DHqSJ5KI-z2-5_1vo.js} +59 -60
  11. package/dist/{events-DmSWTdpS-BdJBABfI.js → events-DXE-Ul2S-BzTkugIK.js} +4 -5
  12. package/dist/{feed-BlzdKdNv-DbxuSgsx.js → feed-B1OiHFg0-DevZZe0y.js} +3 -5
  13. package/dist/{feed-CIaAZINm-Dpe9DxwK.js → feed-DROLF1tb-CtRfA_7N.js} +3 -5
  14. package/dist/{feed-BwdcTgZq-Bm_c8br8.js → feed-iWegqepj-ConxMpg4.js} +3 -5
  15. package/dist/forgejo-4sbZukng.js +6 -0
  16. package/dist/gitea-Cj7qy2X3.js +10 -0
  17. package/dist/{gitee-BXyl2_3W-dQOAjWqr.js → gitee-CKt4pEC0-BuLWggck.js} +2 -3
  18. package/dist/{github-CUiEF2FK.js → github-CHzhqYOr.js} +377 -293
  19. package/dist/{gitlab-zvWb9zOi.js → gitlab-CS0shW2u.js} +12 -10
  20. package/dist/{graphql-BDhuP5jN-BSpB8lWf.js → graphql-DxRA9BGO-BBbmTmWi.js} +43 -33
  21. package/dist/{identity-CmVEBLP5.js → identity-BwC2_3S9.js} +1 -2
  22. package/dist/{identity-CNTWZZuv.d.ts → identity-D2-HaDku.d.ts} +0 -2
  23. package/dist/index.d.ts +50 -44
  24. package/dist/index.js +149 -98
  25. package/dist/model-Biiu1CfI-CVLamGai.js +288 -0
  26. package/dist/{templates-BGDqQMu4-PSB43E1j.js → templates-0m5QBVIh-D1fZeoC-.js} +3 -3
  27. package/dist/{webhooks-Bc6QhmI8-CNgCERCq.js → webhooks-Bc6QhmI8-eK71_mJE.js} +1034 -98
  28. package/package.json +8 -7
  29. package/dist/events-C6C7lk1x-J8VCAjEX.js +0 -131
  30. package/dist/knot-bGebBK_B-CeDHcJUz.js +0 -350
  31. package/dist/tangled-8lg_73Wi-bSufNXiN.js +0 -43
  32. package/dist/utils-DC7MBR65-B7Vr2hFm.js +0 -1214
@@ -1,7 +1,6 @@
1
- import { $ as toDate } from "./utils-DC7MBR65-B7Vr2hFm.js";
2
- import { d as eventTime, i as refEvent } from "./webhooks-Bc6QhmI8-CNgCERCq.js";
3
- import { n as toActor, r as toRepoRef } from "./forgejo-UNPc42cY.js";
4
- //#region ../../node_modules/.pnpm/forges@0.3.1/node_modules/forges/dist/feed-BwdcTgZq.mjs
1
+ import { i as refEvent, tt as toDate, u as eventTime } from "./webhooks-Bc6QhmI8-eK71_mJE.js";
2
+ import { a as toActor, o as toRepoRef } from "./definition-BQFdu9ti-WxMjcAEl.js";
3
+ // ../../node_modules/.pnpm/forges@0.4.1/node_modules/forges/dist/feed-iWegqepj.mjs
5
4
  /** Activity types about an issue or a pull request, whose `content` starts with its number. */
6
5
  const FEED_THREAD_OPS = {
7
6
  create_issue: {
@@ -244,5 +243,4 @@ function toFeedEvent(origin, raw) {
244
243
  payload: raw
245
244
  };
246
245
  }
247
- //#endregion
248
246
  export { toFeedEvent };
@@ -0,0 +1,6 @@
1
+ import { c as defineForgeProvider } from "./webhooks-Bc6QhmI8-eK71_mJE.js";
2
+ import { i as forgejoDefinition, n as FORGEJO_PROFILE } from "./definition-BQFdu9ti-WxMjcAEl.js";
3
+ // ../../node_modules/.pnpm/forges@0.4.1/node_modules/forges/dist/forgejo/index.mjs
4
+ /** Creates a Forgejo provider for Codeberg or any self-hosted Forgejo instance. */
5
+ const forgejo = /* @__PURE__ */ defineForgeProvider(/* @__PURE__ */ forgejoDefinition(FORGEJO_PROFILE));
6
+ export { forgejo };
@@ -0,0 +1,10 @@
1
+ import { c as defineForgeProvider } from "./webhooks-Bc6QhmI8-eK71_mJE.js";
2
+ import { c as GITEA_WEB, i as forgejoDefinition, r as GITEA_HEADERS } from "./definition-BQFdu9ti-WxMjcAEl.js";
3
+ // ../../node_modules/.pnpm/forges@0.4.1/node_modules/forges/dist/gitea/index.mjs
4
+ /** Creates a Gitea provider for gitea.com or any self-hosted Gitea instance. */
5
+ const gitea = /* @__PURE__ */ defineForgeProvider(/* @__PURE__ */ forgejoDefinition({
6
+ forge: "gitea",
7
+ web: GITEA_WEB,
8
+ headers: GITEA_HEADERS
9
+ }));
10
+ export { gitea };
@@ -1,5 +1,5 @@
1
- import { $ as toDate } from "./utils-DC7MBR65-B7Vr2hFm.js";
2
- //#region ../../node_modules/.pnpm/forges@0.3.1/node_modules/forges/dist/gitee-BXyl2_3W.mjs
1
+ import { tt as toDate } from "./webhooks-Bc6QhmI8-eK71_mJE.js";
2
+ // ../../node_modules/.pnpm/forges@0.4.1/node_modules/forges/dist/gitee-CKt4pEC0.mjs
3
3
  const FORGE = "gitee";
4
4
  function toActor(instance, user) {
5
5
  if (!user) return;
@@ -109,5 +109,4 @@ function toPullThread(ref, raw) {
109
109
  raw
110
110
  };
111
111
  }
112
- //#endregion
113
112
  export { toRepoRef as a, toPullThread as i, toActor as n, toIssueThread as r, FORGE as t };