bitfab 0.45.0 → 0.47.0

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.
@@ -6,7 +6,7 @@ import {
6
6
  flushTraces,
7
7
  parseRetryAfterMs,
8
8
  serializePayloadBody
9
- } from "./chunk-YDPSSWNF.js";
9
+ } from "./chunk-2TVORTY7.js";
10
10
  import "./chunk-H6LZRFMN.js";
11
11
  export {
12
12
  BitfabError,
@@ -17,4 +17,4 @@ export {
17
17
  parseRetryAfterMs,
18
18
  serializePayloadBody
19
19
  };
20
- //# sourceMappingURL=http-GLHHPTVC.js.map
20
+ //# sourceMappingURL=http-4VKISP7F.js.map
@@ -6,7 +6,7 @@ import {
6
6
  flushTraces,
7
7
  parseRetryAfterMs,
8
8
  serializePayloadBody
9
- } from "./chunk-4XURJZ42.js";
9
+ } from "./chunk-DGVHJW43.js";
10
10
  export {
11
11
  BitfabError,
12
12
  HttpClient,
@@ -16,4 +16,4 @@ export {
16
16
  parseRetryAfterMs,
17
17
  serializePayloadBody
18
18
  };
19
- //# sourceMappingURL=http-MIPKYJZK.js.map
19
+ //# sourceMappingURL=http-AMWUT3JO.js.map
package/dist/index.cjs CHANGED
@@ -51,7 +51,7 @@ var __version__, __packageName__;
51
51
  var init_version_generated = __esm({
52
52
  "src/version.generated.ts"() {
53
53
  "use strict";
54
- __version__ = "0.45.0";
54
+ __version__ = "0.47.0";
55
55
  __packageName__ = "bitfab";
56
56
  }
57
57
  });
@@ -4580,20 +4580,20 @@ var LabelsClient = class {
4580
4580
  constructor(httpClient) {
4581
4581
  this.httpClient = httpClient;
4582
4582
  }
4583
- async save(params) {
4583
+ async save(update, testRunId) {
4584
+ const [outcome] = await this.saveAll([update], testRunId);
4585
+ return outcome;
4586
+ }
4587
+ async saveAll(updates, testRunId) {
4584
4588
  const response = await this.httpClient.request(
4585
4589
  LABELS_PATH,
4586
4590
  {
4587
- labels: params.labels,
4588
- ...params.testRunId === void 0 ? {} : { testRunId: params.testRunId }
4591
+ labels: updates,
4592
+ ...testRunId === void 0 ? {} : { testRunId }
4589
4593
  }
4590
4594
  );
4591
4595
  return response.labels;
4592
4596
  }
4593
- async saveOne(update, testRunId) {
4594
- const [outcome] = await this.save({ labels: [update], testRunId });
4595
- return outcome;
4596
- }
4597
4597
  };
4598
4598
 
4599
4599
  // src/langgraph.ts