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