@theholocron/holocron-plugin-checkly 5.0.0-alpha.351 → 5.0.0-alpha.353

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 +2 -1
  2. package/package.json +8 -5
package/dist/index.mjs CHANGED
@@ -1,5 +1,6 @@
1
1
  import { AuthError, ProviderApiError, connectionProbe, createResolveToken, createRestClient } from "@theholocron/cli";
2
2
  import { DISCORD_TEMPLATE, createChecklyClient } from "@theholocron/checkly-client";
3
+ import { createEnvLookup } from "@theholocron/env-utils/lookup";
3
4
  import { errorMessage } from "@theholocron/misc-utils";
4
5
  // src/auth.ts
5
6
  /** Resolves the Checkly API key from `--token`, `HOLOCRON_CHECKLY_TOKEN`, `CHECKLY_API_KEY` or the keyring, and throws an `AuthError` when none is set. */
@@ -416,7 +417,7 @@ var ChecklyMonitoring = class {
416
417
  return (await this.client().checks.list({ search: name })).find((c) => c.name === name);
417
418
  }
418
419
  };
419
- const channelName = (deps) => (deps.env ?? process.env)["HOLOCRON_CHECKLY_PROBE_CHANNEL"] ?? "Message to #uptime";
420
+ const channelName = (deps) => createEnvLookup(deps.env).get("HOLOCRON_CHECKLY_PROBE_CHANNEL") ?? "Message to #uptime";
420
421
  // src/probes/find-channel.ts
421
422
  /** The Discord webhook alert channel the probes work with, or an error that says how to name another. */
422
423
  async function findChannel(client, deps) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/holocron-plugin-checkly",
3
- "version": "5.0.0-alpha.351",
3
+ "version": "5.0.0-alpha.353",
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",
@@ -29,6 +29,9 @@
29
29
  "files": [
30
30
  "dist"
31
31
  ],
32
+ "dependencies": {
33
+ "@theholocron/env-utils": "^1.17.0-alpha.1"
34
+ },
32
35
  "devDependencies": {
33
36
  "@types/node": "^26",
34
37
  "@vitest/coverage-v8": "^5.0.5",
@@ -39,15 +42,15 @@
39
42
  "typescript": "^5.9.3",
40
43
  "vitest": "^5.0.5",
41
44
  "@theholocron/checkly-client": "^1.58.0-alpha.11",
42
- "@theholocron/cli": "5.0.0-alpha.351",
45
+ "@theholocron/cli": "5.0.0-alpha.353",
43
46
  "@theholocron/http-client": "^1.58.0-alpha.11",
44
- "@theholocron/tsconfig": "^8.9.0-alpha.8",
45
- "@theholocron/misc-utils": "^1.17.0-alpha.1"
47
+ "@theholocron/misc-utils": "^1.17.0-alpha.1",
48
+ "@theholocron/tsconfig": "^8.9.0-alpha.8"
46
49
  },
47
50
  "peerDependencies": {
48
51
  "@theholocron/checkly-client": "^1.55.0",
49
52
  "@theholocron/misc-utils": "^1.16.0",
50
- "@theholocron/cli": "5.0.0-alpha.351"
53
+ "@theholocron/cli": "5.0.0-alpha.353"
51
54
  },
52
55
  "engines": {
53
56
  "node": ">=22"