@theholocron/holocron-plugin-checkly 5.0.0-alpha.140 → 5.0.0-alpha.142

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 CHANGED
@@ -62,7 +62,22 @@ monitoring: [
62
62
  method: "GET",
63
63
  locations: ["us-east-1"],
64
64
  shouldFail: true, // 405 is the EXPECTED healthy response here
65
- assertions: [{ source: "status_code", comparison: "equals", target: "405" }],
65
+ assertions: [
66
+ { source: "status_code", comparison: "equals", target: "405" },
67
+ { source: "body", comparison: "equals", target: "Method Not Allowed" },
68
+ ],
69
+ },
70
+ // body lets a check simulate a real request — here, a POST with no
71
+ // signature header, to prove signature verification is wired
72
+ // correctly end-to-end rather than just that the endpoint is reachable.
73
+ {
74
+ name: "Sentinel webhook signature verification",
75
+ url: "https://sentinel.theholocron.dev/api/webhook",
76
+ method: "POST",
77
+ locations: ["us-east-1"],
78
+ shouldFail: true, // 401 is the EXPECTED response to an unsigned POST
79
+ body: "{}",
80
+ assertions: [{ source: "status_code", comparison: "equals", target: "401" }],
66
81
  },
67
82
  ],
68
83
  },
package/dist/index.mjs CHANGED
@@ -34,6 +34,7 @@ function toChecklyPayload(input) {
34
34
  request: {
35
35
  url: input.url,
36
36
  method: input.method ?? "GET",
37
+ ...input.body !== void 0 ? { body: input.body } : {},
37
38
  assertions: (input.assertions ?? []).map((a) => ({
38
39
  source: SOURCE_MAP[a.source],
39
40
  comparison: COMPARISON_MAP[a.comparison],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/holocron-plugin-checkly",
3
- "version": "5.0.0-alpha.140",
3
+ "version": "5.0.0-alpha.142",
4
4
  "description": "Holocron plugin for Checkly. Implements the monitoring capability against Checkly's REST API, plus exports verifyToken + AUTH_HINT for `holocron auth`.",
5
5
  "keywords": [
6
6
  "checkly",
@@ -30,8 +30,8 @@
30
30
  "dist"
31
31
  ],
32
32
  "devDependencies": {
33
- "@theholocron/checkly-client": "^1.41.0",
34
- "@theholocron/http-client": "^1.41.0",
33
+ "@theholocron/checkly-client": "^1.42.0",
34
+ "@theholocron/http-client": "^1.42.0",
35
35
  "@theholocron/misc-utils": "^1.9.2",
36
36
  "@theholocron/tsconfig": "^8.7.1",
37
37
  "@types/node": "^26",
@@ -42,12 +42,12 @@
42
42
  "tsx": "4.23.12",
43
43
  "typescript": "^5.9.3",
44
44
  "vitest": "^4.1.11",
45
- "@theholocron/cli": "5.0.0-alpha.140"
45
+ "@theholocron/cli": "5.0.0-alpha.142"
46
46
  },
47
47
  "peerDependencies": {
48
- "@theholocron/checkly-client": "^1.41.0",
48
+ "@theholocron/checkly-client": "^1.42.0",
49
49
  "@theholocron/misc-utils": "^1.9.2",
50
- "@theholocron/cli": "5.0.0-alpha.140"
50
+ "@theholocron/cli": "5.0.0-alpha.142"
51
51
  },
52
52
  "engines": {
53
53
  "node": ">=22"