Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const isWhitelisted = self._options.tracingOrigins.some((origin: string | RegExp) =>
isMatchingPattern(url, origin),
);
return !url ? true : options.whitelistUrls.some(pattern => isMatchingPattern(url, pattern));
}
(options.ignoreErrors as Array).some(pattern => isMatchingPattern(message, pattern)),
);
shouldCreateSpanForRequest(url: string): boolean {
const origins = (_options && _options.tracingOrigins) || defaultTracingOrigins;
return (
origins.some((origin: string | RegExp) => isMatchingPattern(url, origin)) &&
!isMatchingPattern(url, 'sentry_key')
);
},
startTransactionOnLocationChange: true,
return !url ? true : options.whitelistUrls.some(pattern => isMatchingPattern(url, pattern));
}
(options.ignoreErrors as Array).some(pattern => isMatchingPattern(message, pattern)),
);
origins.some((origin: string | RegExp) => isMatchingPattern(url, origin)) &&
!isMatchingPattern(url, 'sentry_key')
self._options.tracingOrigins.forEach((whiteListUrl: string | RegExp) => {
if (!whiteListed) {
whiteListed = isMatchingPattern(url, whiteListUrl);
}
});