@theholocron/holocron-plugin-axiom 5.0.0-alpha.352 → 5.0.0-alpha.354

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 +3 -2
  2. package/package.json +6 -3
package/dist/index.mjs CHANGED
@@ -1,4 +1,5 @@
1
1
  import { AuthError, ProviderApiError, connectionProbe, createResolveToken } from "@theholocron/cli";
2
+ import { createEnvLookup, firstEnv } from "@theholocron/env-utils/lookup";
2
3
  import { createAxiomClient } from "@theholocron/axiom-client";
3
4
  import { errorMessage } from "@theholocron/misc-utils";
4
5
  // src/auth.ts
@@ -81,8 +82,8 @@ async function verifyToken(token, opts = {}) {
81
82
  // src/index.ts
82
83
  /** Creates the shared context for the given options; no token is resolved until `client()` is first called. */
83
84
  function createContext(options) {
84
- const env = options.env ?? process.env;
85
- const dataset = options.dataset ?? env.HOLOCRON_AXIOM_DATASET ?? env.AXIOM_DATASET;
85
+ const env = createEnvLookup(options.env);
86
+ const dataset = options.dataset ?? firstEnv(env, ["HOLOCRON_AXIOM_DATASET", "AXIOM_DATASET"]);
86
87
  let client;
87
88
  return {
88
89
  options: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/holocron-plugin-axiom",
3
- "version": "5.0.0-alpha.352",
3
+ "version": "5.0.0-alpha.354",
4
4
  "description": "Holocron plugin for Axiom. Implements the logs capability against Axiom's REST API — dataset provisioning and connectivity checks, plus verifyToken + AUTH_HINT for `holocron auth`.",
5
5
  "keywords": [
6
6
  "axiom",
@@ -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",
@@ -41,8 +44,8 @@
41
44
  "typescript": "^5.9.3",
42
45
  "vitest": "^5.0.5",
43
46
  "@theholocron/axiom-client": "^1.58.0-alpha.11",
44
- "@theholocron/cli": "5.0.0-alpha.352",
45
47
  "@theholocron/eslint-config": "^8.9.0-alpha.8",
48
+ "@theholocron/cli": "5.0.0-alpha.354",
46
49
  "@theholocron/http-client": "^1.58.0-alpha.11",
47
50
  "@theholocron/tsconfig": "^8.9.0-alpha.8",
48
51
  "@theholocron/misc-utils": "^1.17.0-alpha.1",
@@ -52,7 +55,7 @@
52
55
  "peerDependencies": {
53
56
  "@theholocron/axiom-client": "^1.43.1",
54
57
  "@theholocron/misc-utils": "^1.16.0",
55
- "@theholocron/cli": "5.0.0-alpha.352"
58
+ "@theholocron/cli": "5.0.0-alpha.354"
56
59
  },
57
60
  "engines": {
58
61
  "node": ">=22"