@grpc/grpc-js
Advanced tools
Comparing version 1.11.0 to 1.11.1
@@ -20,3 +20,3 @@ "use strict"; | ||
const resolver_1 = require("./resolver"); | ||
const node_dns_1 = require("node:dns"); | ||
const dns_1 = require("dns"); | ||
const service_config_1 = require("./service-config"); | ||
@@ -57,3 +57,3 @@ const constants_1 = require("./constants"); | ||
this.returnedIpResult = false; | ||
this.alternativeResolver = new node_dns_1.promises.Resolver(); | ||
this.alternativeResolver = new dns_1.promises.Resolver(); | ||
trace('Resolver constructed for target ' + (0, uri_parser_1.uriToString)(target)); | ||
@@ -261,3 +261,3 @@ if (target.authority) { | ||
* error is indistinguishable from other kinds of errors */ | ||
const addressList = await node_dns_1.promises.lookup(hostname, { all: true }); | ||
const addressList = await dns_1.promises.lookup(hostname, { all: true }); | ||
return addressList.map(addr => ({ host: addr.address, port: +this.port })); | ||
@@ -270,3 +270,3 @@ } | ||
} | ||
return node_dns_1.promises.resolveTxt(hostname); | ||
return dns_1.promises.resolveTxt(hostname); | ||
} | ||
@@ -273,0 +273,0 @@ startNextResolutionTimer() { |
{ | ||
"name": "@grpc/grpc-js", | ||
"version": "1.11.0", | ||
"version": "1.11.1", | ||
"description": "gRPC Library for Node - pure JS implementation", | ||
@@ -5,0 +5,0 @@ "homepage": "https://grpc.io/", |
@@ -23,3 +23,3 @@ /* | ||
} from './resolver'; | ||
import { promises as dns } from 'node:dns'; | ||
import { promises as dns } from 'dns'; | ||
import { extractAndSelectServiceConfig, ServiceConfig } from './service-config'; | ||
@@ -26,0 +26,0 @@ import { Status } from './constants'; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1887392
16