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

ng2-tel-input

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng2-tel-input - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

ng2-tel-input.metadata.json

6

package.json
{
"name": "ng2-tel-input",
"version": "2.1.0",
"version": "2.2.0",
"description": "An Angular 2 wrapper for intl-tel-input library",

@@ -24,3 +24,3 @@ "main": "ng2-tel-input.js",

"peerDependencies": {
"@angular/core": "^9.0.2"
"@angular/core": "^8.0.3"
},

@@ -31,2 +31,2 @@ "dependencies": {

"typings": "./ng2-tel-input.d.ts"
}
}
import { ElementRef, EventEmitter, OnInit } from '@angular/core';
import * as i0 from "@angular/core";
export declare class Ng2TelInput implements OnInit {

@@ -18,4 +17,2 @@ private el;

getUtilsScript(options: any): any;
static ɵfac: i0.ɵɵFactoryDef<Ng2TelInput>;
static ɵdir: i0.ɵɵDirectiveDefWithMeta<Ng2TelInput, "[ng2TelInput]", never, { "ng2TelInputOptions": "ng2TelInputOptions"; }, { "hasError": "hasError"; "ng2TelOutput": "ng2TelOutput"; "countryChange": "countryChange"; "intlTelInputObject": "intlTelInputObject"; }, never>;
}

@@ -12,5 +12,16 @@ var __assign = (this && this.__assign) || function () {

};
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __param = (this && this.__param) || function (paramIndex, decorator) {
return function (target, key) { decorator(target, key, paramIndex); }
};
import { Directive, ElementRef, EventEmitter, HostListener, Inject, Input, Output, PLATFORM_ID } from '@angular/core';
import { isPlatformBrowser } from '@angular/common';
import * as i0 from "@angular/core";
var defaultUtilScript = 'https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/16.0.1/js/utils.js';

@@ -30,3 +41,3 @@ var Ng2TelInput = /** @class */ (function () {

if (isPlatformBrowser(this.platformId)) {
this.ng2TelInputOptions = __assign(__assign({}, this.ng2TelInputOptions), { utilsScript: this.getUtilsScript(this.ng2TelInputOptions) });
this.ng2TelInputOptions = __assign({}, this.ng2TelInputOptions, { utilsScript: this.getUtilsScript(this.ng2TelInputOptions) });
this.ngTelInput = window.intlTelInput(this.el.nativeElement, __assign({}, this.ng2TelInputOptions));

@@ -59,36 +70,38 @@ this.el.nativeElement.addEventListener("countrychange", function () {

};
Ng2TelInput.ɵfac = function Ng2TelInput_Factory(t) { return new (t || Ng2TelInput)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(PLATFORM_ID)); };
Ng2TelInput.ɵdir = i0.ɵɵdefineDirective({ type: Ng2TelInput, selectors: [["", "ng2TelInput", ""]], hostBindings: function Ng2TelInput_HostBindings(rf, ctx) { if (rf & 1) {
i0.ɵɵlistener("blur", function Ng2TelInput_blur_HostBindingHandler($event) { return ctx.onBlur(); });
} }, inputs: { ng2TelInputOptions: "ng2TelInputOptions" }, outputs: { hasError: "hasError", ng2TelOutput: "ng2TelOutput", countryChange: "countryChange", intlTelInputObject: "intlTelInputObject" } });
__decorate([
Input('ng2TelInputOptions'),
__metadata("design:type", Object)
], Ng2TelInput.prototype, "ng2TelInputOptions", void 0);
__decorate([
Output('hasError'),
__metadata("design:type", EventEmitter)
], Ng2TelInput.prototype, "hasError", void 0);
__decorate([
Output('ng2TelOutput'),
__metadata("design:type", EventEmitter)
], Ng2TelInput.prototype, "ng2TelOutput", void 0);
__decorate([
Output('countryChange'),
__metadata("design:type", EventEmitter)
], Ng2TelInput.prototype, "countryChange", void 0);
__decorate([
Output('intlTelInputObject'),
__metadata("design:type", EventEmitter)
], Ng2TelInput.prototype, "intlTelInputObject", void 0);
__decorate([
HostListener('blur'),
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", void 0)
], Ng2TelInput.prototype, "onBlur", null);
Ng2TelInput = __decorate([
Directive({
selector: '[ng2TelInput]',
}),
__param(1, Inject(PLATFORM_ID)),
__metadata("design:paramtypes", [ElementRef, String])
], Ng2TelInput);
return Ng2TelInput;
}());
export { Ng2TelInput };
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(Ng2TelInput, [{
type: Directive,
args: [{
selector: '[ng2TelInput]',
}]
}], function () { return [{ type: i0.ElementRef }, { type: undefined, decorators: [{
type: Inject,
args: [PLATFORM_ID]
}] }]; }, { ng2TelInputOptions: [{
type: Input,
args: ['ng2TelInputOptions']
}], hasError: [{
type: Output,
args: ['hasError']
}], ng2TelOutput: [{
type: Output,
args: ['ng2TelOutput']
}], countryChange: [{
type: Output,
args: ['countryChange']
}], intlTelInputObject: [{
type: Output,
args: ['intlTelInputObject']
}], onBlur: [{
type: HostListener,
args: ['blur']
}] }); })();
//# sourceMappingURL=ng2-tel-input.js.map
import { ModuleWithProviders } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "./ng2-tel-input";
export declare class Ng2TelInputModule {
static forRoot(): i0.ModuleWithProviders<Ng2TelInputModule>;
static ɵmod: i0.ɵɵNgModuleDefWithMeta<Ng2TelInputModule, [typeof i1.Ng2TelInput], never, [typeof i1.Ng2TelInput]>;
static ɵinj: i0.ɵɵInjectorDef<Ng2TelInputModule>;
static forRoot(): ModuleWithProviders;
}

@@ -0,26 +1,29 @@

var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
import { NgModule } from '@angular/core';
import { Ng2TelInput } from './ng2-tel-input';
import * as i0 from "@angular/core";
var Ng2TelInputModule = /** @class */ (function () {
function Ng2TelInputModule() {
}
Ng2TelInputModule_1 = Ng2TelInputModule;
Ng2TelInputModule.forRoot = function () {
return {
ngModule: Ng2TelInputModule,
ngModule: Ng2TelInputModule_1,
providers: []
};
};
Ng2TelInputModule.ɵmod = i0.ɵɵdefineNgModule({ type: Ng2TelInputModule });
Ng2TelInputModule.ɵinj = i0.ɵɵdefineInjector({ factory: function Ng2TelInputModule_Factory(t) { return new (t || Ng2TelInputModule)(); } });
var Ng2TelInputModule_1;
Ng2TelInputModule = Ng2TelInputModule_1 = __decorate([
NgModule({
declarations: [Ng2TelInput],
exports: [Ng2TelInput]
})
], Ng2TelInputModule);
return Ng2TelInputModule;
}());
export { Ng2TelInputModule };
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(Ng2TelInputModule, { declarations: [Ng2TelInput], exports: [Ng2TelInput] }); })();
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(Ng2TelInputModule, [{
type: NgModule,
args: [{
declarations: [Ng2TelInput],
exports: [Ng2TelInput]
}]
}], null, null); })();
//# sourceMappingURL=ng2-tel-input.module.js.map

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