(node)
| 224 | module.exports = LS |
| 225 | |
| 226 | const isGitNode = (node) => { |
| 227 | if (!node.resolved) { |
| 228 | return |
| 229 | } |
| 230 | |
| 231 | try { |
| 232 | const { type } = npa(node.resolved) |
| 233 | return type === 'git' || type === 'hosted' |
| 234 | } catch { |
| 235 | return false |
| 236 | } |
| 237 | } |
| 238 | |
| 239 | const isOptional = (node) => |
| 240 | node[_type] === 'optional' || node[_type] === 'peerOptional' |
no outgoing calls
no test coverage detected