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

angular-validity

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-validity - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

.jshintrc

32

angular-validity.js

@@ -6,3 +6,3 @@ /*

*
* Version: 1.0.0
* Version: 1.1.0
* License: MIT

@@ -52,3 +52,3 @@ */

return this;
}
};

@@ -60,3 +60,3 @@ this.options = function (config) {

return this;
}
};

@@ -74,3 +74,3 @@ this.reset = function (form) {

return this;
}
};

@@ -82,3 +82,3 @@ this.rules = function (config) {

return this;
}
};

@@ -104,3 +104,3 @@ this.state = function (form) {

}
}
};

@@ -162,3 +162,3 @@ this.validate = function (form, control) {

)
: result && deferred.resolve(rule) || deferred.reject(rule)
: result && deferred.resolve(rule) || deferred.reject(rule);

@@ -172,3 +172,3 @@ return deferred.promise;

return required && rules.concat(required) || rules;
})
});
}

@@ -208,3 +208,3 @@ }

}
}
};

@@ -225,3 +225,3 @@ function getProviderModel() {

rules: getValidationRules()
}
};

@@ -300,3 +300,3 @@ function getValidationRules() {

case "reset": return formGroup.removeClass("has-error").removeClass("has-success");
return console.error("Angular-Validity - Error: invalid state", state);
default: return console.error("Angular-Validity - Error: invalid state", state);
}

@@ -376,3 +376,5 @@ }

function uuid() {
// Use third-party UUID lib when available, otherwise fallback to
// internal v4 UUID generator
var uuid = window.uuid || function () {
var l = "0123456789abcdef",

@@ -383,2 +385,3 @@ m = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",

rb = Math.random() * 0xffffffff | 0;
while (i++ < 36) {

@@ -389,6 +392,7 @@ var c = m[i - 1],

u += (c == "-" || c == "4") ? c : l[v];
rb = i % 8 == 0 ? Math.random() * 0xffffffff | 0 : rb >> 4;
rb = i % 8 === 0 ? Math.random() * 0xffffffff | 0 : rb >> 4;
}
return u;
}
};
}());

@@ -395,0 +399,0 @@

{
"name": "angular-validity",
"version": "1.0.0",
"version": "1.1.0",
"main": "./angular-validity.js",

@@ -5,0 +5,0 @@ "dependencies": {

@@ -0,3 +1,11 @@

# 1.1.0
## Improvements
* **JSHint**: added .jshintrc file
* **Syntax**: added missing semicolons
* **validityDirective**: use third-party UUID lib when available
# 1.0.0
Initial release
{
"name": "angular-validity",
"version": "1.0.0",
"version": "1.1.0",
"description": "Validation framework for AngularJS",

@@ -5,0 +5,0 @@ "main": "angular-validity.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