Skip to content

Commit

Permalink
chore: update examples (#1025)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley authored Feb 13, 2024
1 parent dddc9a2 commit 5bd3456
Show file tree
Hide file tree
Showing 3 changed files with 336 additions and 388 deletions.
3 changes: 2 additions & 1 deletion examples/examples/apiExplorer/apiExplorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ export async function run() {

// Only change the options if they are urls
const opts = Object.values(response);
if ((opts[0] as string).match(/^\//)) {
const first = opts[0];
if (typeof first === 'string' && first.match(/^\//)) {
options = opts;
}
} catch (err) {
Expand Down
2 changes: 1 addition & 1 deletion examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"Salesforce CLI"
],
"dependencies": {
"@salesforce/core": "^3",
"@salesforce/core": "^6",
"chalk": "^4",
"inquirer": "^8",
"lodash": "^4.17.21",
Expand Down
Loading

0 comments on commit 5bd3456

Please sign in to comment.