Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use real, actual javascript in api generators #4788

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions api/generate-api-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ function runCommand(command) {
// API name must be passed in as an arg.
const api = process.argv[2];
if (api === undefined) {
const validAPIs = string.join(apiStrategies.join, ", ");
const validAPIs = Object.keys(apiStrategies).join(", ");
console.log(`Please specify an API name. Valid names: ${validAPIs}`);
process.exit();
}

// The API name must be recognized.
const strategy = apiStrategies[api];
if (strategy === undefined) {
const validAPIs = string.join(apiStrategies.join, ", ");
const validAPIs = Object.keys(apiStrategies).join(", ");
console.error(`Invalid API name ${api}. Valid names: ${validAPIs}`);
process.exit();
}
Expand Down
Loading