Spaces:
Sleeping
Sleeping
Download node_modules/ajv/lib/dotjs/comment.js from andy-gg/my-project: direct link, hf CLI and curl.
- Browser
- Download file 573 Bytes
-
https://huggingface.co/spaces/andy-gg/my-project/resolve/main/node_modules/ajv/lib/dotjs/comment.js
- Command line
-
hf download hf://spaces/andy-gg/my-project/node_modules/ajv/lib/dotjs/comment.js
-
curl -L -o comment.js https://huggingface.co/spaces/andy-gg/my-project/resolve/main/node_modules/ajv/lib/dotjs/comment.js
573 Bytes
| ; | |
| module.exports = function generate_comment(it, $keyword, $ruleType) { | |
| var out = ' '; | |
| var $schema = it.schema[$keyword]; | |
| var $errSchemaPath = it.errSchemaPath + '/' + $keyword; | |
| var $breakOnError = !it.opts.allErrors; | |
| var $comment = it.util.toQuotedString($schema); | |
| if (it.opts.$comment === true) { | |
| out += ' console.log(' + ($comment) + ');'; | |
| } else if (typeof it.opts.$comment == 'function') { | |
| out += ' self._opts.$comment(' + ($comment) + ', ' + (it.util.toQuotedString($errSchemaPath)) + ', validate.root.schema);'; | |
| } | |
| return out; | |
| } | |