Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rjweb/utils

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rjweb/utils - npm Package Compare versions

Comparing version 1.10.4 to 1.10.5

docs/functions/dns.resolve.html

5

CHANGELOG.md

@@ -0,1 +1,6 @@

## 1.10.5
- Rename `dns.resolveHost` to `dns.resolve`
- Add `dns.reverse`
## 1.10.4

@@ -2,0 +7,0 @@

2

docs/assets/navigation.js

@@ -1,1 +0,1 @@

window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAAA52XbW/TMBDHv0teV8BKKdB3FQioxEPHpAppmiY3uTVmiZ35oV1BfPc5id04i3MJfVnf/365O5/t6/XfSMGjihYREYIco0lUEJWanzlPdAbyZbX8IlV5Zmz3lCXRYjaJ4pRmiQAWLa4bwB4E2UGDuNMsVpQzB7GCNmw++zc5IeBBk6wfUJkR94zmVPW7V2bEXRCW8Lzfv7YPAugfpAYnCYaBnO8xRmXHAFwRhQEqOwKQGimDMXZcbzznhMluG5nFUU0kQPJsD1+4DG5kifEkaBx31Hz4KBXk3XAa26iodqA+lR6hkDyUk2GVVQJIsLgepxbhyRm/QFpmdVRCB0GKYBAloDSiH2egDlzcd79vDaNCWK2XiVmTXlHjjEjpYU6SNvBi+s4L5kpvjb4fUtsxwrflr9vVejO7/frj++cGtCeCkq2fVkvYJr6edoHzscD5EDDWwlRPrdahPXOwkwhpv4QfWMZJgnGcBsFQiYdS2lH355sWQoQ2buRZcpCeg9QgFITvGQco7fhR0PkWROAkVOujDkKcEhZ+Ni2kFiBZ7ICZlzV841uGk5zzelrE0PNZgIhN/yEEq0BfLs3CzVkTKju6IXz7G2LV3ZB6fdSGJADFB54XRAQrakmeCjtwRrUmQg6RKg2a2IMGDd28quVRaV22Ae6erAGXXUx5Sd4gx81FEDpkPSFQVTYhF6FiWIyToLUwWsp2wVDM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SXLt1hD+gRZBmj1R58AekC7xrJenU9nazzdbbMCyN0df36+j8LsaMRnEkAAA==";
window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAA7WcW2/bOhKA/4v6qpOGIkVJeSu220WB3bM9p0B3ASMIVJtJtLUlV5ek2aD/fUGKkmbsGVu2u09FrblxvuGQkqi8BnX13AQ3i9fgW1GughutwqDMNya4CfImCIOuXgc3wX1XLtuiKpu3eXP12G7WQRgs13nTmCa4CYKf4aAuo1H9i6mboipHG095XeRf16Z5668cNBRdZ4mIJ2vvjdn+ab53RW1Wo8n2ZWuat/DSQZtgaHWdv4xmNtWqs3G5Xw9aANmpzaZ6MlSGnJX+MmEsDLZ5bcp2jIK2XrV5e8C6u3y29fzJ1PkDb95fP9t+021Y2023OdvuutgULWvZXT3btvne5WvWtrt6Ps28XFV8SvrLF1ov/nugXAaJ03wAoG1dlA97E6b/ee6MecybRyLEwUjePB4OzwdB0yuX9cuWqg1v3guc72FljnjwAud7eDClqelZ710MEpf7+GweNqZsqQ6/42uQPN8nN2u9oxnT9pD12mzX+dK8a17KJe8ESl1SZU+HKuzpRMsiSqfV0q+On/K6MfXoxVsafGCpE93FYlpOl1XZtHW3bKtTfL3Baof87qjDUV9HU0bHTcEpUUClKYa2Wf1WNL9t6+Kpn0SzI4quVboX0TkBnZ0TFMGy2myL0wKYVM7zPwEpu81XUH9Dp+9/ntvpD3Qyb2heJ/PBMDukrlzxDtzl861vTb20Uqx9L3C+h+VjXpJbMO+gv36+fa7revMzuu6e9cl49fU/ZtnuVUn/89wqWRmzdZVIROktjSKHI/XhsF7+Um2s7GE/XuhET2DmmPa5qr/tT53+97lZaU1DYvNW7OUj2HwcpPWi+fjpgHV7+SLrn7uvpTkU/yBygZdlV1uxgwMZZS7ws6qey3WVk03GuxlELvDStLXJqXuDwUcvcKoHcCP+j3f/vvv46Yu6+/s/f/8bcTs+OEJyl/vTM/3ps/zBvdNO0Q3r5eDnvIKbu1sivMzaJmE9bn9UfCjqZtbQ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kQUJB/nmVEtUgUkyqWSC0xnPR4M4gaLieIwf64GsgnoSXGbcw3egk4FxXfd1k7E++887J22gzNEfjolMSjGYLpqbZf6VG8gmgJdyBMYTF6C4gZ7mgoSvbIBLUKVpwqruNjgNspJy3P0p0UlLAegxq1U+D6+YgT8wCZOU03QP3SelFKQl4yBMnyCBggHehO4LJuKSMxhoxi8lgSEwYMEbaO/7118AC4gg5cb7YFqbqtX4AhXogwaScm2g/84WRAsWIMEpFftUQdtQXJr9SabGnWRCMwVEGvvmrrlUuSNgQBekV3MtttjmwzFUoAlijtmYm52VAPQeyYbYFFt70BHkB0wxlfkRcu3HqWukDkoh9t1Lc5OnaBr/jQMIG/iXXC1N78RAksD8iZXvm1ya+1PaIGzQAWOul1mlukOVq0GSE9ZZ/80amOqg3PtAhf9Xcqnqz0yC0YI0aa76+68IwChBtIrL7Sb/cWeL4m7XpQRdVHE58tp6T1sBPIoLePzYDHgFtS+5DNtzXXVXNtO5LoAI9ImEW4OH70PB7gIkOOLm3PDBIFADSZJckqpybzHVsCa46VaVxNoGukrCrabjISygB8aXcO1h/F4UDBD4izh//rAZ8AYoJsJvhv0mOeGyO/x9CdDzQREJLkvgD0cATdC4BTfJ6vx55U6bg3kGqifmhjv80RRQ7aDYWSX37X7ef+EPIgWVIHiP/kAEWESBXsZV3njYAejBLSM3MYc/3AISA/LCKrlvmUHtgMUh4vpP3ZV2OrsSKnb3fyCvKVc2/qw3CBXeQ3I4mp2CUSAtsfTLCYdjOOgB2hagoXzBp345zdgY/N8jAcUA5o3goO4vogpUu2K9dTi3YIZyGnsb8hhkSXNE+29/QW7gowOOYn/0A6yZIBMZ68l9sQLyADwpfw8ec8r+SwgwOFBtmkv+9EcSQJ0DtxGX/kFx6/80BlAHXS7iehX4axFAE94Tc3N5ONYCywxUGaPVH/EBPIBORhbMbRhsi61ZF6UJbha3P3/+DzHACYqWSwAA";

