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

super-ajv

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

super-ajv - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

14

index.js

@@ -96,14 +96,10 @@ const Ajv = require('ajv')

// Save default compile functions to convert super types
Ajv.prototype._super_compile = Ajv.prototype.compile
Ajv.prototype._super_compileAsync = Ajv.prototype.compileAsync
// Save default validate functions to convert super types
Ajv.prototype._super_validate = Ajv.prototype.validate
// Redefine compile functions
Ajv.prototype.compile = function (schema) {
return this._super_compile(this.getSuperSchema(schema))
// Redefine validate functions
Ajv.prototype.validate = function (schema, data) {
return this._super_validate(this.getSuperSchema(schema), data)
}
Ajv.prototype.compileAsync = function (schema) {
return this._super_compileAsync(this.getSuperSchema(schema))
}
module.exports = Ajv
{
"name": "super-ajv",
"version": "1.1.3",
"version": "1.1.4",
"description": "AJV schema validator with super powers!",

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

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