Skip to content

Commit 5b0c4ac

Browse files
committed
refactor: remove unused package
1 parent 532ec6c commit 5b0c4ac

File tree

6 files changed

+13
-14
lines changed

6 files changed

+13
-14
lines changed

bun.lockb

-46.8 KB
Binary file not shown.

dist/browser/validator.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/esm/validator.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "thai-id-validator",
3-
"version": "1.1.6",
3+
"version": "1.1.7",
44
"description": "Thai Citizen ID validator with 0 dependencies",
55
"keywords": [
66
"thai-citizen-id",
@@ -44,16 +44,11 @@
4444
"author": "Juk V. <chukkrit.juk@gmail.com>",
4545
"license": "MIT",
4646
"devDependencies": {
47-
"@istanbuljs/nyc-config-typescript": "^1.0.2",
48-
"@types/bun": "^1.1.9",
49-
"@types/node": "^22.5.5",
50-
"eslint": "^9.10.0",
51-
"nyc": "^17.0.0",
52-
"source-map-support": "^0.5.21",
47+
"@types/bun": "^1.3.2",
48+
"eslint": "^9.39.1",
5349
"standard": "^17.1.2",
54-
"ts-node": "^10.9.2",
55-
"typescript": "^5.6.2",
56-
"vite": "^5.4.6"
50+
"typescript": "^5.9.3",
51+
"vite": "^7.2.2"
5752
},
5853
"standard": {
5954
"ignore": [
@@ -65,4 +60,4 @@
6560
"last 1 version",
6661
"> 1%"
6762
]
68-
}
63+
}

test-result.png

-141 KB
Loading

tests/validator.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,8 @@ describe('isValidThaiID Function', () => {
2222
it('Case 5: Invalid ID Mixed characters', () => {
2323
expect(isValidThaiID('rytege54fsfsf')).toBe(false);
2424
});
25-
});
25+
26+
it('Case 6: Invalid ID First digit start with 0', () => {
27+
expect(isValidThaiID('0123456789012')).toBe(false);
28+
});
29+
});

0 commit comments

Comments
 (0)