@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.
- package/README.md +11 -4
- package/dist/{association-Ds6Tgs0W-Cu9_YCGq.js → association-Ds6Tgs0W-CgBVH3ii.js} +1 -2
- package/dist/build/node.d.ts +1 -3
- package/dist/build/node.js +3 -6
- package/dist/build.d.ts +1 -1
- package/dist/build.js +1 -2
- package/dist/{forgejo-UNPc42cY.js → definition-BQFdu9ti-WxMjcAEl.js} +15 -13
- package/dist/{events-DW3SFUDA-D2rhS9D-.js → events-BL0zcgMf-9TwyYtCt.js} +3 -5
- package/dist/{events-uCMi3LHU-Bz79PQtq.js → events-DDdJnmD2-BSMoOqjV.js} +4 -5
- package/dist/{events-DjRw3KSr-C72gY7Vu.js → events-DHqSJ5KI-z2-5_1vo.js} +59 -60
- package/dist/{events-DmSWTdpS-BdJBABfI.js → events-DXE-Ul2S-BzTkugIK.js} +4 -5
- package/dist/{feed-BlzdKdNv-DbxuSgsx.js → feed-B1OiHFg0-DevZZe0y.js} +3 -5
- package/dist/{feed-CIaAZINm-Dpe9DxwK.js → feed-DROLF1tb-CtRfA_7N.js} +3 -5
- package/dist/{feed-BwdcTgZq-Bm_c8br8.js → feed-iWegqepj-ConxMpg4.js} +3 -5
- package/dist/forgejo-4sbZukng.js +6 -0
- package/dist/gitea-Cj7qy2X3.js +10 -0
- package/dist/{gitee-BXyl2_3W-dQOAjWqr.js → gitee-CKt4pEC0-BuLWggck.js} +2 -3
- package/dist/{github-CUiEF2FK.js → github-CHzhqYOr.js} +377 -293
- package/dist/{gitlab-zvWb9zOi.js → gitlab-CS0shW2u.js} +12 -10
- package/dist/{graphql-BDhuP5jN-BSpB8lWf.js → graphql-DxRA9BGO-BBbmTmWi.js} +43 -33
- package/dist/{identity-CmVEBLP5.js → identity-BwC2_3S9.js} +1 -2
- package/dist/{identity-CNTWZZuv.d.ts → identity-D2-HaDku.d.ts} +0 -2
- package/dist/index.d.ts +50 -44
- package/dist/index.js +149 -98
- package/dist/model-Biiu1CfI-CVLamGai.js +288 -0
- package/dist/{templates-BGDqQMu4-PSB43E1j.js → templates-0m5QBVIh-D1fZeoC-.js} +3 -3
- package/dist/{webhooks-Bc6QhmI8-CNgCERCq.js → webhooks-Bc6QhmI8-eK71_mJE.js} +1034 -98
- package/package.json +8 -7
- package/dist/events-C6C7lk1x-J8VCAjEX.js +0 -131
- package/dist/knot-bGebBK_B-CeDHcJUz.js +0 -350
- package/dist/tangled-8lg_73Wi-bSufNXiN.js +0 -43
- package/dist/utils-DC7MBR65-B7Vr2hFm.js +0 -1214
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
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 {
|
|
2
|
-
|
|
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 };
|