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

angular-comparison

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-comparison - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

12

bundles/comparison.umd.js

@@ -44,3 +44,3 @@ (function (global, factory) {

EqualToDirective.prototype.validateCore = function (control) {
return this.ngEqualTo !== undefined && (+control.value === +this.ngEqualTo);
return control.value === this.ngEqualTo;
};

@@ -83,3 +83,3 @@ return EqualToDirective;

GreaterThanOrEqualToDirective.prototype.validateCore = function (control) {
return (this.ngGreaterThanOrEqualTo || +this.ngGreaterThanOrEqualTo === 0) && (+control.value >= +this.ngGreaterThanOrEqualTo);
return control.value >= this.ngGreaterThanOrEqualTo;
};

@@ -122,3 +122,3 @@ return GreaterThanOrEqualToDirective;

GreaterThanDirective.prototype.validateCore = function (control) {
return (this.ngGreaterThan || +this.ngGreaterThan === 0) && (+control.value > +this.ngGreaterThan);
return control.value > this.ngGreaterThan;
};

@@ -161,3 +161,3 @@ return GreaterThanDirective;

LowerThanOrEqualDirective.prototype.validateCore = function (control) {
return (this.ngLowerThanOrEqual || +this.ngLowerThanOrEqual === 0) && (+control.value < +this.ngLowerThanOrEqual);
return control.value < this.ngLowerThanOrEqual;
};

@@ -200,3 +200,3 @@ return LowerThanOrEqualDirective;

LowerThanDirective.prototype.validateCore = function (control) {
return (this.ngLowerThan || +this.ngLowerThan === 0) && (+control.value < +this.ngLowerThan);
return control.value < this.ngLowerThan;
};

@@ -239,3 +239,3 @@ return LowerThanDirective;

NotEqualToDirective.prototype.validateCore = function (control) {
return this.ngNotEqualTo !== undefined && (+control.value === +this.ngNotEqualTo);
return control.value === this.ngNotEqualTo;
};

@@ -242,0 +242,0 @@ return NotEqualToDirective;

@@ -1,1 +0,1 @@

!function(t,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("@angular/core"),require("@angular/forms")):"function"==typeof define&&define.amd?define(["exports","@angular/core","@angular/forms"],r):r((t.ng=t.ng||{},t.ng.comparison=t.ng.comparison||{}),t.ng.core,t.ng.forms)}(this,function(t,r,o){"use strict";var n=function(){function t(t){this.key=t}return t.prototype.validate=function(t){return this.ctrl=t,this.validateCore(t)?null:this.createErrorObject()},t.prototype.ngOnChanges=function(t){this.ctrl&&this.ctrl.updateValueAndValidity()},t.prototype.createErrorObject=function(){var t={};return t[this.key]=!0,t},t}(),e=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])};return function(r,o){function n(){this.constructor=r}t(r,o),r.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),a=function(t){function r(){return t.call(this,"ngEqualTo")||this}return e(r,t),r.prototype.validateCore=function(t){return void 0!==this.ngEqualTo&&+t.value==+this.ngEqualTo},r}(n);a.decorators=[{type:r.Directive,args:[{selector:"[ngEqualTo]",providers:[{provide:o.NG_VALIDATORS,useExisting:a,multi:!0}]}]}],a.ctorParameters=function(){return[]},a.propDecorators={ngEqualTo:[{type:r.Input}]};var i=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])};return function(r,o){function n(){this.constructor=r}t(r,o),r.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),u=function(t){function r(){return t.call(this,"ngGreaterThanOrEqualTo")||this}return i(r,t),r.prototype.validateCore=function(t){return(this.ngGreaterThanOrEqualTo||0==+this.ngGreaterThanOrEqualTo)&&+t.value>=+this.ngGreaterThanOrEqualTo},r}(n);u.decorators=[{type:r.Directive,args:[{selector:"[ngGreaterThanOrEqualTo]",providers:[{provide:o.NG_VALIDATORS,useExisting:u,multi:!0}]}]}],u.ctorParameters=function(){return[]},u.propDecorators={ngGreaterThanOrEqualTo:[{type:r.Input}]};var c=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])};return function(r,o){function n(){this.constructor=r}t(r,o),r.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),p=function(t){function r(){return t.call(this,"ngGreaterThan")||this}return c(r,t),r.prototype.validateCore=function(t){return(this.ngGreaterThan||0==+this.ngGreaterThan)&&+t.value>+this.ngGreaterThan},r}(n);p.decorators=[{type:r.Directive,args:[{selector:"[ngGreaterThan]",providers:[{provide:o.NG_VALIDATORS,useExisting:p,multi:!0}]}]}],p.ctorParameters=function(){return[]},p.propDecorators={ngGreaterThan:[{type:r.Input}]};var s=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])};return function(r,o){function n(){this.constructor=r}t(r,o),r.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),f=function(t){function r(){return t.call(this,"ngLowerThanOrEqual")||this}return s(r,t),r.prototype.validateCore=function(t){return(this.ngLowerThanOrEqual||0==+this.ngLowerThanOrEqual)&&+t.value<+this.ngLowerThanOrEqual},r}(n);f.decorators=[{type:r.Directive,args:[{selector:"[ngLowerThanOrEqual]",providers:[{provide:o.NG_VALIDATORS,useExisting:f,multi:!0}]}]}],f.ctorParameters=function(){return[]},f.propDecorators={ngLowerThanOrEqual:[{type:r.Input}]};var l=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])};return function(r,o){function n(){this.constructor=r}t(r,o),r.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),h=function(t){function r(){return t.call(this,"ngLowerThan")||this}return l(r,t),r.prototype.validateCore=function(t){return(this.ngLowerThan||0==+this.ngLowerThan)&&+t.value<+this.ngLowerThan},r}(n);h.decorators=[{type:r.Directive,args:[{selector:"[ngLowerThan]",providers:[{provide:o.NG_VALIDATORS,useExisting:h,multi:!0}]}]}],h.ctorParameters=function(){return[]},h.propDecorators={ngLowerThan:[{type:r.Input}]};var y=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])};return function(r,o){function n(){this.constructor=r}t(r,o),r.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),g=function(t){function r(){return t.call(this,"ngNotEqualTo")||this}return y(r,t),r.prototype.validateCore=function(t){return void 0!==this.ngNotEqualTo&&+t.value==+this.ngNotEqualTo},r}(n);g.decorators=[{type:r.Directive,args:[{selector:"[ngNotEqualTo]",providers:[{provide:o.NG_VALIDATORS,useExisting:g,multi:!0}]}]}],g.ctorParameters=function(){return[]},g.propDecorators={ngNotEqualTo:[{type:r.Input}]};var _=function(){function t(){}return t}();_.decorators=[{type:r.NgModule,args:[{declarations:[a,p,u,f,h,g],exports:[a,u,p,f,h,g]}]}],_.ctorParameters=function(){return[]},t.ComparisonModule=_,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("@angular/core"),require("@angular/forms")):"function"==typeof define&&define.amd?define(["exports","@angular/core","@angular/forms"],r):r((t.ng=t.ng||{},t.ng.comparison=t.ng.comparison||{}),t.ng.core,t.ng.forms)}(this,function(t,r,o){"use strict";var e=function(){function t(t){this.key=t}return t.prototype.validate=function(t){return this.ctrl=t,this.validateCore(t)?null:this.createErrorObject()},t.prototype.ngOnChanges=function(t){this.ctrl&&this.ctrl.updateValueAndValidity()},t.prototype.createErrorObject=function(){var t={};return t[this.key]=!0,t},t}(),n=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])};return function(r,o){function e(){this.constructor=r}t(r,o),r.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)}}(),i=function(t){function r(){return t.call(this,"ngEqualTo")||this}return n(r,t),r.prototype.validateCore=function(t){return t.value===this.ngEqualTo},r}(e);i.decorators=[{type:r.Directive,args:[{selector:"[ngEqualTo]",providers:[{provide:o.NG_VALIDATORS,useExisting:i,multi:!0}]}]}],i.ctorParameters=function(){return[]},i.propDecorators={ngEqualTo:[{type:r.Input}]};var u=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])};return function(r,o){function e(){this.constructor=r}t(r,o),r.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)}}(),a=function(t){function r(){return t.call(this,"ngGreaterThanOrEqualTo")||this}return u(r,t),r.prototype.validateCore=function(t){return t.value>=this.ngGreaterThanOrEqualTo},r}(e);a.decorators=[{type:r.Directive,args:[{selector:"[ngGreaterThanOrEqualTo]",providers:[{provide:o.NG_VALIDATORS,useExisting:a,multi:!0}]}]}],a.ctorParameters=function(){return[]},a.propDecorators={ngGreaterThanOrEqualTo:[{type:r.Input}]};var c=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])};return function(r,o){function e(){this.constructor=r}t(r,o),r.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)}}(),p=function(t){function r(){return t.call(this,"ngGreaterThan")||this}return c(r,t),r.prototype.validateCore=function(t){return t.value>this.ngGreaterThan},r}(e);p.decorators=[{type:r.Directive,args:[{selector:"[ngGreaterThan]",providers:[{provide:o.NG_VALIDATORS,useExisting:p,multi:!0}]}]}],p.ctorParameters=function(){return[]},p.propDecorators={ngGreaterThan:[{type:r.Input}]};var s=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])};return function(r,o){function e(){this.constructor=r}t(r,o),r.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)}}(),f=function(t){function r(){return t.call(this,"ngLowerThanOrEqual")||this}return s(r,t),r.prototype.validateCore=function(t){return t.value<this.ngLowerThanOrEqual},r}(e);f.decorators=[{type:r.Directive,args:[{selector:"[ngLowerThanOrEqual]",providers:[{provide:o.NG_VALIDATORS,useExisting:f,multi:!0}]}]}],f.ctorParameters=function(){return[]},f.propDecorators={ngLowerThanOrEqual:[{type:r.Input}]};var l=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])};return function(r,o){function e(){this.constructor=r}t(r,o),r.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)}}(),y=function(t){function r(){return t.call(this,"ngLowerThan")||this}return l(r,t),r.prototype.validateCore=function(t){return t.value<this.ngLowerThan},r}(e);y.decorators=[{type:r.Directive,args:[{selector:"[ngLowerThan]",providers:[{provide:o.NG_VALIDATORS,useExisting:y,multi:!0}]}]}],y.ctorParameters=function(){return[]},y.propDecorators={ngLowerThan:[{type:r.Input}]};var _=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])};return function(r,o){function e(){this.constructor=r}t(r,o),r.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)}}(),h=function(t){function r(){return t.call(this,"ngNotEqualTo")||this}return _(r,t),r.prototype.validateCore=function(t){return t.value===this.ngNotEqualTo},r}(e);h.decorators=[{type:r.Directive,args:[{selector:"[ngNotEqualTo]",providers:[{provide:o.NG_VALIDATORS,useExisting:h,multi:!0}]}]}],h.ctorParameters=function(){return[]},h.propDecorators={ngNotEqualTo:[{type:r.Input}]};var v=function(){function t(){}return t}();v.decorators=[{type:r.NgModule,args:[{declarations:[i,p,a,f,y,h],exports:[i,a,p,f,y,h]}]}],v.ctorParameters=function(){return[]},t.ComparisonModule=v,Object.defineProperty(t,"__esModule",{value:!0})});

