| | | |
Offset 35579, 47 lines modified | Offset 35579, 55 lines modified |
35579 | ········keywords:·{}, | 35579 | ········keywords:·{}, |
35580 | ····}; | 35580 | ····}; |
35581 | } | 35581 | } |
35582 | rules.getRules·=·getRules; | 35582 | rules.getRules·=·getRules; |
| |
35583 | var·applicability·=·{}; | 35583 | var·applicability·=·{}; |
| |
| 35584 | var·hasRequiredApplicability; |
35584 | Object.defineProperty(applicability,·"__esModule",·{ | |
35585 | ····value:·true | |
35586 | }); | |
35587 | applicability.shouldUseRule·=·applicability.shouldUseGroup·=·applicability.schemaHasRulesForType·=·void·0; | |
| |
| 35585 | function·requireApplicability()·{ |
| 35586 | ····if·(hasRequiredApplicability)·return·applicability; |
| 35587 | ····hasRequiredApplicability·=·1; |
| 35588 | ····Object.defineProperty(applicability,·"__esModule",·{ |
| 35589 | ········value:·true |
| 35590 | ····}); |
| 35591 | ····applicability.shouldUseRule·=·applicability.shouldUseGroup·=·applicability.schemaHasRulesForType·=·void·0; |
35588 | function·schemaHasRulesForType({ | |
35589 | ····schema, | |
35590 | ····self | |
35591 | },·type)·{ | |
35592 | ····const·group·=·self.RULES.types[type]; | |
35593 | ····return·group·&&·group·!==·true·&&·shouldUseGroup(schema,·group); | |
35594 | } | |
35595 | applicability.schemaHasRulesForType·=·schemaHasRulesForType; | |
| |
| 35592 | ····function·schemaHasRulesForType({ |
| 35593 | ········schema, |
| 35594 | ········self |
| 35595 | ····},·type)·{ |
| 35596 | ········const·group·=·self.RULES.types[type]; |
| 35597 | ········return·group·&&·group·!==·true·&&·shouldUseGroup(schema,·group); |
| 35598 | ····} |
| 35599 | ····applicability.schemaHasRulesForType·=·schemaHasRulesForType; |
| |
35596 | function·shouldUseGroup(schema,·group)·{ | 35600 | ····function·shouldUseGroup(schema,·group)·{ |
35597 | ····return·group.rules.some((rule)·=>·shouldUseRule(schema,·rule)); | 35601 | ········return·group.rules.some((rule)·=>·shouldUseRule(schema,·rule)); |
35598 | } | 35602 | ····} |
35599 | applicability.shouldUseGroup·=·shouldUseGroup; | 35603 | ····applicability.shouldUseGroup·=·shouldUseGroup; |
| |
| 35604 | ····function·shouldUseRule(schema,·rule)·{ |
| 35605 | ········var·_a; |
| 35606 | ········return·(schema[rule.keyword]·!==·undefined·|| |
| 35607 | ············((_a·=·rule.definition.implements)·===·null·||·_a·===·void·0·?·void·0·:·_a.some((kwd)·=>·schema[kwd]·!==·undefined))); |
| 35608 | ····} |
| 35609 | ····applicability.shouldUseRule·=·shouldUseRule; |
| |
| 35610 | ····return·applicability; |
35600 | function·shouldUseRule(schema,·rule)·{ | |
35601 | ····var·_a; | |
35602 | ····return·(schema[rule.keyword]·!==·undefined·|| | |
35603 | ········((_a·=·rule.definition.implements)·===·null·||·_a·===·void·0·?·void·0·:·_a.some((kwd)·=>·schema[kwd]·!==·undefined))); | |
35604 | } | 35611 | } |
35605 | applicability.shouldUseRule·=·shouldUseRule; | |
| |
35606 | (function(exports)·{ | 35612 | (function(exports)·{ |
35607 | ····Object.defineProperty(exports,·"__esModule",·{ | 35613 | ····Object.defineProperty(exports,·"__esModule",·{ |
35608 | ········value:·true | 35614 | ········value:·true |
35609 | ····}); | 35615 | ····}); |
35610 | ····exports.reportTypeError·=·exports.checkDataTypes·=·exports.checkDataType·=·exports.coerceAndCheckDataType·=·exports.getJSONTypes·=·exports.getSchemaTypes·=·exports.DataType·=·void·0; | 35616 | ····exports.reportTypeError·=·exports.checkDataTypes·=·exports.checkDataType·=·exports.coerceAndCheckDataType·=·exports.getJSONTypes·=·exports.getSchemaTypes·=·exports.DataType·=·void·0; |
35611 | ····const·rules_1·=·rules; | 35617 | ····const·rules_1·=·rules; |
35612 | ····const·applicability_1·=·applicability; | 35618 | ····const·applicability_1·=·requireApplicability(); |
35613 | ····const·errors_1·=·requireErrors(); | 35619 | ····const·errors_1·=·requireErrors(); |
35614 | ····const·codegen_1·=·requireCodegen(); | 35620 | ····const·codegen_1·=·requireCodegen(); |
35615 | ····const·util_1·=·util; | 35621 | ····const·util_1·=·util; |
35616 | ····var·DataType; | 35622 | ····var·DataType; |
35617 | ····(function(DataType)·{ | 35623 | ····(function(DataType)·{ |
35618 | ········DataType[DataType["Correct"]·=·0]·=·"Correct"; | 35624 | ········DataType[DataType["Correct"]·=·0]·=·"Correct"; |
35619 | ········DataType[DataType["Wrong"]·=·1]·=·"Wrong"; | 35625 | ········DataType[DataType["Wrong"]·=·1]·=·"Wrong"; |
Offset 36722, 15 lines modified | Offset 36730, 15 lines modified |
36722 | ····hasRequiredValidate·=·1; | 36730 | ····hasRequiredValidate·=·1; |
36723 | ····Object.defineProperty(validate,·"__esModule",·{ | 36731 | ····Object.defineProperty(validate,·"__esModule",·{ |
36724 | ········value:·true | 36732 | ········value:·true |
36725 | ····}); | 36733 | ····}); |
36726 | ····validate.getData·=·validate.KeywordCxt·=·validate.validateFunctionCode·=·void·0; | 36734 | ····validate.getData·=·validate.KeywordCxt·=·validate.validateFunctionCode·=·void·0; |
36727 | ····const·boolSchema_1·=·requireBoolSchema(); | 36735 | ····const·boolSchema_1·=·requireBoolSchema(); |
36728 | ····const·dataType_1·=·dataType; | 36736 | ····const·dataType_1·=·dataType; |
36729 | ····const·applicability_1·=·applicability; | 36737 | ····const·applicability_1·=·requireApplicability(); |
36730 | ····const·dataType_2·=·dataType; | 36738 | ····const·dataType_2·=·dataType; |
36731 | ····const·defaults_1·=·requireDefaults(); | 36739 | ····const·defaults_1·=·requireDefaults(); |
36732 | ····const·keyword_1·=·requireKeyword(); | 36740 | ····const·keyword_1·=·requireKeyword(); |
36733 | ····const·subschema_1·=·requireSubschema(); | 36741 | ····const·subschema_1·=·requireSubschema(); |
36734 | ····const·codegen_1·=·requireCodegen(); | 36742 | ····const·codegen_1·=·requireCodegen(); |
36735 | ····const·names_1·=·requireNames(); | 36743 | ····const·names_1·=·requireNames(); |
36736 | ····const·resolve_1·=·resolve$1; | 36744 | ····const·resolve_1·=·resolve$1; |