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

ngx-iban

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-iban - npm Package Compare versions

Comparing version 7.0.0 to 8.0.0

65

bundles/ngx-iban.umd.js
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/forms'), require('iban'), require('@angular/core')) :
typeof define === 'function' && define.amd ? define('ngx-iban', ['exports', '@angular/forms', 'iban', '@angular/core'], factory) :
(factory((global['ngx-iban'] = {}),global.ng.forms,global.iban,global.ng.core));
}(this, (function (exports,forms,IBAN,core) { 'use strict';
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('iban')) :
typeof define === 'function' && define.amd ? define('ngx-iban', ['exports', '@angular/core', '@angular/forms', 'iban'], factory) :
(global = global || self, factory(global['ngx-iban'] = {}, global.ng.core, global.ng.forms, global.iban));
}(this, (function (exports, core, forms, iban) { 'use strict';

@@ -17,10 +17,11 @@ /**

function ibanValidator(countryCode) {
return ( /**
return (/**
* @param {?} control
* @return {?}
*/function (control) {
*/
function (control) {
if (countryCode && control.value) {
return /^[A-Z]{2}$/i.test(countryCode) &&
new RegExp("^" + countryCode + "[0-9]{2}[A-Z0-9]{0,30}$", "i").test(control.value.replace(/\s/g, "")) &&
IBAN.isValid(control.value)
iban.isValid(control.value)
? null

@@ -30,3 +31,3 @@ : { iban: { value: control.value } };

else if (control.value) {
return IBAN.isValid(control.value)
return iban.isValid(control.value)
? null

@@ -49,5 +50,5 @@ : { iban: { value: control.value } };

*/
function (control) {
return ibanValidator(this.countryCode)(control);
};
function (control) {
return ibanValidator(this.countryCode)(control);
};
/**

@@ -61,5 +62,5 @@ * @param {?} fn

*/
function (fn) {
this._onChange = fn;
};
function (fn) {
this._onChange = fn;
};
/**

@@ -73,7 +74,7 @@ * @param {?} changes

*/
function (changes) {
if ("countryCode" in changes && this._onChange) {
this._onChange();
}
};
function (changes) {
if ("countryCode" in changes && this._onChange) {
this._onChange();
}
};
IbanDirective.decorators = [

@@ -92,2 +93,11 @@ { type: core.Directive, args: [{

}());
if (false) {
/** @type {?} */
IbanDirective.prototype.countryCode;
/**
* @type {?}
* @private
*/
IbanDirective.prototype._onChange;
}

@@ -112,17 +122,5 @@ /**

/**
* @fileoverview added by tsickle
* Generated from: public-api.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @fileoverview added by tsickle
* Generated from: ngx-iban.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
exports.ibanValidator = ibanValidator;
exports.IbanDirective = IbanDirective;
exports.NgxIbanModule = NgxIbanModule;
exports.ibanValidator = ibanValidator;

@@ -132,3 +130,2 @@ Object.defineProperty(exports, '__esModule', { value: true });

})));
//# sourceMappingURL=ngx-iban.umd.js.map
//# sourceMappingURL=ngx-iban.umd.js.map

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

!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@angular/forms"),require("iban"),require("@angular/core")):"function"==typeof define&&define.amd?define("ngx-iban",["exports","@angular/forms","iban","@angular/core"],n):n(e["ngx-iban"]={},e.ng.forms,e.iban,e.ng.core)}(this,function(e,n,t,r){"use strict";function o(n){return function(e){return n&&e.value?/^[A-Z]{2}$/i.test(n)&&new RegExp("^"+n+"[0-9]{2}[A-Z0-9]{0,30}$","i").test(e.value.replace(/\s/g,""))&&t.isValid(e.value)?null:{iban:{value:e.value}}:!e.value||t.isValid(e.value)?null:{iban:{value:e.value}}}}var a=(i.prototype.validate=function(e){return o(this.countryCode)(e)},i.prototype.registerOnValidatorChange=function(e){this._onChange=e},i.prototype.ngOnChanges=function(e){"countryCode"in e&&this._onChange&&this._onChange()},i.decorators=[{type:r.Directive,args:[{selector:"[ngxIban]",providers:[{provide:n.NG_VALIDATORS,useExisting:i,multi:!0}]}]}],i.propDecorators={countryCode:[{type:r.Input,args:["ngxIban"]}]},i);function i(){}var u=(s.decorators=[{type:r.NgModule,args:[{declarations:[a],imports:[],exports:[a]}]}],s);function s(){}e.ibanValidator=o,e.IbanDirective=a,e.NgxIbanModule=u,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@angular/core"),require("@angular/forms"),require("iban")):"function"==typeof define&&define.amd?define("ngx-iban",["exports","@angular/core","@angular/forms","iban"],n):n((e=e||self)["ngx-iban"]={},e.ng.core,e.ng.forms,e.iban)}(this,(function(e,n,t,r){"use strict";function o(e){return function(n){return e&&n.value?/^[A-Z]{2}$/i.test(e)&&new RegExp("^"+e+"[0-9]{2}[A-Z0-9]{0,30}$","i").test(n.value.replace(/\s/g,""))&&r.isValid(n.value)?null:{iban:{value:n.value}}:n.value?r.isValid(n.value)?null:{iban:{value:n.value}}:null}}var i=function(){function e(){}return e.prototype.validate=function(e){return o(this.countryCode)(e)},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype.ngOnChanges=function(e){"countryCode"in e&&this._onChange&&this._onChange()},e.decorators=[{type:n.Directive,args:[{selector:"[ngxIban]",providers:[{provide:t.NG_VALIDATORS,useExisting:e,multi:!0}]}]}],e.propDecorators={countryCode:[{type:n.Input,args:["ngxIban"]}]},e}();var a=function(){function e(){}return e.decorators=[{type:n.NgModule,args:[{declarations:[i],imports:[],exports:[i]}]}],e}();e.IbanDirective=i,e.NgxIbanModule=a,e.ibanValidator=o,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=ngx-iban.umd.min.js.map

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

import { Directive, Input, NgModule } from '@angular/core';
import { NG_VALIDATORS } from '@angular/forms';
import { isValid } from 'iban';
import { Directive, Input, NgModule } from '@angular/core';

@@ -71,2 +71,11 @@ /**

};
if (false) {
/** @type {?} */
IbanDirective.prototype.countryCode;
/**
* @type {?}
* @private
*/
IbanDirective.prototype._onChange;
}

@@ -100,4 +109,3 @@ /**

export { ibanValidator, IbanDirective, NgxIbanModule };
//# sourceMappingURL=ngx-iban.js.map
export { IbanDirective, NgxIbanModule, ibanValidator };
//# sourceMappingURL=ngx-iban.js.map

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

import { Directive, Input, NgModule } from '@angular/core';
import { NG_VALIDATORS } from '@angular/forms';
import { isValid } from 'iban';
import { Directive, Input, NgModule } from '@angular/core';

@@ -86,2 +86,11 @@ /**

}());
if (false) {
/** @type {?} */
IbanDirective.prototype.countryCode;
/**
* @type {?}
* @private
*/
IbanDirective.prototype._onChange;
}

@@ -118,4 +127,3 @@ /**

export { ibanValidator, IbanDirective, NgxIbanModule };
//# sourceMappingURL=ngx-iban.js.map
export { IbanDirective, NgxIbanModule, ibanValidator };
//# sourceMappingURL=ngx-iban.js.map
{
"name": "ngx-iban",
"version": "7.0.0",
"version": "8.0.0",
"peerDependencies": {
"@angular/common": "7.x",
"@angular/core": "7.x",
"@angular/common": "8.x",
"@angular/core": "8.x",
"iban": "0.0.14"

@@ -8,0 +8,0 @@ },

# ngx-iban
This Angular 7 module consists of two parts:
This Angular 8 module consists of two parts:

@@ -5,0 +5,0 @@ 1. a directive to use in template-driven forms;

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