Repository URL to install this package:
|
Version:
0.6.0 ▾
|
gateway-proxy
/
usr
/
share
/
gateway-proxy
/
app
/
node_modules
/
@commitlint
/
execute-rule
/
lib
/
index.js
|
|---|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.execute = void 0;
exports.default = execute;
async function execute(rule) {
if (!Array.isArray(rule)) {
return null;
}
const [name, config] = rule;
const fn = executable(config) ? config : async () => config;
return [name, await fn()];
}
exports.execute = execute;
function executable(config) {
return typeof config === 'function';
}
//# sourceMappingURL=index.js.map