export function checkLicenseStatus(license, policy) {
    if (policy.allowedLicenses.some(l => l === license))
        return 'allowed';
    if (policy.blockedLicenses.some(l => l === license))
        return 'blocked';
    return 'unknown';
}
export const DEFAULT_LICENSE_POLICY = {
    allowedLicenses: [
        'MIT',
        'MIT-0',
        'ISC',
        'BSD-2-Clause',
        'BSD-3-Clause',
        'Apache-2.0',
        '0BSD',
        'Unlicense',
        'CC0-1.0',
        'BlueOak-1.0.0',
        'Python-2.0',
        'Zlib',
        'CC-BY-3.0',
        'CC-BY-4.0',
        'Artistic-2.0',
        'BSD-2-Clause-Patent',
        'BSL-1.0',
        'Unicode-DFS-2015',
        'Unicode-DFS-2016',
        'Unicode-3.0'
    ],
    blockedLicenses: [
        'GPL-2.0',
        'GPL-2.0-only',
        'GPL-2.0-or-later',
        'GPL-3.0',
        'GPL-3.0-only',
        'GPL-3.0-or-later',
        'AGPL-3.0',
        'AGPL-3.0-only',
        'AGPL-3.0-or-later',
        'SSPL-1.0',
        'BUSL-1.1',
        'EUPL-1.1',
        'EUPL-1.2',
        'MPL-1.0',
        'MPL-1.1',
        'MPL-2.0',
        'LGPL-2.0',
        'LGPL-2.1',
        'LGPL-3.0',
        'CC-BY-NC-4.0',
        'CC-BY-NC-SA-4.0',
        'CC-BY-ND-4.0',
        'CC-BY-NC-ND-4.0'
    ],
    exceptions: [],
    failOnBlocked: true,
    failOnUnknown: false
};
//# sourceMappingURL=policy.js.map