@onekeyfe/react-native-dns-lookup 3.0.8 → 3.0.10
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.
package/ios/DnsLookup.mm
CHANGED
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
|
|
88
88
|
for (CFIndex currentIndex = 0; currentIndex < numAddresses; currentIndex++) {
|
|
89
89
|
struct sockaddr *address = (struct sockaddr *)CFDataGetBytePtr(
|
|
90
|
-
CFArrayGetValueAtIndex(addressesRef, currentIndex));
|
|
90
|
+
(CFDataRef)CFArrayGetValueAtIndex(addressesRef, currentIndex));
|
|
91
91
|
getnameinfo(address, address->sa_len, ipAddress, INET6_ADDRSTRLEN, nil, 0, NI_NUMERICHOST);
|
|
92
92
|
[addresses addObject:[NSString stringWithCString:ipAddress encoding:NSASCIIStringEncoding]];
|
|
93
93
|
}
|
package/lib/module/index.js
CHANGED
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NativeDnsLookup","DnsLookup"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,OAAOA,eAAe,MAAM,sBAAmB;AAE/C,OAAO,MAAMC,SAAS,GAAGD,eAAe","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["NativeDnsLookup","DnsLookup","getIpAddressesForHostname","hostname","getIpAddresses"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,OAAOA,eAAe,MAAM,sBAAmB;AAE/C,OAAO,MAAMC,SAAS,GAAGD,eAAe;AACxC,OAAO,MAAME,yBAAyB,GACpCC,QAAgB,IACMH,eAAe,CAACI,cAAc,CAACD,QAAQ,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,kCAAkB,CAAC;AACzC,YAAY,EAAE,IAAI,IAAI,aAAa,EAAE,MAAM,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,kCAAkB,CAAC;AACzC,eAAO,MAAM,yBAAyB,GACpC,UAAU,MAAM,KACf,OAAO,CAAC,MAAM,EAAE,CAA6C,CAAC;AACjE,YAAY,EAAE,IAAI,IAAI,aAAa,EAAE,MAAM,mBAAmB,CAAC"}
|
package/package.json
CHANGED
package/src/index.tsx
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import NativeDnsLookup from './NativeDnsLookup';
|
|
2
2
|
|
|
3
3
|
export const DnsLookup = NativeDnsLookup;
|
|
4
|
+
export const getIpAddressesForHostname = (
|
|
5
|
+
hostname: string,
|
|
6
|
+
): Promise<string[]> => NativeDnsLookup.getIpAddresses(hostname);
|
|
4
7
|
export type { Spec as DnsLookupSpec } from './NativeDnsLookup';
|