@onekeyfe/react-native-dns-lookup 3.0.179 → 6.7.0-1

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.
Files changed (3) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +14 -2
  3. package/package.json +1 -1
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2019 Tableau
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -33,13 +33,25 @@ The JavaScript wrapper is in [src/index.tsx](src/index.tsx), and the native
33
33
  interface is in [src/NativeDnsLookup.ts](src/NativeDnsLookup.ts). Integrations
34
34
  should handle rejection and validate actual connections independently of DNS.
35
35
 
36
+ ## Keeping DNS and transport checks separate
37
+
38
+ Both `getIpAddressesForHostname(hostname)` and
39
+ `DnsLookup.getIpAddresses(hostname)` call the same native method. They do not
40
+ open a socket, send an HTTP request, validate a certificate or measure endpoint
41
+ latency. A returned address is input to a separate connection decision.
42
+
43
+ Importing the wrapper enforces native TurboModule registration. A missing
44
+ registration is an integration error, while a rejected resolution promise is
45
+ an operation failure. Keep any resolver-result cache scoped to the application's
46
+ network policy; this interface provides no cache-clear or cancellation method.
47
+
36
48
  ## Upstream attribution
37
49
 
38
50
  First, a sincere thank-you to the
39
51
  `react-native-dns-lookup` maintainers for their excellent work 🙏
40
52
 
41
53
  This package is built on, and inspired by,
42
- [nicola/react-native-dns-lookup](https://github.com/nicola/react-native-dns-lookup).
54
+ [tableau/react-native-dns-lookup](https://github.com/tableau/react-native-dns-lookup).
43
55
 
44
56
  Our original plan was to keep our customizations as patches on top of upstream
45
57
  `react-native-dns-lookup`.
@@ -53,7 +65,7 @@ development and delivery stable.
53
65
 
54
66
  ## Upstream Project
55
67
 
56
- - Repository: [nicola/react-native-dns-lookup](https://github.com/nicola/react-native-dns-lookup)
68
+ - Repository: [tableau/react-native-dns-lookup](https://github.com/tableau/react-native-dns-lookup)
57
69
  - License: MIT
58
70
 
59
71
  ## Notes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/react-native-dns-lookup",
3
- "version": "3.0.179",
3
+ "version": "6.7.0-1",
4
4
  "description": "react-native-dns-lookup",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",