(record, version, integrity)
| 50 | } |
| 51 | |
| 52 | export function assertMatching(record, version, integrity) { |
| 53 | if (record?.version !== version || record?.['dist.integrity'] !== integrity) { |
| 54 | throw new Error( |
| 55 | 'Existing registry version differs from the verified tarball.', |
| 56 | ); |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | export async function publishVerified({ |
| 61 | version, |