@cloud-cli/on 1.2.18 → 1.3.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/on.js CHANGED
@@ -3401,10 +3401,12 @@ var dn = {
3401
3401
  r = m.timingSafeEqual(Buffer.from(a), Buffer.from(e));
3402
3402
  }
3403
3403
  if (r) {
3404
- let n = JSON.parse(t.toString("utf-8"));
3404
+ let n = JSON.parse(t.toString("utf-8")), r = e["x-github-event"] || "unknown", a = (n.ref || "").replace("refs/heads/", "").replace("refs/tags/", ""), [o, s] = (n.repository?.full_name || "").split("/");
3405
3405
  i = {
3406
- event: e["x-github-event"] || "unknown",
3407
- branch: (n.ref || "").replace("refs/heads/", "").replace("refs/tags/", ""),
3406
+ event: r,
3407
+ branch: a,
3408
+ owner: o,
3409
+ repo: s,
3408
3410
  clone_url: n.repository?.clone_url,
3409
3411
  commit_sha: n.after || n.head_commit?.id,
3410
3412
  author: n.pusher?.name || n.sender?.login,
@@ -1 +1 @@
1
- {"version":3,"file":"github.d.ts","sourceRoot":"","sources":["../../src/preprocessors/github.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAE5E,qBAAa,kBAAmB,YAAW,mBAAmB;IAC5D,IAAI,SAAY;IAEhB,KAAK,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,mBAAmB;CAmCpG"}
1
+ {"version":3,"file":"github.d.ts","sourceRoot":"","sources":["../../src/preprocessors/github.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAE5E,qBAAa,kBAAmB,YAAW,mBAAmB;IAC5D,IAAI,SAAY;IAEhB,KAAK,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,mBAAmB;CAuCpG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloud-cli/on",
3
- "version": "1.2.18",
3
+ "version": "1.3.0",
4
4
  "description": "CLI entry point for the on plugin ecosystem.",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@10.30.3",