(node)
| 32 | // behaviour is correct for its boundary; the two helpers must not be |
| 33 | // merged. |
| 34 | const hasNonRegistryShape = (node) => { |
| 35 | if (typeof node.isRegistryDependency === 'boolean') { |
| 36 | return !node.isRegistryDependency |
| 37 | } |
| 38 | if (!node.resolved) { |
| 39 | return false |
| 40 | } |
| 41 | return !/^https?:\/\/[^/]+\/.+\/-\/[^/]+-\d/.test(node.resolved) |
| 42 | } |
| 43 | |
| 44 | const getInstallScripts = async (node) => { |
| 45 | /* istanbul ignore next: arborist Nodes always carry a `package` object; |