New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

docpad-plugin-schema

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docpad-plugin-schema - npm Package Compare versions

Comparing version 1.0.3 to 2.0.0

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc