Commit 409e7c3
committed
fix: resolve TypeErrors, security issues, and add CI
- Fix cleandns-inc#16: handle non-iterable entities with toArray() utility
- Fix cleandns-inc#12: add Array.isArray() check before vcardArray[1].find()
- Fix cleandns-inc#13: replace console.warn with debug module
- Fix findTimestamps anti-pattern using proper loop with break
- Fix ReDoS vulnerability by escaping regex in registrar name matching
- Fix null pointer in ip.ts port43.match() access
- Add null safety to findInObject recursive function
- Add domain input validation
- Add comprehensive test suite (43 tests)
- Add GitHub Actions workflow for CI on Node 18/20/22
- Add test script to package.json1 parent 4aaa2f4 commit 409e7c3
File tree
11 files changed
+1724
-82
lines changed- .github/workflows
- src
- utils
11 files changed
+1724
-82
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
0 commit comments