@@ -31,3 +31,4 @@ "use strict";

__export(dns_exports, {
resolveHost: () => resolveHost
resolve: () => resolve,
reverse: () => reverse
});

@@ -37,3 +38,3 @@ module.exports = __toCommonJS(dns_exports);

var dns = __toESM(require("dns"));
async function resolveHost(host, prefer = "v4") {
async function resolve(host, prefer = "v4") {
if ((0, import_network.isIP)(host))

@@ -54,5 +55,15 @@ return new import_network.IPAddress(host);

}
async function reverse(ip) {
try {
const result = await dns.promises.reverse(ip.long());
return result[0];
} catch (err) {
console.log(err);
throw new Error(`No Host could be resolved for \`${ip.usual()}\``);
}
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
resolveHost
resolve,
reverse
});

@@ -418,6 +418,15 @@ "use strict";

} else {
let ip = [...this.rawData].map((seg) => seg.toString(16)).join(":");
ip = ip.replace(/(^|:)0+([0-9A-Fa-f]+)/g, "$1$2");
ip = ip.replace(/(^|:)(0(:|$)){2,}/, "::");
return ip;
let ip = "", doubleIx = false;
for (const segment of this.rawData) {
if (!segment) {
if (!doubleIx) {
ip += ip ? ":" : "::";
doubleIx = true;
}
continue;
}
ip += `:${segment.toString(16)}`;
}
ip = ip.slice(1);
return ip.length === 1 ? "::" : ip;
}

