New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vuepress-plugin-search-pro

Package Overview
Dependencies
Maintainers
1
Versions
180
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vuepress-plugin-search-pro - npm Package Compare versions

Comparing version 2.0.0-beta.181 to 2.0.0-beta.182

10

lib/node/index.js

@@ -1,2 +0,2 @@

import{watch as P}from"chokidar";import{useSassPalettePlugin as z}from"vuepress-plugin-sass-palette";import{getPageExcerpt as C,fromEntries as g,keys as f,utoa as y,getLocales as A,addViteSsrNoExternal as L}from"vuepress-shared/node";import{getDirname as N,path as k,fs as x}from"@vuepress/utils";import{isArray as j,ensureEndingSlash as I}from"@vuepress/shared";import{load as O}from"cheerio";const T=e=>{const{pages:s,pluginApi:a}=e;a.plugins.some(({name:t})=>t==="vuepress-plugin-blog2")||s.some(t=>"excerpt"in t.data)||s.forEach(t=>{t.data.excerpt=C(e,t,{excerptLength:0})})},q="h2,h3,h4,h5,h6".split(","),D="header,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,li,main,ol,p,ul,caption,table,thead,tbody,th,tr,td,datalist,fieldset,form,legend,optgroup,option,select,details,dialog,menu,menuitem,summary,blockquote,tfoot".split(","),K="routerlink,a,b,abbr,bdi,bdo,cite,code,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,del,ins,button,label,legend,meter,optgroup,option,output,progress,select".split(","),F=O(""),w=(e,s=[],a=!1)=>{const t="excerpt"in e.data&&e.data.excerpt.length,i={title:e.title,contents:[]};let l=t||a,o="",r={header:"",slug:"",contents:[]},c=!0;const d=n=>{n.type==="tag"?q.includes(n.name)?(o&&l&&(r==null||r.contents.push(o.replace(/\s+/gu," ")),o=""),c?(r.contents.length&&i.contents.push(r),c=!1):i.contents.push(r),r={header:n.children.map(p=>p.type==="text"?p.data:"").join("").trim(),slug:n.attribs.id,contents:[]}):D.includes(n.name)?(o&&l&&(r==null||r.contents.push(o.replace(/\s+/gu," ")),o=""),n.childNodes.forEach(d)):K.includes(n.name)&&n.childNodes.forEach(d):n.type==="text"?o+=n.data.trim()?n.data:"":t&&!a&&n.type==="comment"&&n.data.trim()==="more"&&(l=!1)},u=F.parseHTML(e.contentRendered),v=g(s.map(({getter:n},p)=>{const m=n(e);return j(m)?[p.toString(),m]:m?[p.toString(),[m]]:null}).filter(n=>n!==null));return!(u!=null&&u.length)&&!f(v).length?null:(u==null||u.forEach(n=>{d(n)}),l&&o&&(r==null||r.contents.push(o)),r.contents.length&&i.contents.push(r),{...i,...f(v).length?{customFields:v}:{}})},R=(e,s)=>{const a=e.pages.map(t=>{const i=w(t,s.customFields,s.indexContent);return i?{path:t.path,index:i,localePath:t.pathLocale}:null}).filter(t=>t!==null);return g(f({"/":{},...e.options.locales}).map(t=>[t,g(a.filter(i=>i.localePath===t).map(i=>[i.path,i.index]))]))},H=N(import.meta.url),E=I(k.resolve(H,"../client/")),M=k.resolve(H,"../worker/index.js"),U=async(e,s)=>{const a=e.dir.dest(s.worker||"search-pro.worker.js"),t=await x.readFile(M,"utf8");await x.ensureDir(k.dirname(a)),await x.writeFile(a,t.replace("SEARCH_PRO_INDEX",`"${y(JSON.stringify(R(e,s)))}"`))},V={"/en/":{cancel:"Cancel",placeholder:"Search",search:"Search",searching:"Searching",select:"to select",navigate:"to navigate",exit:"to exit",history:"Search History",emptyHistory:"Empty Search History",emptyResult:"No results found",loading:"Loading search indexes..."},"/zh/":{cancel:"取消",placeholder:"搜索",search:"搜索",searching:"搜索中",select:"选择",navigate:"切换",exit:"关闭",history:"搜索历史",emptyHistory:"无搜索历史",emptyResult:"没有找到结果",loading:"正在加载搜索索引..."},"/zh-tw/":{cancel:"取消",placeholder:"搜索",search:"搜素",searching:"搜索中",select:"選擇",navigate:"切換",exit:"關閉",history:"搜索歷史",emptyHistory:"無搜索歷史",emptyResult:"沒有找到結果",loading:"正在加載搜索索引..."},"/de/":{cancel:"Abbrechen",placeholder:"Suche",search:"Suche",searching:"Suche",select:"auswählen",navigate:"wechseln",exit:"schließen",history:"Suchverlauf",emptyHistory:"Suchverlauf leeren",emptyResult:"Keine Ergebnisse gefunden",loading:"Suchindex wird geladen..."},"/de-at/":{cancel:"Abbrechen",placeholder:"Suche",search:"Suche",searching:"Suche",select:"auswählen",navigate:"wechseln",exit:"schließen",history:"Suchverlauf",emptyHistory:"Suchverlauf leeren",emptyResult:"Keine Ergebnisse gefunden",loading:"Suchindex wird geladen..."},"/vi/":{cancel:"Hủy",placeholder:"Tìm kiếm",search:"Tìm kiếm",searching:"Đang tìm kiếm",select:"chọn",navigate:"chuyển",exit:"đóng",history:"Lịch sử tìm kiếm",emptyHistory:"Xóa lịch sử tìm kiếm",emptyResult:"Không tìm thấy kết quả",loading:"Đang tải chỉ mục tìm kiếm..."},"/uk/":{cancel:"Скасувати",placeholder:"Пошук",search:"Пошук",searching:"Пошук",select:"вибрати",navigate:"перейти",exit:"закрити",history:"Історія пошуку",emptyHistory:"Очистити історію пошуку",emptyResult:"Нічого не знайдено",loading:"Завантаження пошукових індексів..."},"/ru/":{cancel:"Отмена",placeholder:"Поиск",search:"Поиск",searching:"Поиск",select:"выбрать",navigate:"переключить",exit:"закрыть",history:"История поиска",emptyHistory:"Очистить историю поиска",emptyResult:"Ничего не найдено",loading:"Загрузка поисковых индексов..."},"/br/":{cancel:"Cancelar",placeholder:"Pesquisar",search:"Pesquisar",searching:"Pesquisando",select:"selecionar",navigate:"navegar",exit:"fechar",history:"Histórico de pesquisa",emptyHistory:"Limpar histórico de pesquisa",emptyResult:"Nenhum resultado encontrado",loading:"Carregando índices de pesquisa..."},"/pl/":{cancel:"Anuluj",placeholder:"Szukaj",search:"Szukaj",searching:"Szukanie",select:"wybierz",navigate:"przejdź",exit:"zamknij",history:"Historia wyszukiwania",emptyHistory:"Wyczyść historię wyszukiwania",emptyResult:"Nie znaleziono wyników",loading:"Ładowanie indeksów wyszukiwania..."},"/sk/":{cancel:"Zrušiť",placeholder:"Hľadať",search:"Hľadať",searching:"Hľadanie",select:"vybrať",navigate:"prepnúť",exit:"zavrieť",history:"História vyhľadávania",emptyHistory:"Vymazať históriu vyhľadávania",emptyResult:"Nenašli sa žiadne výsledky",loading:"Načítavajú sa vyhľadávacie indexy..."},"/fr/":{cancel:"Annuler",placeholder:"Rechercher",search:"Rechercher",searching:"Recherche",select:"sélectionner",navigate:"naviguer",exit:"fermer",history:"Historique de recherche",emptyHistory:"Vider l'historique de recherche",emptyResult:"Aucun résultat trouvé",loading:"Chargement des index de recherche..."},"/es/":{cancel:"Cancelar",placeholder:"Buscar",search:"Buscar",searching:"Buscando",select:"seleccionar",navigate:"navegar",exit:"cerrar",history:"Historial de búsqueda",emptyHistory:"Vaciar historial de búsqueda",emptyResult:"No se encontraron resultados",loading:"Cargando índices de búsqueda..."},"/ja/":{cancel:"キャンセル",placeholder:"検索",search:"検索",searching:"検索中",select:"選択",navigate:"切り替え",exit:"閉じる",history:"検索履歴",emptyHistory:"検索履歴をクリア",emptyResult:"結果が見つかりません",loading:"検索インデックスを読み込んでいます..."},"/tr/":{cancel:"İptal",placeholder:"Ara",search:"Ara",searching:"Aranıyor",select:"seç",navigate:"geç",exit:"kapat",history:"Arama geçmişi",emptyHistory:"Arama geçmişini temizle",emptyResult:"Sonuç bulunamadı",loading:"Arama dizinleri yükleniyor..."},"/ko/":{cancel:"취소",placeholder:"검색",search:"검색",searching:"검색 중",select:"선택",navigate:"이동",exit:"닫기",history:"검색 기록",emptyHistory:"검색 기록 지우기",emptyResult:"결과를 찾을 수 없습니다",loading:"검색 인덱스를 로드하는 중..."},"/fi/":{cancel:"Peruuta",placeholder:"Etsi",search:"Etsi",searching:"Etsitään",select:"valitaksesi",navigate:"navigoidaksesi",exit:"poistuaksesi",history:"Hakuhistoria",emptyHistory:"Tyhjennä hakuhistoria",emptyResult:"Tuloksia ei löytynyt",loading:"Ladataan hakuindeksiä..."},"/hu/":{cancel:"Mégse",placeholder:"Keresés",search:"Keresés",searching:"Keresés",select:"kiválasztáshoz",navigate:"navigáláshoz",exit:"kilépéshez",history:"Keresési előzmények",emptyHistory:"Üres keresési előzmények",emptyResult:"Nincs találat",loading:"A keresési indexek betöltése..."}},S=`
import{watch as P}from"chokidar";import{useSassPalettePlugin as z}from"vuepress-plugin-sass-palette";import{getPageExcerpt as C,fromEntries as g,keys as f,utoa as y,getLocales as A,addViteSsrNoExternal as L}from"vuepress-shared/node";import{getDirname as N,path as k,fs as x}from"@vuepress/utils";import{isArray as j,ensureEndingSlash as T}from"@vuepress/shared";import{load as I}from"cheerio";const O=e=>{const{pages:s,pluginApi:a}=e;a.plugins.some(({name:t})=>t==="vuepress-plugin-blog2")||s.some(t=>"excerpt"in t.data)||s.forEach(t=>{t.data.excerpt=C(e,t,{excerptLength:0})})},q="h2,h3,h4,h5,h6".split(","),D="header,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,li,main,ol,p,ul,caption,table,thead,tbody,th,tr,td,datalist,fieldset,form,legend,optgroup,option,select,details,dialog,menu,menuitem,summary,blockquote,tfoot".split(","),K="routerlink,a,b,abbr,bdi,bdo,cite,code,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,del,ins,button,label,legend,meter,optgroup,option,output,progress,select".split(","),M=I(""),b=(e,s=[],a=!1)=>{const t="excerpt"in e.data&&e.data.excerpt.length,i={title:e.title,contents:[]};let l=t||a,o="",r={header:"",slug:"",contents:[]},c=!0;const d=n=>{n.type==="tag"?q.includes(n.name)?(o&&l&&(r==null||r.contents.push(o.replace(/\s+/gu," ")),o=""),c?(r.contents.length&&i.contents.push(r),c=!1):i.contents.push(r),r={header:n.children.map(p=>p.type==="text"?p.data:"").join("").trim(),slug:n.attribs.id,contents:[]}):D.includes(n.name)?(o&&l&&(r==null||r.contents.push(o.replace(/\s+/gu," ")),o=""),n.childNodes.forEach(d)):K.includes(n.name)&&n.childNodes.forEach(d):n.type==="text"?o+=n.data.trim()?n.data:"":t&&!a&&n.type==="comment"&&n.data.trim()==="more"&&(l=!1)},u=M.parseHTML(e.contentRendered),v=g(s.map(({getter:n},p)=>{const m=n(e);return j(m)?[p.toString(),m]:m?[p.toString(),[m]]:null}).filter(n=>n!==null));return!(u!=null&&u.length)&&!f(v).length?null:(u==null||u.forEach(n=>{d(n)}),l&&o&&(r==null||r.contents.push(o)),r.contents.length&&i.contents.push(r),{...i,...f(v).length?{customFields:v}:{}})},R=(e,s)=>{const a=e.pages.map(t=>{const i=b(t,s.customFields,s.indexContent);return i?{path:t.path,index:i,localePath:t.pathLocale}:null}).filter(t=>t!==null);return g(f({"/":{},...e.options.locales}).map(t=>[t,g(a.filter(i=>i.localePath===t).map(i=>[i.path,i.index]))]))},H=N(import.meta.url),E=T(k.resolve(H,"../client/")),F=k.resolve(H,"../worker/index.js"),U=async(e,s)=>{const a=e.dir.dest(s.worker||"search-pro.worker.js"),t=await x.readFile(F,"utf8");await x.ensureDir(k.dirname(a)),await x.writeFile(a,t.replace("SEARCH_PRO_INDEX",`"${y(JSON.stringify(R(e,s)))}"`))},V={"/en/":{cancel:"Cancel",placeholder:"Search",search:"Search",searching:"Searching",select:"to select",navigate:"to navigate",exit:"to exit",history:"Search History",emptyHistory:"Empty Search History",emptyResult:"No results found",loading:"Loading search indexes..."},"/zh/":{cancel:"取消",placeholder:"搜索",search:"搜索",searching:"搜索中",select:"选择",navigate:"切换",exit:"关闭",history:"搜索历史",emptyHistory:"无搜索历史",emptyResult:"没有找到结果",loading:"正在加载搜索索引..."},"/zh-tw/":{cancel:"取消",placeholder:"搜索",search:"搜素",searching:"搜索中",select:"選擇",navigate:"切換",exit:"關閉",history:"搜索歷史",emptyHistory:"無搜索歷史",emptyResult:"沒有找到結果",loading:"正在加載搜索索引..."},"/de/":{cancel:"Abbrechen",placeholder:"Suche",search:"Suche",searching:"Suche",select:"auswählen",navigate:"wechseln",exit:"schließen",history:"Suchverlauf",emptyHistory:"Suchverlauf leeren",emptyResult:"Keine Ergebnisse gefunden",loading:"Suchindex wird geladen..."},"/de-at/":{cancel:"Abbrechen",placeholder:"Suche",search:"Suche",searching:"Suche",select:"auswählen",navigate:"wechseln",exit:"schließen",history:"Suchverlauf",emptyHistory:"Suchverlauf leeren",emptyResult:"Keine Ergebnisse gefunden",loading:"Suchindex wird geladen..."},"/vi/":{cancel:"Hủy",placeholder:"Tìm kiếm",search:"Tìm kiếm",searching:"Đang tìm kiếm",select:"chọn",navigate:"chuyển",exit:"đóng",history:"Lịch sử tìm kiếm",emptyHistory:"Xóa lịch sử tìm kiếm",emptyResult:"Không tìm thấy kết quả",loading:"Đang tải chỉ mục tìm kiếm..."},"/uk/":{cancel:"Скасувати",placeholder:"Пошук",search:"Пошук",searching:"Пошук",select:"вибрати",navigate:"перейти",exit:"закрити",history:"Історія пошуку",emptyHistory:"Очистити історію пошуку",emptyResult:"Нічого не знайдено",loading:"Завантаження пошукових індексів..."},"/ru/":{cancel:"Отмена",placeholder:"Поиск",search:"Поиск",searching:"Поиск",select:"выбрать",navigate:"переключить",exit:"закрыть",history:"История поиска",emptyHistory:"Очистить историю поиска",emptyResult:"Ничего не найдено",loading:"Загрузка поисковых индексов..."},"/br/":{cancel:"Cancelar",placeholder:"Pesquisar",search:"Pesquisar",searching:"Pesquisando",select:"selecionar",navigate:"navegar",exit:"fechar",history:"Histórico de pesquisa",emptyHistory:"Limpar histórico de pesquisa",emptyResult:"Nenhum resultado encontrado",loading:"Carregando índices de pesquisa..."},"/pl/":{cancel:"Anuluj",placeholder:"Szukaj",search:"Szukaj",searching:"Szukanie",select:"wybierz",navigate:"przejdź",exit:"zamknij",history:"Historia wyszukiwania",emptyHistory:"Wyczyść historię wyszukiwania",emptyResult:"Nie znaleziono wyników",loading:"Ładowanie indeksów wyszukiwania..."},"/sk/":{cancel:"Zrušiť",placeholder:"Hľadať",search:"Hľadať",searching:"Hľadanie",select:"vybrať",navigate:"prepnúť",exit:"zavrieť",history:"História vyhľadávania",emptyHistory:"Vymazať históriu vyhľadávania",emptyResult:"Nenašli sa žiadne výsledky",loading:"Načítavajú sa vyhľadávacie indexy..."},"/fr/":{cancel:"Annuler",placeholder:"Rechercher",search:"Rechercher",searching:"Recherche",select:"sélectionner",navigate:"naviguer",exit:"fermer",history:"Historique de recherche",emptyHistory:"Vider l'historique de recherche",emptyResult:"Aucun résultat trouvé",loading:"Chargement des index de recherche..."},"/es/":{cancel:"Cancelar",placeholder:"Buscar",search:"Buscar",searching:"Buscando",select:"seleccionar",navigate:"navegar",exit:"cerrar",history:"Historial de búsqueda",emptyHistory:"Vaciar historial de búsqueda",emptyResult:"No se encontraron resultados",loading:"Cargando índices de búsqueda..."},"/ja/":{cancel:"キャンセル",placeholder:"検索",search:"検索",searching:"検索中",select:"選択",navigate:"切り替え",exit:"閉じる",history:"検索履歴",emptyHistory:"検索履歴をクリア",emptyResult:"結果が見つかりません",loading:"検索インデックスを読み込んでいます..."},"/tr/":{cancel:"İptal",placeholder:"Ara",search:"Ara",searching:"Aranıyor",select:"seç",navigate:"geç",exit:"kapat",history:"Arama geçmişi",emptyHistory:"Arama geçmişini temizle",emptyResult:"Sonuç bulunamadı",loading:"Arama dizinleri yükleniyor..."},"/ko/":{cancel:"취소",placeholder:"검색",search:"검색",searching:"검색 중",select:"선택",navigate:"이동",exit:"닫기",history:"검색 기록",emptyHistory:"검색 기록 지우기",emptyResult:"결과를 찾을 수 없습니다",loading:"검색 인덱스를 로드하는 중..."},"/fi/":{cancel:"Peruuta",placeholder:"Etsi",search:"Etsi",searching:"Etsitään",select:"valitaksesi",navigate:"navigoidaksesi",exit:"poistuaksesi",history:"Hakuhistoria",emptyHistory:"Tyhjennä hakuhistoria",emptyResult:"Tuloksia ei löytynyt",loading:"Ladataan hakuindeksiä..."},"/hu/":{cancel:"Mégse",placeholder:"Keresés",search:"Keresés",searching:"Keresés",select:"kiválasztáshoz",navigate:"navigáláshoz",exit:"kilépéshez",history:"Keresési előzmények",emptyHistory:"Üres keresési előzmények",emptyResult:"Nincs találat",loading:"A keresési indexek betöltése..."},"/id/":{cancel:"Batal",placeholder:"Cari sesuatu 🔎",search:"Cari",searching:"Sedang mencari",select:"pilih",navigate:"navigasi",exit:"keluar",history:"Riwayat Penelusuran",emptyHistory:"Tidak ada riwayat penelusuran",emptyResult:"Hasil penelusuran tidak tersedia",loading:"Memuat indeks penelusuran..."}},S=`
if (import.meta.webpackHot) {

@@ -13,8 +13,8 @@ import.meta.webpackHot.accept()

}
`;let h=null;const b=async(e,s)=>{if(e.env.isDev){const a=R(e,s);h=a;const t=`export const database = "${y(JSON.stringify(a))}";
`;let h=null;const w=async(e,s)=>{if(e.env.isDev){const a=R(e,s);h=a;const t=`export const database = "${y(JSON.stringify(a))}";
${S}
`;await e.writeTemp("search-pro/database.js",t)}},_=async(e,s,a)=>{if(h){const t=a.replace(/^pages\//,"").replace(/\/index\.html\.vue/,"/readme.md").replace(/\.html\.vue/,".md"),{env:i,pages:l,writeTemp:o}=e,r=l.find(({filePathRelative:c})=>(c==null?void 0:c.toLowerCase())===t.toLowerCase());if(r){const c=w(r,s.customFields,s.indexContent);if(c){h[r.pathLocale][r.path]=c;let d=`export const database = "${y(JSON.stringify(h))}"
`;i.isDev&&(d+=S),await o("search-pro/database.js",d);return}}}await b(e,s)},$=async(e,s,a)=>{if(h){const t=a.replace(/^pages\//,"").replace(/\/index\.html\.vue/,"/readme.md").replace(/\.html\.vue/,".md"),{env:i,pages:l,writeTemp:o}=e,r=l.find(({filePathRelative:c})=>(c==null?void 0:c.toLowerCase())===t.toLowerCase());if(r){delete h[r.pathLocale][r.path];let c=`export const database = "${y(JSON.stringify(h))}"
`;i.isDev&&(c+=S),await o("search-pro/database.js",c);return}}await b(e,s)},B=e=>s=>(z(s,{id:"hope"}),{name:"vuepress-plugin-search-pro",alias:{"vuepress-plugin-search-pro/result":`${E}components/SearchResult.js`},define:{SEARCH_PRO_CUSTOM_FIELDS:g((e.customFields||[]).map(({formatter:a},t)=>a?[t.toString(),a]:null).filter(a=>a!==null)),SEARCH_PRO_LOCALES:A({app:s,name:"search-pro",config:e.locales,default:V}),SEARCH_PRO_OPTIONS:{delay:e.delay||300,historyCount:e.historyCount||5,hotKeys:e.hotKeys||[{key:"k",ctrl:!0}],worker:e.worker||"search-pro.worker.js"}},clientConfigFile:`${E}config.js`,extendsBundlerOptions:(a,t)=>{L(a,t,["fflate","vuepress-shared"])},onInitialized:a=>T(a),onPrepared:a=>b(a,e),onWatched:(a,t)=>{if("hotReload"in e?e.hotReload:a.env.isDebug){const i=P("pages/**/*.vue",{cwd:a.dir.temp(),ignoreInitial:!0});i.on("add",l=>{_(a,e,l)}),i.on("change",l=>{_(a,e,l)}),i.on("unlink",l=>{$(a,e,l)}),t.push(i)}},onGenerated:a=>U(a,e)});export{B as searchProPlugin};
`;await e.writeTemp("search-pro/database.js",t)}},_=async(e,s,a)=>{if(h){const t=a.replace(/^pages\//,"").replace(/\/index\.html\.vue/,"/readme.md").replace(/\.html\.vue/,".md"),{env:i,pages:l,writeTemp:o}=e,r=l.find(({filePathRelative:c})=>(c==null?void 0:c.toLowerCase())===t.toLowerCase());if(r){const c=b(r,s.customFields,s.indexContent);if(c){h[r.pathLocale][r.path]=c;let d=`export const database = "${y(JSON.stringify(h))}"
`;i.isDev&&(d+=S),await o("search-pro/database.js",d);return}}}await w(e,s)},$=async(e,s,a)=>{if(h){const t=a.replace(/^pages\//,"").replace(/\/index\.html\.vue/,"/readme.md").replace(/\.html\.vue/,".md"),{env:i,pages:l,writeTemp:o}=e,r=l.find(({filePathRelative:c})=>(c==null?void 0:c.toLowerCase())===t.toLowerCase());if(r){delete h[r.pathLocale][r.path];let c=`export const database = "${y(JSON.stringify(h))}"
`;i.isDev&&(c+=S),await o("search-pro/database.js",c);return}}await w(e,s)},B=e=>s=>(z(s,{id:"hope"}),{name:"vuepress-plugin-search-pro",alias:{"vuepress-plugin-search-pro/result":`${E}components/SearchResult.js`},define:{SEARCH_PRO_CUSTOM_FIELDS:g((e.customFields||[]).map(({formatter:a},t)=>a?[t.toString(),a]:null).filter(a=>a!==null)),SEARCH_PRO_LOCALES:A({app:s,name:"search-pro",config:e.locales,default:V}),SEARCH_PRO_OPTIONS:{delay:e.delay||300,historyCount:e.historyCount||5,hotKeys:e.hotKeys||[{key:"k",ctrl:!0}],worker:e.worker||"search-pro.worker.js"}},clientConfigFile:`${E}config.js`,extendsBundlerOptions:(a,t)=>{L(a,t,["fflate","vuepress-shared"])},onInitialized:a=>O(a),onPrepared:a=>w(a,e),onWatched:(a,t)=>{if("hotReload"in e?e.hotReload:a.env.isDebug){const i=P("pages/**/*.vue",{cwd:a.dir.temp(),ignoreInitial:!0});i.on("add",l=>{_(a,e,l)}),i.on("change",l=>{_(a,e,l)}),i.on("unlink",l=>{$(a,e,l)}),t.push(i)}},onGenerated:a=>U(a,e)});export{B as searchProPlugin};
//# sourceMappingURL=index.js.map
{
"name": "vuepress-plugin-search-pro",
"version": "2.0.0-beta.181",
"version": "2.0.0-beta.182",
"description": "A advanced search plugin in client",

@@ -52,4 +52,4 @@ "keywords": [

"vue-router": "^4.1.6",
"vuepress-plugin-sass-palette": "2.0.0-beta.181",
"vuepress-shared": "2.0.0-beta.181"
"vuepress-plugin-sass-palette": "2.0.0-beta.182",
"vuepress-shared": "2.0.0-beta.182"
},

@@ -66,4 +66,4 @@ "devDependencies": {

"vuepress-webpack": "2.0.0-beta.60",
"vuepress-plugin-sass-palette": "2.0.0-beta.181",
"vuepress-shared": "2.0.0-beta.181"
"vuepress-plugin-sass-palette": "2.0.0-beta.182",
"vuepress-shared": "2.0.0-beta.182"
},

@@ -70,0 +70,0 @@ "peerDependenciesMeta": {

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