Skip to content

Commit 57c17ac

Browse files
committed
patches
1 parent 51fb366 commit 57c17ac

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

lib/commands/login/index.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,16 @@ export const login = {
7171
return
7272
}
7373

74+
/**
75+
* @template T
76+
* @param {T | null | undefined} value
77+
* @returns {value is T}
78+
*/
79+
const nonNullish = value => value != null
80+
7481
/** @type {prompts.Choice[]} */
7582
const enforcedChoices = Object.values(orgs.organizations)
83+
.filter(nonNullish)
7684
.filter(org => org.plan === 'enterprise')
7785
.map(org => ({
7886
title: org.name,

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"license": "MIT",
1717
"engines": {
18-
"node": "^14.18.0 || ^16.13.0 || >=18.0.0"
18+
"node": "^16.13.0 || >=18.0.0"
1919
},
2020
"type": "module",
2121
"bin": {
@@ -84,7 +84,7 @@
8484
"dependencies": {
8585
"@apideck/better-ajv-errors": "^0.3.6",
8686
"@socketsecurity/config": "^2.0.0",
87-
"@socketsecurity/sdk": "^0.5.4",
87+
"@socketsecurity/sdk": "^0.7.0",
8888
"chalk": "^5.1.2",
8989
"globby": "^13.1.3",
9090
"hpagent": "^1.2.0",

0 commit comments

Comments
 (0)