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.2.3 to 3.2.4

5

lib/index.js

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

assignIfEnumerableAndDefined(o, i, 'title');
assignIfEnumerableAndDefined(o, i, 'format');
assignIfEnumerableAndDefined(o, i, 'description');

@@ -860,3 +861,5 @@ assignIfEnumerableAndDefinedAndNotSet(o, i, 'default');

function create(dataOrUri, opts) {
function create(dataOrUri) {
var opts = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
if (!dataOrUri) {

@@ -863,0 +866,0 @@ throw new SchemaError(opts.scope, 'no_data');

2

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

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

@@ -343,2 +343,3 @@ import _ from 'lodash';

assignIfEnumerableAndDefined(o, i, 'title');
assignIfEnumerableAndDefined(o, i, 'format');
assignIfEnumerableAndDefined(o, i, 'description');

@@ -699,3 +700,3 @@ assignIfEnumerableAndDefinedAndNotSet(o, i, 'default');

export function create(dataOrUri, opts) {
export function create(dataOrUri, opts = {}) {
if (!dataOrUri) {

@@ -702,0 +703,0 @@ throw new SchemaError(opts.scope, 'no_data');

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