backbone.validator
Advanced tools
Comparing version 1.1.5 to 1.1.6
@@ -24,5 +24,6 @@ // Backbone.Validator | ||
var changed = model.changedAttributes() || {}; | ||
var prevAttr = model._previousAttributes; | ||
Object.keys(attributes).forEach(function(attr){ | ||
if(!model._previousAttributes[attr] && !changed[attr]){ | ||
if((prevAttr && !prevAttr[attr]) && !changed[attr]){ | ||
changed[attr] = attributes[attr]; | ||
@@ -29,0 +30,0 @@ } |
{ | ||
"name": "backbone.validator", | ||
"description": "Validation plugin for Backbone allowing for setting of default values", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"repository": { | ||
@@ -10,3 +10,3 @@ "url": "git://github.com/toddself/Backbone.Validator.git" | ||
"scripts": { | ||
"postinstall": "if [[ -d .git ]]; then cp pre-commit.sh .git/hooks/pre-commit && chmod +x .git/hooks/pre-commit; fi", | ||
"postinstall": "node post-install", | ||
"pre-commit": "npm run lint && npm test", | ||
@@ -17,6 +17,4 @@ "prepublish": "docme README.md", | ||
}, | ||
"dependencies": { | ||
"backbone": "~1.1.0" | ||
}, | ||
"devDependencies": { | ||
"backbone": "~1.1.0", | ||
"jshint": "~2.3.0", | ||
@@ -23,0 +21,0 @@ "tape": "~2.3.0", |
@@ -195,5 +195,5 @@ # Backbone.Validator | ||
<li> | ||
<a href="https://github.com/toddself/Backbone.Validator/blob/master//Users/tkenned2/src/Backbone.Validator/backbone.validator.js">/Users/tkenned2/src/Backbone.Validator/backbone.validator.js</a> | ||
<a href="https://github.com/toddself/Backbone.Validator/blob/master//Users/todd/src/Backbone.Validator/backbone.validator.js">/Users/todd/src/Backbone.Validator/backbone.validator.js</a> | ||
<span>, </span> | ||
<a href="https://github.com/toddself/Backbone.Validator/blob/master//Users/tkenned2/src/Backbone.Validator/backbone.validator.js#L227">lineno 227</a> | ||
<a href="https://github.com/toddself/Backbone.Validator/blob/master//Users/todd/src/Backbone.Validator/backbone.validator.js#L228">lineno 228</a> | ||
</li> | ||
@@ -259,5 +259,5 @@ </ul></dd> | ||
<li> | ||
<a href="https://github.com/toddself/Backbone.Validator/blob/master//Users/tkenned2/src/Backbone.Validator/backbone.validator.js">/Users/tkenned2/src/Backbone.Validator/backbone.validator.js</a> | ||
<a href="https://github.com/toddself/Backbone.Validator/blob/master//Users/todd/src/Backbone.Validator/backbone.validator.js">/Users/todd/src/Backbone.Validator/backbone.validator.js</a> | ||
<span>, </span> | ||
<a href="https://github.com/toddself/Backbone.Validator/blob/master//Users/tkenned2/src/Backbone.Validator/backbone.validator.js#L241">lineno 241</a> | ||
<a href="https://github.com/toddself/Backbone.Validator/blob/master//Users/todd/src/Backbone.Validator/backbone.validator.js#L242">lineno 242</a> | ||
</li> | ||
@@ -323,5 +323,5 @@ </ul></dd> | ||
<li> | ||
<a href="https://github.com/toddself/Backbone.Validator/blob/master//Users/tkenned2/src/Backbone.Validator/backbone.validator.js">/Users/tkenned2/src/Backbone.Validator/backbone.validator.js</a> | ||
<a href="https://github.com/toddself/Backbone.Validator/blob/master//Users/todd/src/Backbone.Validator/backbone.validator.js">/Users/todd/src/Backbone.Validator/backbone.validator.js</a> | ||
<span>, </span> | ||
<a href="https://github.com/toddself/Backbone.Validator/blob/master//Users/tkenned2/src/Backbone.Validator/backbone.validator.js#L255">lineno 255</a> | ||
<a href="https://github.com/toddself/Backbone.Validator/blob/master//Users/todd/src/Backbone.Validator/backbone.validator.js#L256">lineno 256</a> | ||
</li> | ||
@@ -387,5 +387,5 @@ </ul></dd> | ||
<li> | ||
<a href="https://github.com/toddself/Backbone.Validator/blob/master//Users/tkenned2/src/Backbone.Validator/backbone.validator.js">/Users/tkenned2/src/Backbone.Validator/backbone.validator.js</a> | ||
<a href="https://github.com/toddself/Backbone.Validator/blob/master//Users/todd/src/Backbone.Validator/backbone.validator.js">/Users/todd/src/Backbone.Validator/backbone.validator.js</a> | ||
<span>, </span> | ||
<a href="https://github.com/toddself/Backbone.Validator/blob/master//Users/tkenned2/src/Backbone.Validator/backbone.validator.js#L315">lineno 315</a> | ||
<a href="https://github.com/toddself/Backbone.Validator/blob/master//Users/todd/src/Backbone.Validator/backbone.validator.js#L316">lineno 316</a> | ||
</li> | ||
@@ -451,5 +451,5 @@ </ul></dd> | ||
<li> | ||
<a href="https://github.com/toddself/Backbone.Validator/blob/master//Users/tkenned2/src/Backbone.Validator/backbone.validator.js">/Users/tkenned2/src/Backbone.Validator/backbone.validator.js</a> | ||
<a href="https://github.com/toddself/Backbone.Validator/blob/master//Users/todd/src/Backbone.Validator/backbone.validator.js">/Users/todd/src/Backbone.Validator/backbone.validator.js</a> | ||
<span>, </span> | ||
<a href="https://github.com/toddself/Backbone.Validator/blob/master//Users/tkenned2/src/Backbone.Validator/backbone.validator.js#L271">lineno 271</a> | ||
<a href="https://github.com/toddself/Backbone.Validator/blob/master//Users/todd/src/Backbone.Validator/backbone.validator.js#L272">lineno 272</a> | ||
</li> | ||
@@ -515,5 +515,5 @@ </ul></dd> | ||
<li> | ||
<a href="https://github.com/toddself/Backbone.Validator/blob/master//Users/tkenned2/src/Backbone.Validator/backbone.validator.js">/Users/tkenned2/src/Backbone.Validator/backbone.validator.js</a> | ||
<a href="https://github.com/toddself/Backbone.Validator/blob/master//Users/todd/src/Backbone.Validator/backbone.validator.js">/Users/todd/src/Backbone.Validator/backbone.validator.js</a> | ||
<span>, </span> | ||
<a href="https://github.com/toddself/Backbone.Validator/blob/master//Users/tkenned2/src/Backbone.Validator/backbone.validator.js#L301">lineno 301</a> | ||
<a href="https://github.com/toddself/Backbone.Validator/blob/master//Users/todd/src/Backbone.Validator/backbone.validator.js#L302">lineno 302</a> | ||
</li> | ||
@@ -579,5 +579,5 @@ </ul></dd> | ||
<li> | ||
<a href="https://github.com/toddself/Backbone.Validator/blob/master//Users/tkenned2/src/Backbone.Validator/backbone.validator.js">/Users/tkenned2/src/Backbone.Validator/backbone.validator.js</a> | ||
<a href="https://github.com/toddself/Backbone.Validator/blob/master//Users/todd/src/Backbone.Validator/backbone.validator.js">/Users/todd/src/Backbone.Validator/backbone.validator.js</a> | ||
<span>, </span> | ||
<a href="https://github.com/toddself/Backbone.Validator/blob/master//Users/tkenned2/src/Backbone.Validator/backbone.validator.js#L287">lineno 287</a> | ||
<a href="https://github.com/toddself/Backbone.Validator/blob/master//Users/todd/src/Backbone.Validator/backbone.validator.js#L288">lineno 288</a> | ||
</li> | ||
@@ -639,5 +639,5 @@ </ul></dd> | ||
<li> | ||
<a href="https://github.com/toddself/Backbone.Validator/blob/master//Users/tkenned2/src/Backbone.Validator/backbone.validator.js">/Users/tkenned2/src/Backbone.Validator/backbone.validator.js</a> | ||
<a href="https://github.com/toddself/Backbone.Validator/blob/master//Users/todd/src/Backbone.Validator/backbone.validator.js">/Users/todd/src/Backbone.Validator/backbone.validator.js</a> | ||
<span>, </span> | ||
<a href="https://github.com/toddself/Backbone.Validator/blob/master//Users/tkenned2/src/Backbone.Validator/backbone.validator.js#L117">lineno 117</a> | ||
<a href="https://github.com/toddself/Backbone.Validator/blob/master//Users/todd/src/Backbone.Validator/backbone.validator.js#L118">lineno 118</a> | ||
</li> | ||
@@ -644,0 +644,0 @@ </ul></dd> |
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
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
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
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
41918
0
12
610
4
2
- Removedbackbone@~1.1.0
- Removedbackbone@1.1.2(transitive)
- Removedunderscore@1.13.7(transitive)