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.5 to 1.1.6

post-install.js

3

backbone.validator.js

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

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