@lcap/nasl
Version:
NetEase Application Specific Language
18 lines • 694 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isFrontendStaticStyle = void 0;
const types_1 = require("../types");
const utils_1 = require("../utils");
exports.isFrontendStaticStyle = {
name: 'is-frontend-static-style',
afterInstruct(action) {
if ((0, utils_1.isFrontendPath)(action.path) &&
action.object &&
// 只有 staticStyle 以及 changedTime 的时候
(0, utils_1.onlyKeysInObject)(action.object, ['staticStyle', 'changedTime'])) {
return types_1.RuleResult.Frontend;
}
return types_1.RuleResult.UnMatch;
},
};
//# sourceMappingURL=is-frontend-static-style.js.map