@@ -462,3 +471,3 @@ }

[inspectSymbol]() {
return `<IPAddress v${this.type} ${this.long()}>`;
return `<IPAddress v${this.type} ${this.usual()}>`;
}

@@ -465,0 +474,0 @@ }

{
"name": "@rjweb/utils",
"version": "1.10.4",
"version": "1.10.5",
"description": "Easy and Lightweight Utilities",

@@ -5,0 +5,0 @@ "module": "lib/esm/index.js",

import { IPAddress, isIP } from "./network";
import * as dns from "dns";
async function resolveHost(host, prefer = "v4") {
async function resolve(host, prefer = "v4") {
if (isIP(host))

@@ -19,4 +19,14 @@ return new IPAddress(host);

}
async function reverse(ip) {
try {
const result = await dns.promises.reverse(ip.long());
return result[0];
} catch (err) {
console.log(err);
throw new Error(`No Host could be resolved for \`${ip.usual()}\``);
}
}
export {
resolveHost
resolve,
reverse
};

@@ -376,6 +376,15 @@ import * as net from "net";

} else {
let ip = [...this.rawData].map((seg) => seg.toString(16)).join(":");
ip = ip.replace(/(^|:)0+([0-9A-Fa-f]+)/g, "$1$2");
ip = ip.replace(/(^|:)(0(:|$)){2,}/, "::");
return ip;
let ip = "", doubleIx = false;
for (const segment of this.rawData) {
if (!segment) {
if (!doubleIx) {
ip += ip ? ":" : "::";
doubleIx = true;
}
continue;
}
ip += `:${segment.toString(16)}`;
}
ip = ip.slice(1);
return ip.length === 1 ? "::" : ip;
}

@@ -420,3 +429,3 @@ }

[inspectSymbol]() {
return `<IPAddress v${this.type} ${this.long()}>`;
return `<IPAddress v${this.type} ${this.usual()}>`;
}

@@ -423,0 +432,0 @@ }

{
"name": "@rjweb/utils",
"version": "1.10.4",
"version": "1.10.5",
"description": "Easy and Lightweight Utilities",

@@ -5,0 +5,0 @@ "module": "lib/esm/index.js",

@@ -8,8 +8,21 @@ import { IPAddress } from "./network";

*
* await dns.resolveHost('1.1.1.1') // <IPAddress v4 1.1.1.1>
* await dns.resolveHost('google.com', 'v4') // <IPAddress v4 142.250.185.78>
* await dns.resolveHost('google.com', 'v6') // <IPAddress v4 2a00:1450:400d:803::200e:>
* await dns.resolve('1.1.1.1') // <IPAddress v4 1.1.1.1>
* await dns.resolve('google.com', 'v4') // <IPAddress v4 142.250.185.78>
* await dns.resolve('google.com', 'v6') // <IPAddress v4 2a00:1450:400d:803::200e:>
* ```
* @throws If no IP Could be resolved
* @since 1.8.0
*/ export declare function resolveHost(host: string, prefer?: 'v4' | 'v6'): Promise<IPAddress>;
*/ export declare function resolve(host: string, prefer?: 'v4' | 'v6'): Promise<IPAddress>;
/**
* Resolve an IP to Hosts
* @example
* ```
* import { dns, network } from "@rjweb/utils"
*
* await dns.reverse('1.1.1.1') // ['']
* await dns.reverse('google.com', 'v4') // <IPAddress v4 142.250.185.78>
* await dns.reverse('google.com', 'v6') // <IPAddress v4 2a00:1450:400d:803::200e:>
* ```
* @throws If no Host Could be resolved
* @since 1.10.5
*/ export declare function reverse(ip: IPAddress): Promise<string>;
{
"name": "@rjweb/utils",
"version": "1.10.4",
"version": "1.10.5",
"description": "Easy and Lightweight Utilities",

@@ -5,0 +5,0 @@ "module": "lib/esm/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc