Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

is-my-json-valid

Package Overview
Dependencies
Maintainers
2
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-my-json-valid - npm Package Compare versions

Comparing version 2.5.0 to 2.6.0

4

index.js

@@ -33,3 +33,5 @@ var genobj = require('generate-object-property')

var formatName = function(field) {
return field.replace(/\[[^\]]+\]/g, '.*')
var pattern = /\[[^\[\]"]+\]/
while (pattern.test(field)) field = field.replace(pattern, '.*')
return field
}

@@ -36,0 +38,0 @@

{
"name": "is-my-json-valid",
"version": "2.5.0",
"version": "2.6.0",
"description": "A JSONSchema validator that uses code generation to be extremely fast",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -109,3 +109,3 @@ # is-my-json-valid

var doc = {hello: 'world', notInSchema: true}
console.log(doc) // {hello: 'world'}
console.log(filter(doc)) // {hello: 'world'}
```

@@ -112,0 +112,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