Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,5 @@ package-lock.json
ignore/
out
config.yml
.release/
.release/
2 changes: 1 addition & 1 deletion .release
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).

### Unreleased

### [0.8.7] - 2026-03-25

- convert to ESM (#18)

### [0.8.5] - 2026-03-15

- zone.GET_req: add search params
Expand Down Expand Up @@ -112,3 +116,4 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
[0.8.3]: https://github.com/NicTool/validate/releases/tag/v0.8.3
[0.8.4]: https://github.com/NicTool/validate/releases/tag/v0.8.4
[0.8.5]: https://github.com/NicTool/validate/releases/tag/v0.8.5
[0.8.7]: https://github.com/NicTool/validate/releases/tag/v0.8.7
2 changes: 1 addition & 1 deletion CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This handcrafted artisanal software is brought to you by:

| <img height="80" src="https://avatars.githubusercontent.com/u/261635?v=4"><br><a href="https://github.com/msimerson">msimerson</a> (<a href="https://github.com/NicTool/validate/commits?author=msimerson">24</a>) |
| <img height="80" src="https://avatars.githubusercontent.com/u/261635?v=4"><br><a href="https://github.com/msimerson">msimerson</a> (<a href="https://github.com/NicTool/validate/commits?author=msimerson">26</a>) |
| :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |

<sub>this file is generated by [.release](https://github.com/msimerson/.release).
Expand Down
10 changes: 9 additions & 1 deletion lib/nameserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,15 @@ export const name = Joi.string()
.domain({ allowFullyQualified: true, tlds: false })
.pattern(/\.$/)

export const type = Joi.string().valid('bind', 'djbdns', 'knot', 'nsd', 'maradns', 'powerdns', 'dynect')
export const type = Joi.string().valid(
'bind',
'djbdns',
'knot',
'nsd',
'maradns',
'powerdns',
'dynect',
)

export const remote_login = Joi.string().empty('').max(127)

Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nictool/validate",
"version": "0.8.5",
"version": "0.8.7",
"description": "NicTool Object Validation",
"type": "module",
"files": [
Expand All @@ -26,9 +26,10 @@
"prettier:fix": "npx prettier --ignore-path .gitignore --write .",
"test": "node --test",
"test:only": "node --test --test-only",
"versions": "npx dependency-version-checker check",
"versions:fix": "npx dependency-version-checker update",
"watch": "node --test --watch"
"versions": "npx npm-dep-mgr check",
"versions:fix": "npx npm-dep-mgr update",
"watch": "node --test --watch",
"test:coverage": "npx c8 --reporter=text --reporter=text-summary npm test"
},
"repository": {
"type": "git",
Expand Down
Loading