PHP WebShell

Текущая директория: /opt/BitGoJS/node_modules/@commitlint/is-ignored/lib

Просмотр файла: is-ignored.js

import { wildcards } from './defaults.js';
export default function isIgnored(commit = '', opts = {}) {
    const ignores = typeof opts.ignores === 'undefined' ? [] : opts.ignores;
    if (!Array.isArray(ignores)) {
        throw new Error(`ignores must be of type array, received ${ignores} of type ${typeof ignores}`);
    }
    const invalids = ignores.filter((c) => typeof c !== 'function');
    if (invalids.length > 0) {
        throw new Error(`ignores must be array of type function, received items of type: ${invalids
            .map((i) => typeof i)
            .join(', ')}`);
    }
    const base = opts.defaults === false ? [] : wildcards;
    return [...base, ...ignores].some((w) => w(commit));
}
//# sourceMappingURL=is-ignored.js.map

Выполнить команду


Для локальной разработки. Не используйте в интернете!