diggy 1.0.4 → 1.0.5

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.
@@ -25,6 +25,9 @@ import { DNSRecordType } from "../types.js";
25
25
  * @group Resolvers
26
26
  */
27
27
  export function nodeResolver(servers = []) {
28
+ if (typeof window !== "undefined") {
29
+ throw new Error("nodeResolver is only supported in Node.js environments.");
30
+ }
28
31
  const dns = new _dns.Resolver();
29
32
  if (servers.length > 0) {
30
33
  dns.setServers(servers);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "diggy",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Multi-backend DNS resolver for Node.js/Browser — supports dig, DNS over HTTPS, and native Node.js DNS.",
5
5
  "repository": "OzzyCzech/diggy",
6
6
  "website": "https://ozzyczech.github.io/diggy/",
@@ -45,7 +45,7 @@
45
45
  },
46
46
  "devDependencies": {
47
47
  "@biomejs/biome": "^2.2.0",
48
- "@types/node": "^24.2.1",
48
+ "@types/node": "^24.3.0",
49
49
  "np": "^10.2.0",
50
50
  "tsx": "^4.20.4",
51
51
  "typedoc": "^0.28.10",