@testsmith/api-spector-agent 0.9.15 → 0.9.17

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.cjs +3 -2
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -80651,7 +80651,8 @@ async function fetchOAuth2Token(auth, vars) {
80651
80651
  params.set("grant_type", flow === "password" ? "password" : "client_credentials");
80652
80652
  params.set("client_id", clientId);
80653
80653
  params.set("client_secret", clientSecret);
80654
- if (auth.oauth2Scopes) params.set("scope", interpolate(auth.oauth2Scopes, vars));
80654
+ const scope = interpolate(auth.oauth2Scopes ?? "", vars).trim();
80655
+ if (scope) params.set("scope", scope);
80655
80656
  if (flow === "password") {
80656
80657
  let password = auth.password ?? "";
80657
80658
  if (!password && auth.passwordSecretRef) password = await getSecret(auth.passwordSecretRef) ?? "";
@@ -81620,7 +81621,7 @@ var APP_URL = (process.env.APP_URL || "").replace(/\/+$/, "");
81620
81621
  var AGENT_TOKEN = process.env.AGENT_TOKEN || "";
81621
81622
  var RUNTIME_TOKEN = process.env.RUNTIME_TOKEN || "";
81622
81623
  var POLL_MS = Number(process.env.POLL_INTERVAL_MS || 5e3);
81623
- var VERSION = true ? "0.9.15" : "";
81624
+ var VERSION = true ? "0.9.17" : "";
81624
81625
  var authHeaders = AGENT_TOKEN ? { Authorization: `Bearer ${AGENT_TOKEN}` } : RUNTIME_TOKEN ? { "X-Runtime-Token": RUNTIME_TOKEN } : {};
81625
81626
  async function postResult(m6, fields) {
81626
81627
  await fetch(`${APP_URL}/api/monitor-runtime/${m6.id}/result`, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testsmith/api-spector-agent",
3
- "version": "0.9.15",
3
+ "version": "0.9.17",
4
4
  "description": "API Spector private runner: monitor internal/local APIs the cloud cannot reach, with no inbound connections.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://api-spector.dev",