@sentry-internal/global-search
Advanced tools
Comparing version 0.0.42 to 0.0.43
@@ -452,2 +452,3 @@ module.exports = | ||
var args, | ||
sanitizedQuery, | ||
client, | ||
@@ -477,2 +478,6 @@ configs, | ||
case 3: | ||
// Strip out all but Basic Latin, to minimize impact from bot search that | ||
// uses random characters. We don't have localized docs so there's no point | ||
// in searching non-latin characters. | ||
sanitizedQuery = _query.replace(/[^\u0020-\u007f]/gi, ''); | ||
client = this.client, configs = this.configs; | ||
@@ -503,3 +508,3 @@ searchAllIndexes = args.searchAllIndexes || false; | ||
indexName: indexName, | ||
query: _query, | ||
query: sanitizedQuery, | ||
params: sentry_global_search_objectSpread(sentry_global_search_objectSpread({}, defaultQueryParams), optionalFilters.length && { | ||
@@ -514,6 +519,6 @@ optionalFilters: optionalFilters | ||
_context.next = 9; | ||
_context.next = 10; | ||
return client.search(queries); | ||
case 9: | ||
case 10: | ||
_yield$client$search = _context.sent; | ||
@@ -539,3 +544,3 @@ algoliaResults = _yield$client$search.results; | ||
case 13: | ||
case 14: | ||
case "end": | ||
@@ -542,0 +547,0 @@ return _context.stop(); |
{ | ||
"name": "@sentry-internal/global-search", | ||
"description": "JavaScript library and helper utilities for searching Sentry sites via Algolia.", | ||
"version": "0.0.42", | ||
"version": "0.0.43", | ||
"author": "Sentry", | ||
@@ -6,0 +6,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
96620
1064