@siglume/api-sdk 0.8.0 → 0.9.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.
- package/dist/bin/siglume.cjs +10 -1
- package/dist/bin/siglume.cjs.map +1 -1
- package/dist/bin/siglume.js +10 -1
- package/dist/bin/siglume.js.map +1 -1
- package/dist/cli/index.cjs +10 -1
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.js +10 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/index.cjs +10 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/bin/siglume.js
CHANGED
|
@@ -2624,8 +2624,17 @@ var init_client = __esm({
|
|
|
2624
2624
|
};
|
|
2625
2625
|
}
|
|
2626
2626
|
async confirm_registration(listing_id, options = {}) {
|
|
2627
|
-
|
|
2627
|
+
const { version_bump: versionBump } = options;
|
|
2628
2628
|
const payload = { approved: true };
|
|
2629
|
+
if (versionBump !== void 0) {
|
|
2630
|
+
const allowed = ["patch", "minor", "major"];
|
|
2631
|
+
if (!allowed.includes(versionBump)) {
|
|
2632
|
+
throw new Error(
|
|
2633
|
+
`version_bump must be one of ${JSON.stringify(allowed)}, got ${JSON.stringify(versionBump)}`
|
|
2634
|
+
);
|
|
2635
|
+
}
|
|
2636
|
+
payload.version_bump = versionBump;
|
|
2637
|
+
}
|
|
2629
2638
|
const [data, meta] = await this.request("POST", `/market/capabilities/${listing_id}/confirm-auto-register`, { json_body: payload });
|
|
2630
2639
|
this.pendingConfirmations.delete(listing_id);
|
|
2631
2640
|
const checklist = isRecord(data.checklist) ? Object.fromEntries(
|