Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sentry-internal/global-search

Package Overview
Dependencies
Maintainers
10
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry-internal/global-search - npm Package Compare versions

Comparing version 0.5.4 to 0.5.5

8

dist/cjs/sentry-global-search/lib/transformers.js

@@ -6,2 +6,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

var transformDocsGatsbyHit = function (hit, results) {
var _a;
var obj = {

@@ -11,2 +12,3 @@ id: hit.objectID,

url: "https://docs.sentry.io".concat(hit.url),
index: (_a = results.index) !== null && _a !== void 0 ? _a : "",
context: {

@@ -26,2 +28,3 @@ context1: (0, pretty_path_1.default)(hit.url),

var transformDevelopHit = function (hit, results) {
var _a;
var obj = {

@@ -31,2 +34,3 @@ id: hit.objectID,

url: "https://develop.sentry.dev".concat(hit.url),
index: (_a = results.index) !== null && _a !== void 0 ? _a : "",
context: {

@@ -46,2 +50,3 @@ context1: (0, pretty_path_1.default)(hit.url),

var transformHelpCenterHit = function (hit, results) {
var _a;
var obj = {

@@ -52,2 +57,3 @@ id: hit.objectID,

url: "https://help.sentry.io".concat(hit.url).concat(hit.anchor ? "#".concat(hit.anchor) : ''),
index: (_a = results.index) !== null && _a !== void 0 ? _a : "",
};

@@ -64,2 +70,3 @@ if (hit._highlightResult)

var transformBlogHit = function (hit, results) {
var _a;
var obj = {

@@ -72,2 +79,3 @@ id: hit.objectID,

url: "https://blog.sentry.io".concat(hit.url).concat(hit.anchor ? "#".concat(hit.anchor) : ''),
index: (_a = results.index) !== null && _a !== void 0 ? _a : "",
};

@@ -74,0 +82,0 @@ if (hit._highlightResult)

8

dist/cjs/sentry-global-search/lib/types.d.ts

@@ -41,6 +41,2 @@ import { ObjectWithObjectID, SearchResponse } from '@algolia/client-search';

/**
* Optional queryID returned when search is performed with clickAnalytics enabled
*/
queryID?: string;
/**
* Algolia specific highlight mapping.

@@ -106,2 +102,6 @@ *

queryID?: string;
/**
* Algolia index the result is from.
*/
index: string;
};

@@ -108,0 +108,0 @@ export type Config = {

import prettyPath from './pretty-path';
export const transformDocsGatsbyHit = (hit, results) => {
var _a;
const obj = {

@@ -7,2 +8,3 @@ id: hit.objectID,

url: `https://docs.sentry.io${hit.url}`,
index: (_a = results.index) !== null && _a !== void 0 ? _a : "",
context: {

@@ -21,2 +23,3 @@ context1: prettyPath(hit.url),

export const transformDevelopHit = (hit, results) => {
var _a;
const obj = {

@@ -26,2 +29,3 @@ id: hit.objectID,

url: `https://develop.sentry.dev${hit.url}`,
index: (_a = results.index) !== null && _a !== void 0 ? _a : "",
context: {

@@ -40,2 +44,3 @@ context1: prettyPath(hit.url),

export const transformHelpCenterHit = (hit, results) => {
var _a;
const obj = {

@@ -46,2 +51,3 @@ id: hit.objectID,

url: `https://help.sentry.io${hit.url}${hit.anchor ? `#${hit.anchor}` : ''}`,
index: (_a = results.index) !== null && _a !== void 0 ? _a : "",
};

@@ -57,2 +63,3 @@ if (hit._highlightResult)

export const transformBlogHit = (hit, results) => {
var _a;
const obj = {

@@ -65,2 +72,3 @@ id: hit.objectID,

url: `https://blog.sentry.io${hit.url}${hit.anchor ? `#${hit.anchor}` : ''}`,
index: (_a = results.index) !== null && _a !== void 0 ? _a : "",
};

@@ -67,0 +75,0 @@ if (hit._highlightResult)

{
"name": "@sentry-internal/global-search",
"description": "JavaScript library and helper utilities for searching Sentry sites via Algolia.",
"version": "0.5.4",
"version": "0.5.5",
"author": "Sentry",

@@ -6,0 +6,0 @@ "dependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc