MCPcopy Create free account
hub / github.com/jhen0409/react-native-debugger / parseUrl

Function parseUrl

electron/url-handle/handleURL.js:26–36  ·  view source on GitHub ↗
(_url)

Source from the content-addressed store, hash-verified

24)
25
26export const parseUrl = (_url) => {
27 const route = url.parse(_url)
28 if (route.host !== 'set-debugger-loc') return
29 const { host, port, projectRoots } = qs.parse(route.query)
30 const query = {
31 host: resolveHost(host),
32 port: Number(port) || 8081,
33 projectRoots: filterPaths(Array.isArray(projectRoots) ? projectRoots : [projectRoots]),
34 }
35 return query
36}
37
38export const handleURL = async (getWindow, path) => {
39 const query = parseUrl(path)

Callers 2

main.jsFile · 0.90
handleURLFunction · 0.85

Calls 2

resolveHostFunction · 0.85
filterPathsFunction · 0.85

Tested by

no test coverage detected