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

json-schema-models

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-schema-models - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

5

lib/index.js

@@ -30,2 +30,3 @@ 'use strict';

module.exports = internals.Datastore = class Datastore {

@@ -89,7 +90,7 @@

var err, schemaName, valid;
var formats = Object.keys(this.schema.formats);
var formats = Object.keys(rawSchemas.formats);
for (var e = 0, el = formats.length; e < el; ++e) {
var name = formats[e];
var func = this.schema.formats[name].bind(this);
var func = rawSchemas.formats[name].bind(this);
this.zSchema.registerFormat(name, func);

@@ -96,0 +97,0 @@ }

4

package.json
{
"name": "json-schema-models",
"version": "0.0.7",
"version": "0.0.8",
"description": "json schema based models",

@@ -24,3 +24,3 @@ "main": "lib/index.js",

"neo-async": "1.x.x",
"yajsv": "^0.3.2"
"yajsv": "^0.3.3"
},

@@ -27,0 +27,0 @@ "devDependencies": {

@@ -7,4 +7,5 @@ 'use strict';

metaSchema: {
description: 'invlaid defintion',
description: 'invalid record schema',
type: 'record',
base: 'example',
jsonSchema: 'v4',

@@ -11,0 +12,0 @@ name: 'rec',

@@ -9,2 +9,3 @@ 'use strict';

type: 'record',
base: 'example',
jsonSchema: 'v4',

@@ -11,0 +12,0 @@ name: 'rec',

@@ -112,2 +112,3 @@ // Load modules

manager.schema.addSchemas(Schemas);
manager.schema.addSchemas([InvalidRec]);

@@ -114,0 +115,0 @@ manager.start(function (err, result) {

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