Socket
Socket
Sign inDemoInstall

@apify/docs-search-modal

Package Overview
Dependencies
59
Maintainers
10
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.21 to 1.0.22

7

dist/components/ApifySearch.js

@@ -37,2 +37,3 @@ var __assign = (this && this.__assign) || function () {

import { SearchIcon, ControlKeyIcon } from '../utils/icons';
import { countFamily } from '../utils/countFamily';
var collapseResults = (function () {

@@ -129,2 +130,8 @@ return {

})); }).flat(); }).flat()
.filter(function (item, i, a) {
var hierarchyMatches = Object.values(item === null || item === void 0 ? void 0 : item._highlightResult.hierarchy);
return (item === null || item === void 0 ? void 0 : item._highlightResult.content.matchLevel) === 'full'
|| hierarchyMatches[hierarchyMatches.length - 1].matchLevel === 'full'
|| a.slice(0, i).some(function (x) { return (countFamily(x, item) === 2); });
}),
];

@@ -131,0 +138,0 @@ }

9

dist/components/Breadcrumbs.js

@@ -20,10 +20,13 @@ var __assign = (this && this.__assign) || function () {

var item = _a.item, highlight = _a.highlight;
var x = Object.entries((_c = (_b = item === null || item === void 0 ? void 0 : item._highlightResult) === null || _b === void 0 ? void 0 : _b.hierarchy) !== null && _c !== void 0 ? _c : {}).filter(function (_a) {
var x = Object.entries((_c = (_b = item === null || item === void 0 ? void 0 : item._highlightResult) === null || _b === void 0 ? void 0 : _b.hierarchy) !== null && _c !== void 0 ? _c : {})
.filter(function (_a) {
var _ = _a[0], b = _a[1];
return b;
}).sort(function (_a, _b) {
})
.sort(function (_a, _b) {
var a = _a[0];
var b = _b[0];
return a.localeCompare(b);
});
})
.slice(1);
return (_jsx("div", __assign({ className: 'overflow-x-hidden overflow-ellipsis whitespace-nowrap leading-normal h-auto' }, { children: x.map(function (_a, index) {

@@ -30,0 +33,0 @@ var _ = _a[0], b = _a[1];

@@ -38,8 +38,3 @@ var __assign = (this && this.__assign) || function () {

var items = _a.items, setActiveItemId = _a.setActiveItemId, setContext = _a.setContext, components = _a.components, state = _a.state;
return items === null || items === void 0 ? void 0 : items.filter(function (item, i, a) {
var hierarchyMatches = Object.values(item === null || item === void 0 ? void 0 : item._highlightResult.hierarchy);
return (item === null || item === void 0 ? void 0 : item._highlightResult.content.matchLevel) === 'full'
|| hierarchyMatches[hierarchyMatches.length - 1].matchLevel === 'full'
|| a.slice(0, i).some(function (x) { return (countFamily(x, item) === 2); });
}).map(function (item, i, a) {
return items === null || items === void 0 ? void 0 : items.map(function (item, i, a) {
var _a, _b, _c, _d;

@@ -46,0 +41,0 @@ return (_jsxs("div", { children: [(((_b = (_a = a === null || a === void 0 ? void 0 : a[i - 1]) === null || _a === void 0 ? void 0 : _a.hierarchy) === null || _b === void 0 ? void 0 : _b.lvl0) !== ((_c = item === null || item === void 0 ? void 0 : item.hierarchy) === null || _c === void 0 ? void 0 : _c.lvl0) &&

{
"name": "@apify/docs-search-modal",
"version": "1.0.21",
"version": "1.0.22",
"description": "A custom implementation of the modal search for Apify Docs.",

@@ -5,0 +5,0 @@ "author": "Jindřich Bär",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc