@go-labs-sg/registration 1.2.0 → 1.2.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/index.js +5 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -20044,10 +20044,11 @@ var write = (stream, value) => stream.write(`${JSON.stringify(value, null, 2)}
|
|
|
20044
20044
|
var runCli = async (argv = process.argv, credentialStore = createBunCredentialStore({
|
|
20045
20045
|
product: "registration"
|
|
20046
20046
|
}), io = processIo, createClient = createCommandClient) => {
|
|
20047
|
-
|
|
20048
|
-
const { flags, positionals } = parseArguments(argv.slice(2));
|
|
20049
|
-
const commandName = positionals.join(" ") || "help";
|
|
20047
|
+
let commandName = "help";
|
|
20050
20048
|
try {
|
|
20049
|
+
const packageMetadata = metadata();
|
|
20050
|
+
const { flags, positionals } = parseArguments(argv.slice(2));
|
|
20051
|
+
commandName = positionals.join(" ") || "help";
|
|
20051
20052
|
assertKnownFlags(flags);
|
|
20052
20053
|
const apiBaseUrl = getApiBaseUrl(getStringFlag(flags, "api-url"));
|
|
20053
20054
|
if (positionals[0] === "help" && positionals.length !== 1)
|
|
@@ -20182,7 +20183,7 @@ Waiting for approval\u2026
|
|
|
20182
20183
|
});
|
|
20183
20184
|
return 0;
|
|
20184
20185
|
} catch (error61) {
|
|
20185
|
-
const normalized = error61 instanceof Error && (error61.message.includes("API URL") || error61.message.startsWith("Unknown option")) ? { code: "USAGE", message: error61.message } : normalizeError(error61);
|
|
20186
|
+
const normalized = error61 instanceof Error && (error61.message.includes("API URL") || error61.message.startsWith("Unknown option") || error61.message.startsWith("Invalid option") || /^--.+ requires a value$/.test(error61.message)) ? { code: "USAGE", message: error61.message } : normalizeError(error61);
|
|
20186
20187
|
write(io.stderr, {
|
|
20187
20188
|
ok: false,
|
|
20188
20189
|
error: sanitize(normalized),
|