Skip to content

Commit 5bd3456

Browse files
authored
chore: update examples (#1025)
1 parent dddc9a2 commit 5bd3456

File tree

3 files changed

+336
-388
lines changed

3 files changed

+336
-388
lines changed

examples/examples/apiExplorer/apiExplorer.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ export async function run() {
3939

4040
// Only change the options if they are urls
4141
const opts = Object.values(response);
42-
if ((opts[0] as string).match(/^\//)) {
42+
const first = opts[0];
43+
if (typeof first === 'string' && first.match(/^\//)) {
4344
options = opts;
4445
}
4546
} catch (err) {

examples/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"Salesforce CLI"
1616
],
1717
"dependencies": {
18-
"@salesforce/core": "^3",
18+
"@salesforce/core": "^6",
1919
"chalk": "^4",
2020
"inquirer": "^8",
2121
"lodash": "^4.17.21",

0 commit comments

Comments
 (0)