(configured: string | null, inferred: ReadonlyMap<string, string | null>)
| 127 | * holding such an include → its inferred root (null for none), as JSON. |
| 128 | */ |
| 129 | export function phpWebRootSnapshot(configured: string | null, inferred: ReadonlyMap<string, string | null>): string { |
| 130 | if (configured !== null) return CONFIGURED_WEB_ROOT; |
| 131 | return JSON.stringify(Object.fromEntries([...inferred].sort(([a], [b]) => (a < b ? -1 : a > b ? 1 : 0)))); |
| 132 | } |
| 133 | |
| 134 | /** |
| 135 | * Whether the web roots moved for files a sync never touched, between two |
no outgoing calls