@@ -879,7 +879,7 @@ class SafeNode extends Node {
879
879
return false
880
880
}
881
881
// It's a top level pkg, or a dep of one.
882
- if ( ! this . resolveParent || ! this . resolveParent . resolveParent ) {
882
+ if ( ! this . resolveParent ? .resolveParent ) {
883
883
return false
884
884
}
885
885
// No one wants it, remove it.
@@ -1387,7 +1387,7 @@ void (async () => {
1387
1387
const orgResult = await socketSdk . getOrganizations ( )
1388
1388
if ( ! orgResult . success ) {
1389
1389
throw new Error (
1390
- ' Failed to fetch Socket organization info: ' + orgResult . error . message
1390
+ ` Failed to fetch Socket organization info: ${ orgResult . error . message } `
1391
1391
)
1392
1392
}
1393
1393
const orgs : Exclude <
@@ -1404,7 +1404,7 @@ void (async () => {
1404
1404
)
1405
1405
if ( ! result . success ) {
1406
1406
throw new Error (
1407
- ' Failed to fetch API key settings: ' + result . error . message
1407
+ ` Failed to fetch API key settings: ${ result . error . message } `
1408
1408
)
1409
1409
}
1410
1410
return {
@@ -1442,11 +1442,19 @@ void (async () => {
1442
1442
if ( socketYml ) {
1443
1443
settings . entries . push ( {
1444
1444
start : socketYml . path ,
1445
- // @ts -ignore
1446
1445
settings : {
1447
1446
[ socketYml . path ] : {
1448
1447
deferTo : null ,
1449
- issueRules : socketYml . parsed . issueRules
1448
+ // TODO: TypeScript complains about the type not matching. We should
1449
+ // figure out why are providing
1450
+ // issueRules: { [issueName: string]: boolean }
1451
+ // but expecting
1452
+ // issueRules: { [issueName: string]: { action: 'defer' | 'error' | 'ignore' | 'monitor' | 'warn' } }
1453
+ issueRules : ( < unknown > socketYml . parsed . issueRules ) as {
1454
+ [ key : string ] : {
1455
+ action : 'defer' | 'error' | 'ignore' | 'monitor' | 'warn'
1456
+ }
1457
+ }
1450
1458
}
1451
1459
}
1452
1460
} )
0 commit comments