@alwatr/iranian-national-code-validator 1.0.1 → 1.0.2
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/CHANGELOG.md +4 -0
- package/dist/main.cjs +2 -2
- package/dist/main.mjs +2 -2
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.0.2](https://github.com/Alwatr/nanolib/compare/@alwatr/iranian-national-code-validator@1.0.1...@alwatr/iranian-national-code-validator@1.0.2) (2025-09-09)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @alwatr/iranian-national-code-validator
|
|
9
|
+
|
|
6
10
|
## [1.0.1](https://github.com/Alwatr/nanolib/compare/@alwatr/iranian-national-code-validator@1.0.0...@alwatr/iranian-national-code-validator@1.0.1) (2025-09-06)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @alwatr/iranian-national-code-validator
|
package/dist/main.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @alwatr/iranian-national-code-validator v1.0.
|
|
1
|
+
/* @alwatr/iranian-national-code-validator v1.0.2 */
|
|
2
2
|
"use strict";
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -25,7 +25,7 @@ __export(main_exports, {
|
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(main_exports);
|
|
27
27
|
var import_package_tracer = require("@alwatr/package-tracer");
|
|
28
|
-
__dev_mode__: import_package_tracer.packageTracer.add("@alwatr/iranian-national-code-validator", "1.0.
|
|
28
|
+
__dev_mode__: import_package_tracer.packageTracer.add("@alwatr/iranian-national-code-validator", "1.0.2");
|
|
29
29
|
function isValidIranianNationalCode(str) {
|
|
30
30
|
if (!/^\d{10}$/.test(str)) return false;
|
|
31
31
|
const check = +str[9];
|
package/dist/main.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/* @alwatr/iranian-national-code-validator v1.0.
|
|
1
|
+
/* @alwatr/iranian-national-code-validator v1.0.2 */
|
|
2
2
|
|
|
3
3
|
// src/main.ts
|
|
4
4
|
import { packageTracer } from "@alwatr/package-tracer";
|
|
5
|
-
__dev_mode__: packageTracer.add("@alwatr/iranian-national-code-validator", "1.0.
|
|
5
|
+
__dev_mode__: packageTracer.add("@alwatr/iranian-national-code-validator", "1.0.2");
|
|
6
6
|
function isValidIranianNationalCode(str) {
|
|
7
7
|
if (!/^\d{10}$/.test(str)) return false;
|
|
8
8
|
const check = +str[9];
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwatr/iranian-national-code-validator",
|
|
3
3
|
"description": "A tiny TypeScript library to Validates an Iranian National Code (Code Melli).",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.2",
|
|
5
5
|
"author": "S. Ali Mihandoost <ali.mihandoost@gmail.com>",
|
|
6
6
|
"bugs": "https://github.com/Alwatr/nanolib/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@alwatr/package-tracer": "5.5.
|
|
8
|
+
"@alwatr/package-tracer": "5.5.10"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
|
-
"@alwatr/nano-build": "6.1.
|
|
12
|
-
"@alwatr/prettier-config": "5.0.
|
|
13
|
-
"@alwatr/tsconfig-base": "6.0.
|
|
14
|
-
"@alwatr/type-helper": "6.0.
|
|
11
|
+
"@alwatr/nano-build": "6.1.1",
|
|
12
|
+
"@alwatr/prettier-config": "5.0.3",
|
|
13
|
+
"@alwatr/tsconfig-base": "6.0.1",
|
|
14
|
+
"@alwatr/type-helper": "6.0.1",
|
|
15
15
|
"typescript": "^5.9.2"
|
|
16
16
|
},
|
|
17
17
|
"exports": {
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
},
|
|
75
75
|
"type": "module",
|
|
76
76
|
"types": "./dist/main.d.ts",
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "cd02a1a9fa579930cd54291ba51ed86241313a6d"
|
|
78
78
|
}
|