Skip to content

Commit 2cca4f3

Browse files
committed
Change naming
1 parent 4f6818f commit 2cca4f3

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

docs/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ These are functions you can call in your javascript code:
146146
// These two options will only be considered if stacktrace merging is active
147147
// Here you can add modules that should be ignored or exclude modules
148148
// that should no longer be ignored from stacktrace merging
149-
// ignore_modules_exclude: ["I18nManager"], // Exclude is always stronger than include
150-
// ignore_modules_include: ["RNSentry"], // Include modules that should be ignored too
149+
// ignoreModulesExclude: ["I18nManager"], // Exclude is always stronger than include
150+
// ignoreModulesInclude: ["RNSentry"], // Include modules that should be ignored too
151151
// ---------------------------------
152152
}).install();
153153

lib/Sentry.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,13 @@ class NativeClient {
118118
if (options && options.logLevel) {
119119
RNSentry.setLogLevel(options.logLevel);
120120
}
121-
this._ignore_modules_exclude = [];
122-
if (options && options.ignore_modules_exclude) {
123-
this._ignore_modules_exclude = options.ignore_modules_exclude;
121+
this._ignoreModulesExclude = [];
122+
if (options && options.ignoreModulesExclude) {
123+
this._ignoreModulesExclude = options.ignoreModulesExclude;
124124
}
125-
this._ignore_modules_include = [];
126-
if (options && options.ignore_modules_include) {
127-
this._ignore_modules_include = options.ignore_modules_include;
125+
this._ignoreModulesInclude = [];
126+
if (options && options.ignoreModulesInclude) {
127+
this._ignoreModulesInclude = options.ignoreModulesInclude;
128128
}
129129
if (this._deactivateStacktraceMerging === false) {
130130
this._activateStacktraceMerging();
@@ -164,9 +164,9 @@ class NativeClient {
164164
this._ignoredModules = {};
165165
__fbBatchedBridgeConfig.remoteModuleConfig.forEach((module, moduleID) => {
166166
if (module !== null &&
167-
this._ignore_modules_exclude.indexOf(module[0]) == -1 &&
167+
this._ignoreModulesExclude.indexOf(module[0]) == -1 &&
168168
(DEFAULT_MODULE_IGNORES.indexOf(module[0]) >= 0 ||
169-
this._ignore_modules_include.indexOf(module[0]) >= 0)) {
169+
this._ignoreModulesInclude.indexOf(module[0]) >= 0)) {
170170
this._ignoredModules[moduleID] = true;
171171
}
172172
});

0 commit comments

Comments
 (0)