X-Git-Url: https://git.josue.xyz/?p=dotfiles%2F.git;a=blobdiff_plain;f=.config%2Fcoc%2Fextensions%2Fnode_modules%2Fcoc-prettier%2Fnode_modules%2Fajv%2Flib%2Fdotjs%2Fdependencies.js;h=e4829497b0727c7d45a99c1ca9c54aa19675ac9c;hp=9654b3c0e9d84983b0bcfa1e621770c9fbfebdf3;hb=4d07c77cf4d78cab8639e13ddc3c22495e585b0b;hpb=3aba54c891969552833dbc350b3139e944e17a97 diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/ajv/lib/dotjs/dependencies.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/ajv/lib/dotjs/dependencies.js index 9654b3c0..e4829497 100644 --- a/.config/coc/extensions/node_modules/coc-prettier/node_modules/ajv/lib/dotjs/dependencies.js +++ b/.config/coc/extensions/node_modules/coc-prettier/node_modules/ajv/lib/dotjs/dependencies.js @@ -143,7 +143,7 @@ module.exports = function generate_dependencies(it, $keyword, $ruleType) { var $currentBaseId = $it.baseId; for (var $property in $schemaDeps) { var $sch = $schemaDeps[$property]; - if ((it.opts.strictKeywords ? typeof $sch == 'object' && Object.keys($sch).length > 0 : it.util.schemaHasRules($sch, it.RULES.all))) { + if ((it.opts.strictKeywords ? (typeof $sch == 'object' && Object.keys($sch).length > 0) || $sch === false : it.util.schemaHasRules($sch, it.RULES.all))) { out += ' ' + ($nextValid) + ' = true; if ( ' + ($data) + (it.util.getProperty($property)) + ' !== undefined '; if ($ownProperties) { out += ' && Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($property)) + '\') ';