@jupiterone/integration-sdk-entity-validator
Advanced tools
Comparing version 13.2.0 to 13.3.0
export * from './validator'; | ||
export { unknownPropertySymbol, isEntityValidationError, type EntityValidationError, } from './entityValidationError'; | ||
export { getValidator, getValidatorSync } from './singleton'; |
@@ -17,3 +17,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isEntityValidationError = exports.unknownPropertySymbol = void 0; | ||
exports.getValidatorSync = exports.getValidator = exports.isEntityValidationError = exports.unknownPropertySymbol = void 0; | ||
__exportStar(require("./validator"), exports); | ||
@@ -23,2 +23,5 @@ var entityValidationError_1 = require("./entityValidationError"); | ||
Object.defineProperty(exports, "isEntityValidationError", { enumerable: true, get: function () { return entityValidationError_1.isEntityValidationError; } }); | ||
var singleton_1 = require("./singleton"); | ||
Object.defineProperty(exports, "getValidator", { enumerable: true, get: function () { return singleton_1.getValidator; } }); | ||
Object.defineProperty(exports, "getValidatorSync", { enumerable: true, get: function () { return singleton_1.getValidatorSync; } }); | ||
//# sourceMappingURL=index.js.map |
@@ -43,3 +43,11 @@ "use strict"; | ||
addSchemas(schema) { | ||
this.ajvInstance.addSchema(schema); | ||
const schemas = Array.isArray(schema) ? schema : [schema]; | ||
for (const schema of schemas) { | ||
if (schema !== false && schema !== true && schema.$id) { | ||
if (this.ajvInstance.getSchema(schema.$id)) { | ||
this.ajvInstance.removeSchema(schema.$id); | ||
} | ||
} | ||
this.ajvInstance.addSchema(schema); | ||
} | ||
return this; | ||
@@ -46,0 +54,0 @@ } |
{ | ||
"name": "@jupiterone/integration-sdk-entity-validator", | ||
"version": "13.2.0", | ||
"version": "13.3.0", | ||
"description": "Validator for JupiterOne integration entities", | ||
@@ -35,3 +35,3 @@ "main": "dist/src/index.js", | ||
}, | ||
"gitHead": "7d41ae482fae0cf26f99243939000af055531131" | ||
"gitHead": "40e735b259bf13a0c7ab9470391487979b34ff9e" | ||
} |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
202726
21
391
2
2