@cloud-cli/on 1.2.17 → 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,
@@ -8485,6 +8487,7 @@ var Po = class {
8485
8487
  redactText(e) {
8486
8488
  let t = Array.from(this.secrets.values()).filter((e) => e.length > 3).slice().sort((e, t) => t.length - e.length);
8487
8489
  for (let n of t) e = e.replaceAll(n, "** masked **");
8490
+ return e;
8488
8491
  }
8489
8492
  }, Io = d(_), Lo = class {
8490
8493
  name = "systemd";
@@ -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/dist/secrets.d.ts CHANGED
@@ -8,6 +8,6 @@ export declare class SecretStore {
8
8
  reload(): void;
9
9
  get(key: string): string | undefined;
10
10
  getAll(): Record<string, string>;
11
- redactText(text: string): void;
11
+ redactText(text: string): string;
12
12
  }
13
13
  //# sourceMappingURL=secrets.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"secrets.d.ts","sourceRoot":"","sources":["../src/secrets.ts"],"names":[],"mappings":"AAGA,qBAAa,WAAW;IAMV,OAAO,CAAC,WAAW,CAAC;IALhC,OAAO,CAAC,OAAO,CAA6B;IAE5C;;OAEG;gBACiB,WAAW,CAAC,EAAE,MAAM,YAAA;IAIxC,MAAM;IAoBN,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAIpC,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAIhC,UAAU,CAAC,IAAI,EAAE,MAAM;CAWxB"}
1
+ {"version":3,"file":"secrets.d.ts","sourceRoot":"","sources":["../src/secrets.ts"],"names":[],"mappings":"AAGA,qBAAa,WAAW;IAMV,OAAO,CAAC,WAAW,CAAC;IALhC,OAAO,CAAC,OAAO,CAA6B;IAE5C;;OAEG;gBACiB,WAAW,CAAC,EAAE,MAAM,YAAA;IAIxC,MAAM;IAoBN,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAIpC,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAIhC,UAAU,CAAC,IAAI,EAAE,MAAM;CAaxB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloud-cli/on",
3
- "version": "1.2.17",
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",