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

@takeshape/json-schema

Package Overview
Dependencies
Maintainers
4
Versions
781
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@takeshape/json-schema - npm Package Compare versions

Comparing version 7.14.0 to 7.38.2

5

es/schema-validator.js

@@ -195,6 +195,7 @@ import Ajv, { ErrorObject } from 'ajv';

}
export function createSchemaValidator(schema, metaSchemas = []) {
export function createSchemaValidator(schema, metaSchemas = [], options = {}) {
const schemas = Array.isArray(schema) ? schema : [schema];
const ajv = createAjv({
removeAdditional: true
removeAdditional: true,
...options
});

@@ -201,0 +202,0 @@

2

lib/schema-validator.d.ts

@@ -32,3 +32,3 @@ import Ajv, { ErrorObject, Options, SchemaObject } from 'ajv';

export declare function fixSchema(schema: SchemaObject): SchemaObject;
export declare function createSchemaValidator(schema: SchemaObject | SchemaObject[], metaSchemas?: SchemaObject[]): Validator;
export declare function createSchemaValidator(schema: SchemaObject | SchemaObject[], metaSchemas?: SchemaObject[], options?: Options): Validator;
//# sourceMappingURL=schema-validator.d.ts.map

@@ -232,6 +232,7 @@ "use strict";

function createSchemaValidator(schema, metaSchemas = []) {
function createSchemaValidator(schema, metaSchemas = [], options = {}) {
const schemas = Array.isArray(schema) ? schema : [schema];
const ajv = createAjv({
removeAdditional: true
removeAdditional: true,
...options
});

@@ -238,0 +239,0 @@

{
"name": "@takeshape/json-schema",
"version": "7.14.0",
"version": "7.38.2",
"description": "JSON Schema validator",

@@ -5,0 +5,0 @@ "homepage": "https://www.takeshape.io",

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