docpad-plugin-schema
Advanced tools
Comparing version 1.0.3 to 2.0.0
{ | ||
"name": "docpad-plugin-schema", | ||
"version": "1.0.3", | ||
"version": "2.0.0", | ||
"description": "Lets you attach JSON schema to your collection", | ||
@@ -5,0 +5,0 @@ "homepage": "http://docpad.org/plugin/schema", |
@@ -6,5 +6,2 @@ import { validate } from 'jsonschema'; | ||
return class BaseClass extends BasePlugin { | ||
constructor (...args) { | ||
super(...args); | ||
} | ||
@@ -15,3 +12,3 @@ get name () { | ||
generateBefore(opts, next) { | ||
generateBefore (opts, next) { | ||
const docpad = this.docpad; | ||
@@ -21,3 +18,3 @@ | ||
if(!config) { | ||
if (!config) { | ||
docpad.log('warn', 'There is no schema given!'); | ||
@@ -37,3 +34,3 @@ return next(); | ||
if(isValidated.errors && isValidated.errors.length) { | ||
if (isValidated.errors && isValidated.errors.length) { | ||
docpad.log('warn', `Document ${record.relativePath} isn't following schema, it will not render`); | ||
@@ -40,0 +37,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
0
100
16939
8
98
1