@caucasus/az-utils 0.2.2 → 0.2.3

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.
Files changed (2) hide show
  1. package/README.md +13 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -28,7 +28,7 @@ More utilities (FIN, IBAN, passport, addresses) will be added incrementally.
28
28
  ## 📦 Installation
29
29
 
30
30
  ```bash
31
- npm install @samurai-jack/az-utils
31
+ npm install @caucasus/az-utils
32
32
 
33
33
  ```
34
34
 
@@ -38,7 +38,9 @@ npm install @samurai-jack/az-utils
38
38
  import {
39
39
  isValidAzPhone,
40
40
  normalizeAzPhone,
41
- getAzMobileOperator
41
+ getAzMobileOperator,
42
+ IsAzPhone,
43
+ TransformAzPhone
42
44
  } from "az-utils";
43
45
 
44
46
  ```
@@ -82,6 +84,15 @@ getAzMobileOperator("0771234567");
82
84
 
83
85
  ```
84
86
 
87
+ ## Decorator support (DTO)
88
+
89
+ ```
90
+ class TestDto {
91
+ @IsAzPhone()
92
+ phone!: string;
93
+ }
94
+ ```
95
+
85
96
  ### Supported Prefixes
86
97
 
87
98
  | Prefix | Operator |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caucasus/az-utils",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Azerbaijan-specific utility functions for Node.js backends",
5
5
  "type": "commonjs",
6
6
  "main": "dist/index.js",