@theholocron/holocron-plugin-postman 5.0.0-alpha.231 → 5.0.0-alpha.232

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/index.d.mts CHANGED
@@ -94,6 +94,9 @@ declare function createContext(options: PostmanPluginOptions): PluginContext;
94
94
  declare function tooling(ctx: PluginContext): Tooling;
95
95
  declare function createPlugin(options: PostmanPluginOptions): {
96
96
  name: string;
97
+ probes: {
98
+ connection: import("@theholocron/cli").Probe;
99
+ };
97
100
  capabilities: {
98
101
  tooling: () => Tooling;
99
102
  };
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { AuthError, ProviderApiError, createResolveToken } from "@theholocron/cli";
1
+ import { AuthError, ProviderApiError, connectionProbe, createResolveToken } from "@theholocron/cli";
2
2
  import { readFile } from "node:fs/promises";
3
3
  import { basename, resolve } from "node:path";
4
4
  import { errorMessage } from "@theholocron/misc-utils";
@@ -214,6 +214,16 @@ function createPlugin(options) {
214
214
  const ctx = createContext(options);
215
215
  return {
216
216
  name: "@theholocron/holocron-plugin-postman",
217
+ probes: { connection: connectionProbe({
218
+ provider: "Postman",
219
+ url: options.baseUrl ?? "https://api.getpostman.com",
220
+ fetch: options.fetch,
221
+ token: () => resolveToken(options),
222
+ verify: (token) => verifyToken(token, {
223
+ baseUrl: options.baseUrl,
224
+ fetch: options.fetch
225
+ })
226
+ }) },
217
227
  capabilities: { tooling: () => tooling(ctx) }
218
228
  };
219
229
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/holocron-plugin-postman",
3
- "version": "5.0.0-alpha.231",
3
+ "version": "5.0.0-alpha.232",
4
4
  "description": "Holocron plugin for Postman. Implements the tooling capability against Postman's REST API — workspace + collection + spec + environment sync.",
5
5
  "keywords": [
6
6
  "holocron",
@@ -47,12 +47,12 @@
47
47
  "tsx": "4.23.15",
48
48
  "typescript": "^5.9.3",
49
49
  "vitest": "^4.1.11",
50
- "@theholocron/cli": "5.0.0-alpha.231"
50
+ "@theholocron/cli": "5.0.0-alpha.232"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "@theholocron/misc-utils": "^1.16.0",
54
54
  "@theholocron/postman-client": "^1.43.1",
55
- "@theholocron/cli": "5.0.0-alpha.231"
55
+ "@theholocron/cli": "5.0.0-alpha.232"
56
56
  },
57
57
  "peerDependenciesMeta": {
58
58
  "@theholocron/postman-client": {}