@tarojs/rn-runner 3.5.6 → 3.5.7-alpha.0

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/src/utils.ts DELETED
@@ -1,27 +0,0 @@
1
- import { networkInterfaces } from 'os'
2
-
3
- export function getOpenHost () {
4
- let result
5
- const interfaces = networkInterfaces()
6
- for (const devName in interfaces) {
7
- const isEnd = interfaces[devName]?.some(item => {
8
- // 取IPv4, 不为127.0.0.1的内网ip
9
- if (['IPv4', 4, '4'].includes(item.family) && item.address !== '127.0.0.1' && !item.internal) {
10
- result = item.address
11
- return true
12
- }
13
- return false
14
- })
15
- // 若获取到ip, 结束遍历
16
- if (isEnd) {
17
- break
18
- }
19
- }
20
- return result
21
- }
22
-
23
- export const PLAYGROUNDREPO = 'https://github.com/wuba/taro-playground'
24
-
25
- export const PLAYGROUNDINFO = `use [Taro Playground App](${PLAYGROUNDREPO}) to scan`
26
-
27
- export const isWin = /^win/.test(process.platform)