@@ -1,1 +0,1 @@

{"name":"angular-comparison","version":"1.0.0","description":"A collection of comparison directives for Angular","scripts":{"clean":"rimraf dist","transpile":"ngc","package":"rollup -c","minify":"uglifyjs dist/bundles/comparison.umd.js --screw-ie8 --compress --mangle --comments --output dist/bundles/comparison.umd.min.js","dist":"node tools/dist","build":"npm run clean && npm run transpile && npm run package && npm run minify && npm run dist"},"repository":{"type":"git","url":"git+https://github.com/fvilers/angular-comparison.git"},"keywords":["angular","directive","comparison","forms"],"author":"Fabian Vilers <fabian.vilers@dev-one.com>","license":"MIT","bugs":{"url":"https://github.com/fvilers/angular-comparison/issues"},"homepage":"https://github.com/fvilers/angular-comparison#readme"}
{"name":"angular-comparison","version":"1.0.1","description":"A collection of comparison directives for Angular","scripts":{"clean":"rimraf dist","transpile":"ngc","package":"rollup -c","minify":"uglifyjs dist/bundles/comparison.umd.js --screw-ie8 --compress --mangle --comments --output dist/bundles/comparison.umd.min.js","dist":"node tools/dist","build":"npm run clean && npm run transpile && npm run package && npm run minify && npm run dist"},"repository":{"type":"git","url":"git+https://github.com/fvilers/angular-comparison.git"},"keywords":["angular","directive","comparison","forms"],"author":"Fabian Vilers <fabian.vilers@dev-one.com>","license":"MIT","bugs":{"url":"https://github.com/fvilers/angular-comparison/issues"},"homepage":"https://github.com/fvilers/angular-comparison#readme"}

