@react-native/dev-middleware
Advanced tools
Comparing version 0.74.0-nightly-20231016-44660019e to 0.74.0-nightly-20231017-81ae532dd
@@ -68,8 +68,9 @@ "use strict"; | ||
processRequest(request, response, next) { | ||
const pathname = _url.default.parse(request.url).pathname; | ||
if ( | ||
request.url === PAGES_LIST_JSON_URL || | ||
request.url === PAGES_LIST_JSON_URL_2 | ||
pathname === PAGES_LIST_JSON_URL || | ||
pathname === PAGES_LIST_JSON_URL_2 | ||
) { | ||
this._sendJsonResponse(response, this.getPageDescriptions()); | ||
} else if (request.url === PAGES_LIST_JSON_VERSION_URL) { | ||
} else if (pathname === PAGES_LIST_JSON_VERSION_URL) { | ||
this._sendJsonResponse(response, { | ||
@@ -76,0 +77,0 @@ Browser: "Mobile JavaScript", |
{ | ||
"name": "@react-native/dev-middleware", | ||
"version": "0.74.0-nightly-20231016-44660019e", | ||
"version": "0.74.0-nightly-20231017-81ae532dd", | ||
"description": "Dev server middleware for React Native", | ||
@@ -26,3 +26,3 @@ "keywords": [ | ||
"@isaacs/ttlcache": "^1.4.1", | ||
"@react-native/debugger-frontend": "0.74.0-nightly-20231016-44660019e", | ||
"@react-native/debugger-frontend": "0.74.0-nightly-20231017-81ae532dd", | ||
"chrome-launcher": "^0.15.2", | ||
@@ -29,0 +29,0 @@ "chromium-edge-launcher": "^1.0.0", |
89446
2023