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

jsonpolice

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsonpolice - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

3

lib/index.js

@@ -855,2 +855,5 @@ 'use strict';

function create(dataOrUri, opts) {
if (!dataOrUri) {
throw new SchemaError(opts.scope, 'no_data');
}
if ((typeof dataOrUri === 'undefined' ? 'undefined' : _typeof(dataOrUri)) === 'object' && dataOrUri[__schema] instanceof Schema) {

@@ -857,0 +860,0 @@ return Promise.resolve(dataOrUri[__schema]);

2

package.json
{
"name": "jsonpolice",
"version": "3.1.0",
"version": "3.1.1",
"description": "JSON Schema parser and validator",

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

@@ -695,2 +695,5 @@ import _ from 'lodash';

export function create(dataOrUri, opts) {
if (!dataOrUri) {
throw new SchemaError(opts.scope, 'no_data');
}
if (typeof dataOrUri === 'object' && dataOrUri[__schema] instanceof Schema) {

@@ -697,0 +700,0 @@ return Promise.resolve(dataOrUri[__schema]);

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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