@@ -20,3 +20,3 @@ var __extends = (this && this.__extends) || (function () {

EqualToDirective.prototype.validateCore = function (control) {
return this.ngEqualTo !== undefined && (+control.value === +this.ngEqualTo);
return control.value === this.ngEqualTo;
};

@@ -23,0 +23,0 @@ return EqualToDirective;

@@ -20,3 +20,3 @@ var __extends = (this && this.__extends) || (function () {

GreaterThanOrEqualToDirective.prototype.validateCore = function (control) {
return (this.ngGreaterThanOrEqualTo || +this.ngGreaterThanOrEqualTo === 0) && (+control.value >= +this.ngGreaterThanOrEqualTo);
return control.value >= this.ngGreaterThanOrEqualTo;
};

@@ -23,0 +23,0 @@ return GreaterThanOrEqualToDirective;

@@ -20,3 +20,3 @@ var __extends = (this && this.__extends) || (function () {

GreaterThanDirective.prototype.validateCore = function (control) {
return (this.ngGreaterThan || +this.ngGreaterThan === 0) && (+control.value > +this.ngGreaterThan);
return control.value > this.ngGreaterThan;
};

@@ -23,0 +23,0 @@ return GreaterThanDirective;

@@ -20,3 +20,3 @@ var __extends = (this && this.__extends) || (function () {

LowerThanOrEqualDirective.prototype.validateCore = function (control) {
return (this.ngLowerThanOrEqual || +this.ngLowerThanOrEqual === 0) && (+control.value < +this.ngLowerThanOrEqual);
return control.value < this.ngLowerThanOrEqual;
};

@@ -23,0 +23,0 @@ return LowerThanOrEqualDirective;

@@ -20,3 +20,3 @@ var __extends = (this && this.__extends) || (function () {

LowerThanDirective.prototype.validateCore = function (control) {
return (this.ngLowerThan || +this.ngLowerThan === 0) && (+control.value < +this.ngLowerThan);
return control.value < this.ngLowerThan;
};

@@ -23,0 +23,0 @@ return LowerThanDirective;

@@ -20,3 +20,3 @@ var __extends = (this && this.__extends) || (function () {

NotEqualToDirective.prototype.validateCore = function (control) {
return this.ngNotEqualTo !== undefined && (+control.value === +this.ngNotEqualTo);
return control.value === this.ngNotEqualTo;
};

@@ -23,0 +23,0 @@ return NotEqualToDirective;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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