mirror of
https://github.com/status-im/react-native.git
synced 2025-02-25 23:55:23 +00:00
Fixes to jscProfilerMiddleware
Reviewed By: bnham Differential Revision: D3691098 fbshipit-source-id: dbadda69ff0b6a8d9d349b33c45234ff4f8c3b65
This commit is contained in:
parent
c74938e72e
commit
0cc3b4b079
@ -78,7 +78,7 @@ class TreeTransformator {
|
|||||||
|
|
||||||
const parsedUrl = urlLib.parse(url);
|
const parsedUrl = urlLib.parse(url);
|
||||||
const options = {
|
const options = {
|
||||||
host: parsedUrl.hostname,
|
host: 'localhost',
|
||||||
port: parsedUrl.port,
|
port: parsedUrl.port,
|
||||||
path: parsedUrl.pathname.replace(/\.bundle$/, '.map') + parsedUrl.search,
|
path: parsedUrl.pathname.replace(/\.bundle$/, '.map') + parsedUrl.search,
|
||||||
};
|
};
|
||||||
@ -97,13 +97,11 @@ class TreeTransformator {
|
|||||||
if (!sawEnd) {
|
if (!sawEnd) {
|
||||||
console.error('Connection terminated prematurely because of: '
|
console.error('Connection terminated prematurely because of: '
|
||||||
+ err.code + ' for url: ' + url);
|
+ err.code + ' for url: ' + url);
|
||||||
this.urlResults[url] = null;
|
|
||||||
callback();
|
callback();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}).on('error', (err) => {
|
}).on('error', (err) => {
|
||||||
console.error('Could not get response from: ' + url);
|
console.error('Could not get response from: ' + url);
|
||||||
this.urlResults[url] = null;
|
|
||||||
callback();
|
callback();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user