diff options
Diffstat (limited to 'node_modules/ajv/lib/dot')
-rw-r--r-- | node_modules/ajv/lib/dot/format.jst | 2 | ||||
-rw-r--r-- | node_modules/ajv/lib/dot/ref.jst | 4 | ||||
-rw-r--r-- | node_modules/ajv/lib/dot/validate.jst | 8 |
3 files changed, 7 insertions, 7 deletions
diff --git a/node_modules/ajv/lib/dot/format.jst b/node_modules/ajv/lib/dot/format.jst index 074d16c31..484dddf79 100644 --- a/node_modules/ajv/lib/dot/format.jst +++ b/node_modules/ajv/lib/dot/format.jst @@ -71,7 +71,7 @@ {{ var $format = it.formats[$schema]; }} {{? !$format }} {{? $unknownFormats == 'ignore' }} - {{ console.warn('unknown format "' + $schema + '" ignored in schema at path "' + it.errSchemaPath + '"'); }} + {{ it.logger.warn('unknown format "' + $schema + '" ignored in schema at path "' + it.errSchemaPath + '"'); }} {{# def.skipFormat }} {{?? $allowUnknown && $unknownFormats.indexOf($schema) >= 0 }} {{# def.skipFormat }} diff --git a/node_modules/ajv/lib/dot/ref.jst b/node_modules/ajv/lib/dot/ref.jst index 4a0889686..036bc2905 100644 --- a/node_modules/ajv/lib/dot/ref.jst +++ b/node_modules/ajv/lib/dot/ref.jst @@ -27,11 +27,11 @@ {{? $refVal === undefined }} {{ var $message = it.MissingRefError.message(it.baseId, $schema); }} {{? it.opts.missingRefs == 'fail' }} - {{ console.error($message); }} + {{ it.logger.error($message); }} {{# def.error:'$ref' }} {{? $breakOnError }} if (false) { {{?}} {{?? it.opts.missingRefs == 'ignore' }} - {{ console.warn($message); }} + {{ it.logger.warn($message); }} {{? $breakOnError }} if (true) { {{?}} {{??}} {{ throw new it.MissingRefError(it.baseId, $schema, $message); }} diff --git a/node_modules/ajv/lib/dot/validate.jst b/node_modules/ajv/lib/dot/validate.jst index 4ebc599c0..273e4c37e 100644 --- a/node_modules/ajv/lib/dot/validate.jst +++ b/node_modules/ajv/lib/dot/validate.jst @@ -140,7 +140,7 @@ {{?? it.opts.extendRefs !== true }} {{ $refKeywords = false; - console.warn('$ref: keywords ignored in schema at path "' + it.errSchemaPath + '"'); + it.logger.warn('$ref: keywords ignored in schema at path "' + it.errSchemaPath + '"'); }} {{?}} {{?}} @@ -177,7 +177,7 @@ {{?}} {{??}} {{? it.opts.v5 && it.schema.patternGroups }} - {{ console.warn('keyword "patternGroups" is deprecated and disabled. Use option patternGroups: true to enable.'); }} + {{ it.logger.warn('keyword "patternGroups" is deprecated and disabled. Use option patternGroups: true to enable.'); }} {{?}} {{~ it.RULES:$rulesGroup }} {{? $shouldUseGroup($rulesGroup) }} @@ -260,10 +260,10 @@ function $shouldUseRule($rule) { return it.schema[$rule.keyword] !== undefined || - ($rule.implements && $ruleImlementsSomeKeyword($rule)); + ($rule.implements && $ruleImplementsSomeKeyword($rule)); } - function $ruleImlementsSomeKeyword($rule) { + function $ruleImplementsSomeKeyword($rule) { var impl = $rule.implements; for (var i=0; i < impl.length; i++) if (it.schema[impl[i]] !== undefined) |