@theholocron/holocron-plugin-checkly 5.0.0-alpha.479 → 5.0.0-alpha.481

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 (2) hide show
  1. package/dist/index.mjs +18 -1
  2. package/package.json +6 -6
package/dist/index.mjs CHANGED
@@ -63,7 +63,10 @@ async function ensureDashboard(client, input) {
63
63
  tags: input.tags,
64
64
  isPrivate: wantPrivate,
65
65
  ...input.description !== void 0 ? { description: input.description } : {},
66
- ...input.domain !== void 0 ? { customDomain: input.domain } : {}
66
+ ...input.domain !== void 0 ? { customDomain: input.domain } : {},
67
+ ...input.logo !== void 0 ? { logo: input.logo } : {},
68
+ ...input.favicon !== void 0 ? { favicon: input.favicon } : {},
69
+ ...input.link !== void 0 ? { link: input.link } : {}
67
70
  };
68
71
  const created = await client.dashboards.create(body);
69
72
  const id = created.dashboardId;
@@ -97,6 +100,17 @@ async function ensureDashboard(client, input) {
97
100
  changes.customDomain = input.domain;
98
101
  updated.push("domain");
99
102
  }
103
+ for (const field of [
104
+ "logo",
105
+ "favicon",
106
+ "link"
107
+ ]) {
108
+ const want = input[field];
109
+ if (want !== void 0 && (existing[field] ?? "") !== want) {
110
+ changes[field] = want;
111
+ updated.push(field);
112
+ }
113
+ }
100
114
  if (updated.length === 0) return {
101
115
  id: existing.dashboardId,
102
116
  created: false
@@ -240,6 +254,9 @@ function declaredFields(input) {
240
254
  ...input.domain !== void 0 ? { customDomain: input.domain.toLowerCase() } : {},
241
255
  ...input.description !== void 0 ? { description: input.description } : {},
242
256
  ...input.logo !== void 0 ? { logo: input.logo } : {},
257
+ ...input.logoDark !== void 0 ? { logoDark: input.logoDark } : {},
258
+ ...input.favicon !== void 0 ? { favicon: input.favicon } : {},
259
+ ...input.link !== void 0 ? { redirectTo: input.link } : {},
243
260
  ...input.footer !== void 0 ? { footerText: input.footer } : {},
244
261
  ...input.privacyUrl !== void 0 ? { privacyPolicyLink: input.privacyUrl } : {},
245
262
  ...input.termsUrl !== void 0 ? { termsOfServiceLink: input.termsUrl } : {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/holocron-plugin-checkly",
3
- "version": "5.0.0-alpha.479",
3
+ "version": "5.0.0-alpha.481",
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",
@@ -41,16 +41,16 @@
41
41
  "tsx": "4.23.15",
42
42
  "typescript": "^5.9.3",
43
43
  "vitest": "^5.1.0",
44
- "@theholocron/http-client": "^1.58.0-alpha.40",
44
+ "@theholocron/checkly-client": "^1.58.0-alpha.41",
45
+ "@theholocron/http-client": "^1.58.0-alpha.41",
46
+ "@theholocron/tsconfig": "^8.9.0-alpha.21",
45
47
  "@theholocron/misc-utils": "^1.17.0-alpha.5",
46
- "@theholocron/cli": "5.0.0-alpha.479",
47
- "@theholocron/tsconfig": "^8.9.0-alpha.20",
48
- "@theholocron/checkly-client": "^1.58.0-alpha.40"
48
+ "@theholocron/cli": "5.0.0-alpha.481"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "@theholocron/checkly-client": "^1.55.0",
52
52
  "@theholocron/misc-utils": "^1.16.0",
53
- "@theholocron/cli": "5.0.0-alpha.479"
53
+ "@theholocron/cli": "5.0.0-alpha.481"
54
54
  },
55
55
  "engines": {
56
56
  "node": ">=22"