bitfab 0.54.6 → 0.54.8

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  BitfabError
3
- } from "./chunk-IKNIY7JV.js";
3
+ } from "./chunk-RC3HOMLJ.js";
4
4
 
5
5
  // src/codeChange.ts
6
6
  var NUL = String.fromCharCode(0);
@@ -207,7 +207,7 @@ async function seedFromRegistry(registry, pipeline, cases, options = {}) {
207
207
  sessionId: seedCase.sessionId
208
208
  })
209
209
  );
210
- const { flushTraces: flushTraces2 } = await import("./http-DRPXLTJS.js");
210
+ const { flushTraces: flushTraces2 } = await import("./http-4JG3XW5X.js");
211
211
  await flushTraces2(3e4);
212
212
  return { pipeline, traceFunctionKey, traceIds };
213
213
  }
@@ -744,4 +744,4 @@ export {
744
744
  runRegistryMain,
745
745
  runIfEntrypoint
746
746
  };
747
- //# sourceMappingURL=chunk-WWE3W6HF.js.map
747
+ //# sourceMappingURL=chunk-5LXZGUKW.js.map
@@ -181,7 +181,7 @@ function encodeRequestBody(body) {
181
181
  }
182
182
 
183
183
  // src/version.generated.ts
184
- var __version__ = "0.54.6";
184
+ var __version__ = "0.54.8";
185
185
  var __packageName__ = "bitfab";
186
186
 
187
187
  // src/errors.ts
@@ -1641,6 +1641,15 @@ var HttpClient = class {
1641
1641
  resolveApiKey() {
1642
1642
  return typeof this.apiKey === "function" ? this.apiKey() : this.apiKey;
1643
1643
  }
1644
+ /** @internal Whether this client currently has credentials for trace delivery. */
1645
+ hasApiKey() {
1646
+ try {
1647
+ const apiKey = this.resolveApiKey();
1648
+ return apiKey !== void 0 && apiKey.trim() !== "";
1649
+ } catch {
1650
+ return false;
1651
+ }
1652
+ }
1644
1653
  /**
1645
1654
  * This client's span transport, built on first use.
1646
1655
  *
@@ -2371,4 +2380,4 @@ export {
2371
2380
  parseRetryAfterMs,
2372
2381
  HttpClient
2373
2382
  };
2374
- //# sourceMappingURL=chunk-IKNIY7JV.js.map
2383
+ //# sourceMappingURL=chunk-RC3HOMLJ.js.map