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

api-orm

Package Overview
Dependencies
Maintainers
4
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

api-orm - npm Package Compare versions

Comparing version 0.0.16 to 0.0.17

16

lib/connector.js

@@ -258,4 +258,16 @@ var util = require('util'),

}
else if (field.validator && !field.validator.test(config[field.name])) {
return new Error('The value "' + config[field.name] + '" for ' + field.name + ' is invalid for the ' + this.name + ' connector!');
else if (field.validator) {
var validator;
if (_.isRegExp(field.validator)) {
validator = field.validator;
}
else if (field.validator.type === 'regexp') {
validator = new RegExp(field.validator.value, field.validator.flags);
}
else {
return new Error('The connector ' + this.name + ' has an invalid validator for ' + field.name + '!');
}
if (!validator.test(config[field.name])) {
return new Error('The value "' + config[field.name] + '" for ' + field.name + ' is invalid for the ' + this.name + ' connector!');
}
}

@@ -262,0 +274,0 @@ }

2

package.json
{
"name": "api-orm",
"version": "0.0.16",
"version": "0.0.17",
"description": "API Builder ORM",

@@ -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