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

backbone.validator

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

backbone.validator - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

bower.json

31

backbone.validator.js

@@ -44,20 +44,23 @@ // Backbone.Validator

var validators = [];
Object.keys(model.validators[attr]).forEach(function(key){
var validator = model.validators[attr][key];
if(key === 'fn'){
validators.push({
fn: validator,
arg: null,
attr: key
});
} else {
if(typeof Testers[key] === 'function'){
if(model.validators[attr]){
Object.keys(model.validators[attr]).forEach(function(key){
var validator = model.validators[attr][key];
if(key === 'fn'){
validators.push({
fn: Testers[key],
arg: validator,
fn: validator,
arg: null,
attr: key
});
} else {
if(typeof Testers[key] === 'function'){
validators.push({
fn: Testers[key],
arg: validator,
attr: key
});
}
}
}
});
});
}
return validators;

@@ -64,0 +67,0 @@ }

{
"name": "backbone.validator",
"description": "Validation plugin for Backbone allowing for setting of default values",
"version": "1.1.1",
"version": "1.1.2",
"repository": {

@@ -6,0 +6,0 @@ "url": "git://github.com/toddself/Backbone.Validator.git"

@@ -176,5 +176,5 @@ # Backbone.Validator

<li>
<a href="https://github.com/toddself/Backbone.Validator/blob/update_backbone_1.0/backbone.validator.js">backbone.validator.js</a>
<a href="https://github.com/toddself/Backbone.Validator/blob/master/backbone.validator.js">backbone.validator.js</a>
<span>, </span>
<a href="https://github.com/toddself/Backbone.Validator/blob/update_backbone_1.0/backbone.validator.js#L222">lineno 222</a>
<a href="https://github.com/toddself/Backbone.Validator/blob/master/backbone.validator.js#L222">lineno 222</a>
</li>

@@ -240,5 +240,5 @@ </ul></dd>

<li>
<a href="https://github.com/toddself/Backbone.Validator/blob/update_backbone_1.0/backbone.validator.js">backbone.validator.js</a>
<a href="https://github.com/toddself/Backbone.Validator/blob/master/backbone.validator.js">backbone.validator.js</a>
<span>, </span>
<a href="https://github.com/toddself/Backbone.Validator/blob/update_backbone_1.0/backbone.validator.js#L236">lineno 236</a>
<a href="https://github.com/toddself/Backbone.Validator/blob/master/backbone.validator.js#L236">lineno 236</a>
</li>

@@ -304,5 +304,5 @@ </ul></dd>

<li>
<a href="https://github.com/toddself/Backbone.Validator/blob/update_backbone_1.0/backbone.validator.js">backbone.validator.js</a>
<a href="https://github.com/toddself/Backbone.Validator/blob/master/backbone.validator.js">backbone.validator.js</a>
<span>, </span>
<a href="https://github.com/toddself/Backbone.Validator/blob/update_backbone_1.0/backbone.validator.js#L250">lineno 250</a>
<a href="https://github.com/toddself/Backbone.Validator/blob/master/backbone.validator.js#L250">lineno 250</a>
</li>

@@ -368,5 +368,5 @@ </ul></dd>

<li>
<a href="https://github.com/toddself/Backbone.Validator/blob/update_backbone_1.0/backbone.validator.js">backbone.validator.js</a>
<a href="https://github.com/toddself/Backbone.Validator/blob/master/backbone.validator.js">backbone.validator.js</a>
<span>, </span>
<a href="https://github.com/toddself/Backbone.Validator/blob/update_backbone_1.0/backbone.validator.js#L310">lineno 310</a>
<a href="https://github.com/toddself/Backbone.Validator/blob/master/backbone.validator.js#L310">lineno 310</a>
</li>

@@ -432,5 +432,5 @@ </ul></dd>

<li>
<a href="https://github.com/toddself/Backbone.Validator/blob/update_backbone_1.0/backbone.validator.js">backbone.validator.js</a>
<a href="https://github.com/toddself/Backbone.Validator/blob/master/backbone.validator.js">backbone.validator.js</a>
<span>, </span>
<a href="https://github.com/toddself/Backbone.Validator/blob/update_backbone_1.0/backbone.validator.js#L266">lineno 266</a>
<a href="https://github.com/toddself/Backbone.Validator/blob/master/backbone.validator.js#L266">lineno 266</a>
</li>

@@ -496,5 +496,5 @@ </ul></dd>

<li>
<a href="https://github.com/toddself/Backbone.Validator/blob/update_backbone_1.0/backbone.validator.js">backbone.validator.js</a>
<a href="https://github.com/toddself/Backbone.Validator/blob/master/backbone.validator.js">backbone.validator.js</a>
<span>, </span>
<a href="https://github.com/toddself/Backbone.Validator/blob/update_backbone_1.0/backbone.validator.js#L296">lineno 296</a>
<a href="https://github.com/toddself/Backbone.Validator/blob/master/backbone.validator.js#L296">lineno 296</a>
</li>

@@ -560,5 +560,5 @@ </ul></dd>

<li>
<a href="https://github.com/toddself/Backbone.Validator/blob/update_backbone_1.0/backbone.validator.js">backbone.validator.js</a>
<a href="https://github.com/toddself/Backbone.Validator/blob/master/backbone.validator.js">backbone.validator.js</a>
<span>, </span>
<a href="https://github.com/toddself/Backbone.Validator/blob/update_backbone_1.0/backbone.validator.js#L282">lineno 282</a>
<a href="https://github.com/toddself/Backbone.Validator/blob/master/backbone.validator.js#L282">lineno 282</a>
</li>

@@ -620,5 +620,5 @@ </ul></dd>

<li>
<a href="https://github.com/toddself/Backbone.Validator/blob/update_backbone_1.0/backbone.validator.js">backbone.validator.js</a>
<a href="https://github.com/toddself/Backbone.Validator/blob/master/backbone.validator.js">backbone.validator.js</a>
<span>, </span>
<a href="https://github.com/toddself/Backbone.Validator/blob/update_backbone_1.0/backbone.validator.js#L112">lineno 112</a>
<a href="https://github.com/toddself/Backbone.Validator/blob/master/backbone.validator.js#L112">lineno 112</a>
</li>

@@ -625,0 +625,0 @@ </ul></dd>

'use strict';
var test = require('tape').test;
var assert = require('assert');
var Backbone = require('backbone');

@@ -6,0 +5,0 @@ var validate = require('../backbone.validator');

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