SharingLinkAudit.psm1

# StrictMode turns silent mistakes - a mistyped property, an unset variable -
# into errors during development instead of wrong output in production.
Set-StrictMode -Version Latest
$ErrorActionPreference = 'Stop'

# Dot-source every function file, private first so public ones can call them.
foreach ($folder in 'Private', 'Public') {
    $path = Join-Path $PSScriptRoot $folder
    if (Test-Path $path) {
        Get-ChildItem -Path $path -Filter '*.ps1' -Recurse | ForEach-Object {
            . $_.FullName
        }
    }
}