@siglume/api-sdk 0.8.0 → 0.9.1
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.cjs
CHANGED
|
@@ -2645,8 +2645,17 @@ var init_client = __esm({
|
|
|
2645
2645
|
};
|
|
2646
2646
|
}
|
|
2647
2647
|
async confirm_registration(listing_id, options = {}) {
|
|
2648
|
-
|
|
2648
|
+
const { version_bump: versionBump } = options;
|
|
2649
2649
|
const payload = { approved: true };
|
|
2650
|
+
if (versionBump !== void 0) {
|
|
2651
|
+
const allowed = ["patch", "minor", "major"];
|
|
2652
|
+
if (!allowed.includes(versionBump)) {
|
|
2653
|
+
throw new Error(
|
|
2654
|
+
`version_bump must be one of ${JSON.stringify(allowed)}, got ${JSON.stringify(versionBump)}`
|
|
2655
|
+
);
|
|
2656
|
+
}
|
|
2657
|
+
payload.version_bump = versionBump;
|
|
2658
|
+
}
|
|
2650
2659
|
const [data, meta] = await this.request("POST", `/market/capabilities/${listing_id}/confirm-auto-register`, { json_body: payload });
|
|
2651
2660
|
this.pendingConfirmations.delete(listing_id);
|
|
2652
2661
|
const checklist = isRecord(data.checklist) ? Object.fromEntries(
|