Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
}),
new DeviceContext()
];
}
if (options.enableNative === undefined) {
options.enableNative = true;
}
if (options.enableNativeCrashHandling === undefined) {
options.enableNativeCrashHandling = true;
}
if (options.enableNativeNagger === undefined) {
options.enableNativeNagger = true;
}
// tslint:enable: strict-comparisons
initAndBind(ReactNativeClient, options);
}
}
// This supports the variable that sentry-webpack-plugin injects
else if (global.SENTRY_RELEASE && global.SENTRY_RELEASE.id) {
options.release = global.SENTRY_RELEASE.id;
}
}
if (options.environment === undefined && process.env.SENTRY_ENVIRONMENT) {
options.environment = process.env.SENTRY_ENVIRONMENT;
}
if (domain.active) {
setHubOnCarrier(getMainCarrier(), getCurrentHub());
}
initAndBind(NodeClient, options);
}
verifyRequiredBrowserAPIs();
} catch (_oO) {
// juuust in case
}
if (options.defaultIntegrations === undefined) {
options.defaultIntegrations = defaultIntegrations;
}
if (options.release === undefined) {
const window = getGlobalObject();
// This supports the variable that sentry-webpack-plugin injects
if (window.SENTRY_RELEASE && window.SENTRY_RELEASE.id) {
options.release = window.SENTRY_RELEASE.id;
}
}
initAndBind(BrowserClient, options);
}