(root)
| 563 | } |
| 564 | |
| 565 | async function findAppBundle(root) { |
| 566 | const entries = await fs.promises.readdir(root, { withFileTypes: true }); |
| 567 | for (const entry of entries) { |
| 568 | const full = path.join(root, entry.name); |
| 569 | if (entry.isDirectory() && entry.name.endsWith(".app")) { |
| 570 | return full; |
| 571 | } |
| 572 | if (entry.isDirectory()) { |
| 573 | const nested = await findAppBundle(full); |
| 574 | if (nested) { |
| 575 | return nested; |
| 576 | } |
| 577 | } |
| 578 | } |
| 579 | return null; |
| 580 | } |
| 581 | |
| 582 | async function localGet(config, path) { |
| 583 | const target = new URL(path, `${config.localUrl}/`); |
no outgoing calls
no test coverage detected