forked from Expensify/App
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into Replace-usages-of-useWindowDimensions-with-u…
…seResponsiveLayout
- Loading branch information
Showing
110 changed files
with
2,330 additions
and
929 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
assets/images/product-illustrations/broken-magnifying-glass.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
diff --git a/node_modules/react-native/Libraries/ReactNative/AppRegistry.js b/node_modules/react-native/Libraries/ReactNative/AppRegistry.js | ||
index 68bd389..be9b5bf 100644 | ||
--- a/node_modules/react-native/Libraries/ReactNative/AppRegistry.js | ||
+++ b/node_modules/react-native/Libraries/ReactNative/AppRegistry.js | ||
@@ -232,12 +232,34 @@ const AppRegistry = { | ||
appParameters: Object, | ||
displayMode?: number, | ||
): void { | ||
+ const redactAppParameters = (parameters) => { | ||
+ const initialProps = parameters['initialProps']; | ||
+ const url = initialProps['url']; | ||
+ | ||
+ if(!url) { | ||
+ return parameters; | ||
+ } | ||
+ | ||
+ const sensitiveParams = ['authToken', 'autoGeneratedPassword', 'autoGeneratedLogin']; | ||
+ const [urlBase, queryString] = url.split('?'); | ||
+ | ||
+ if (!queryString) { | ||
+ return parameters; | ||
+ } | ||
+ | ||
+ const redactedSearchParams = queryString.split('&').map((param) => { | ||
+ const [key, value] = param.split('='); | ||
+ return `${key}=${sensitiveParams.includes(key) ? '<REDACTED>' : value}` | ||
+ }); | ||
+ return {...parameters, initialProps: {...initialProps, url: `${urlBase}?${redactedSearchParams.join('&')}`}}; | ||
+ } | ||
+ | ||
if (appKey !== 'LogBox') { | ||
const msg = | ||
'Updating props for Surface "' + | ||
appKey + | ||
'" with ' + | ||
- JSON.stringify(appParameters); | ||
+ JSON.stringify(redactAppParameters(appParameters)); | ||
infoLog(msg); | ||
BugReporting.addSource( | ||
'AppRegistry.setSurfaceProps' + runCount++, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.