ngxsmk-tel-input 1.2.4 → 1.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "ngxsmk-tel-input",
3
- "version": "1.2.4",
3
+ "version": "1.2.6",
4
4
  "description": "Angular international telephone input (intl-tel-input UI + libphonenumber-js validation). ControlValueAccessor. SSR-safe.",
5
5
  "license": "MIT",
6
+ "scripts": { "build": "ng build ngxsmk-tel-input" },
6
7
  "author": {
7
8
  "name": "Sachin Dilshan",
8
9
  "email": "sachindilshan040@gmail.com",
@@ -3,7 +3,7 @@ import {
3
3
  Component,
4
4
  ElementRef,
5
5
  EventEmitter,
6
- forwardRef,
6
+ forwardRef, inject,
7
7
  Inject,
8
8
  Input,
9
9
  NgZone,
@@ -166,10 +166,11 @@ export class NgxsmkTelInputComponent implements AfterViewInit, OnChanges, OnDest
166
166
 
167
167
  readonly resolvedId: string = this.inputId || ('tel-' + Math.random().toString(36).slice(2));
168
168
 
169
+ private readonly platformId = inject(PLATFORM_ID);
170
+
169
171
  constructor(
170
172
  private readonly zone: NgZone,
171
- private readonly tel: NgxsmkTelInputService,
172
- @Inject(PLATFORM_ID) private readonly platformId: Object
173
+ private readonly tel: NgxsmkTelInputService
173
174
  ) {
174
175
  }
175
176