(callback)
| 30 | const FORMER_MEMBER_CAP_BYTES = 256 * 1024 * 1024; |
| 31 | |
| 32 | function withScratch(callback) { |
| 33 | const root = fs.mkdtempSync(path.join(os.tmpdir(), 'cbm-npm-archive-test-')); |
| 34 | return Promise.resolve() |
| 35 | .then(() => callback(root)) |
| 36 | .finally(() => fs.rmSync(root, { recursive: true, force: true })); |
| 37 | } |
| 38 | |
| 39 | function releaseEntries(names, executableData) { |
| 40 | return names.map((name) => ({ |
no outgoing calls
no test coverage detected