You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@rjsf/validator-ajv8

Package Overview
Dependencies
Maintainers
0
Versions
107
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

to
5.19.4

4

dist/compileSchemaValidators.esm.js

@@ -17,3 +17,5 @@ // src/compileSchemaValidators.ts

strict: false,
verbose: true
verbose: true,
discriminator: false
// TODO enable this in V6
};

@@ -20,0 +22,0 @@ var COLOR_FORMAT_REGEX = /^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/;

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

strict: false,
verbose: true
verbose: true,
discriminator: false
// TODO enable this in V6
};

@@ -55,0 +57,0 @@ var COLOR_FORMAT_REGEX = /^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/;

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

strict: false,
verbose: true
verbose: true,
discriminator: false
// TODO enable this in V6
};

@@ -161,2 +163,7 @@ var COLOR_FORMAT_REGEX = /^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/;

}
/** Resets the internal AJV validator to clear schemas from it. Can be helpful for resetting the validator for tests.
*/
reset() {
this.ajv.removeSchema();
}
/** Converts an `errorSchema` into a list of `RJSFValidationErrors`

@@ -163,0 +170,0 @@ *

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

strict: false,
verbose: true
verbose: true,
discriminator: false
// TODO enable this in V6
};

@@ -138,2 +140,7 @@ var COLOR_FORMAT_REGEX = /^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/;

}
/** Resets the internal AJV validator to clear schemas from it. Can be helpful for resetting the validator for tests.
*/
reset() {
this.ajv.removeSchema();
}
/** Converts an `errorSchema` into a list of `RJSFValidationErrors`

@@ -140,0 +147,0 @@ *

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

strict: false,
verbose: true
verbose: true,
discriminator: false
// TODO enable this in V6
};

@@ -118,2 +120,7 @@ var COLOR_FORMAT_REGEX = /^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/;

}
/** Resets the internal AJV validator to clear schemas from it. Can be helpful for resetting the validator for tests.
*/
reset() {
this.ajv.removeSchema();
}
/** Converts an `errorSchema` into a list of `RJSFValidationErrors`

@@ -120,0 +127,0 @@ *

@@ -10,2 +10,3 @@ import Ajv from 'ajv';

verbose: true,
discriminator: false, // TODO enable this in V6
};

@@ -12,0 +13,0 @@ export const COLOR_FORMAT_REGEX = /^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/;

@@ -24,2 +24,5 @@ import Ajv from 'ajv';

constructor(options: CustomValidatorOptionsType, localizer?: Localizer);
/** Resets the internal AJV validator to clear schemas from it. Can be helpful for resetting the validator for tests.
*/
reset(): void;
/** Converts an `errorSchema` into a list of `RJSFValidationErrors`

@@ -26,0 +29,0 @@ *

@@ -17,2 +17,7 @@ import { deepEquals, ID_KEY, ROOT_SCHEMA_PREFIX, toErrorList, withIdRefPrefix, hashForSchema, } from '@rjsf/utils';

}
/** Resets the internal AJV validator to clear schemas from it. Can be helpful for resetting the validator for tests.
*/
reset() {
this.ajv.removeSchema();
}
/** Converts an `errorSchema` into a list of `RJSFValidationErrors`

@@ -19,0 +24,0 @@ *

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

@@ -51,3 +51,3 @@ "module": "lib/index.js",

"@babel/preset-typescript": "^7.23.3",
"@rjsf/utils": "^5.19.3",
"@rjsf/utils": "^5.19.4",
"@types/jest": "^29.5.12",

@@ -85,3 +85,3 @@ "@types/json-schema": "^7.0.15",

"license": "Apache-2.0",
"gitHead": "3d0a309c23e6f6da116b350faead174dade7ca40"
"gitHead": "e2c3b063b0d1186fe3a8ced0e9effe29138e4440"
}

@@ -13,2 +13,3 @@ import Ajv, { Options } from 'ajv';

verbose: true,
discriminator: false, // TODO enable this in V6
} as const;

@@ -15,0 +16,0 @@ export const COLOR_FORMAT_REGEX =

@@ -52,2 +52,8 @@ import Ajv, { ErrorObject, ValidateFunction } from 'ajv';

/** Resets the internal AJV validator to clear schemas from it. Can be helpful for resetting the validator for tests.
*/
reset() {
this.ajv.removeSchema();
}
/** Converts an `errorSchema` into a list of `RJSFValidationErrors`

@@ -54,0 +60,0 @@ *

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

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

Sorry, the diff of this file is not supported yet