(ref)
| 48 | } |
| 49 | |
| 50 | const parse = (ref) => { |
| 51 | const reference = new Function(`return \`${ref}\`;`).call(); |
| 52 | |
| 53 | reference_pattern.lastIndex = 0; |
| 54 | const parts = [...reference.matchAll(reference_pattern)][0]; |
| 55 | |
| 56 | return { |
| 57 | organization: parts[1], |
| 58 | repository: parts[2], |
| 59 | version: parts[3] || 'latest', |
| 60 | binary: parts[4] |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | module.exports = { |
| 65 | name: `github-release-binary`, |
no outgoing calls
no test coverage detected