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

@rjsf/validator-ajv8

Package Overview
Dependencies
Maintainers
2
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rjsf/validator-ajv8 - npm Package Compare versions

Comparing version 5.13.0 to 5.13.1

4

dist/index.js

@@ -229,5 +229,3 @@ "use strict";

try {
if (this.ajv.getSchema(rootSchemaId) === void 0) {
this.ajv.addSchema(rootSchema, rootSchemaId);
}
this.ajv.addSchema(rootSchema, rootSchemaId);
const schemaWithIdRefPrefix = (0, import_utils3.withIdRefPrefix)(schema);

@@ -234,0 +232,0 @@ const schemaId = schemaWithIdRefPrefix[import_utils3.ID_KEY] ?? (0, import_utils3.hashForSchema)(schemaWithIdRefPrefix);

@@ -205,5 +205,3 @@ // src/validator.ts

try {
if (this.ajv.getSchema(rootSchemaId) === void 0) {
this.ajv.addSchema(rootSchema, rootSchemaId);
}
this.ajv.addSchema(rootSchema, rootSchemaId);
const schemaWithIdRefPrefix = withIdRefPrefix(schema);

@@ -210,0 +208,0 @@ const schemaId = schemaWithIdRefPrefix[ID_KEY] ?? hashForSchema(schemaWithIdRefPrefix);

@@ -186,5 +186,3 @@ (function (global, factory) {

try {
if (this.ajv.getSchema(rootSchemaId) === void 0) {
this.ajv.addSchema(rootSchema, rootSchemaId);
}
this.ajv.addSchema(rootSchema, rootSchemaId);
const schemaWithIdRefPrefix = utils.withIdRefPrefix(schema);

@@ -191,0 +189,0 @@ const schemaId = schemaWithIdRefPrefix[utils.ID_KEY] ?? utils.hashForSchema(schemaWithIdRefPrefix);

@@ -93,5 +93,6 @@ import { ID_KEY, ROOT_SCHEMA_PREFIX, toErrorList, withIdRefPrefix, hashForSchema, } from '@rjsf/utils';

// that lives in the rootSchema but not in the schema in question.
if (this.ajv.getSchema(rootSchemaId) === undefined) {
this.ajv.addSchema(rootSchema, rootSchemaId);
}
// if (this.ajv.getSchema(rootSchemaId) === undefined) {
// TODO restore the commented out `if` above when the TODO in the `finally` is completed
this.ajv.addSchema(rootSchema, rootSchemaId);
// }
const schemaWithIdRefPrefix = withIdRefPrefix(schema);

@@ -98,0 +99,0 @@ const schemaId = (_b = schemaWithIdRefPrefix[ID_KEY]) !== null && _b !== void 0 ? _b : hashForSchema(schemaWithIdRefPrefix);

{
"name": "@rjsf/validator-ajv8",
"version": "5.13.0",
"version": "5.13.1",
"main": "dist/index.js",

@@ -46,18 +46,18 @@ "module": "lib/index.js",

"devDependencies": {
"@babel/core": "^7.22.9",
"@babel/core": "^7.22.17",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
"@babel/preset-env": "^7.22.9",
"@babel/preset-react": "^7.22.5",
"@babel/preset-typescript": "^7.22.5",
"@rjsf/utils": "^5.13.0",
"@babel/preset-env": "^7.22.15",
"@babel/preset-react": "^7.22.15",
"@babel/preset-typescript": "^7.22.15",
"@rjsf/utils": "^5.13.1",
"@types/json-schema": "^7.0.12",
"@types/lodash": "^4.14.196",
"babel-jest": "^29.6.2",
"esbuild": "^0.18.19",
"eslint": "^8.46.0",
"jest": "^29.6.2",
"jest-environment-jsdom": "^29.6.1",
"@types/lodash": "^4.14.198",
"babel-jest": "^29.6.4",
"esbuild": "^0.18.20",
"eslint": "^8.48.0",
"jest": "^29.6.4",
"jest-environment-jsdom": "^29.6.4",
"rimraf": "^5.0.1",
"rollup": "^3.27.2",
"rollup": "^3.29.0",
"typescript": "^4.9.5"

@@ -86,3 +86,3 @@ },

"license": "Apache-2.0",
"gitHead": "588b1c063095f75278585838cbca9b20252e13c9"
"gitHead": "a8039b4b7b872606a14e28885ba4e7faea9e2bfa"
}

@@ -137,5 +137,6 @@ import Ajv, { ErrorObject, ValidateFunction } from 'ajv';

// that lives in the rootSchema but not in the schema in question.
if (this.ajv.getSchema(rootSchemaId) === undefined) {
this.ajv.addSchema(rootSchema, rootSchemaId);
}
// if (this.ajv.getSchema(rootSchemaId) === undefined) {
// TODO restore the commented out `if` above when the TODO in the `finally` is completed
this.ajv.addSchema(rootSchema, rootSchemaId);
// }
const schemaWithIdRefPrefix = withIdRefPrefix<S>(schema) as S;

@@ -142,0 +143,0 @@ const schemaId = schemaWithIdRefPrefix[ID_KEY] ?? hashForSchema(schemaWithIdRefPrefix);

Sorry, the diff of this file is not supported yet

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