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

@pagefind/default-ui

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pagefind/default-ui - npm Package Compare versions

Comparing version 1.0.4-rc0 to 1.0.4-rc1

2

package.json
{
"name": "@pagefind/default-ui",
"version": "1.0.4-rc0",
"version": "1.0.4-rc1",
"type": "module",

@@ -5,0 +5,0 @@ "main": "npm_dist/cjs/ui-core.cjs",

@@ -18,2 +18,3 @@ import PagefindSvelte from "./svelte/ui.svelte";

let bundlePath = opts.bundlePath ?? scriptBundlePath;
let pageSize = opts.pageSize ?? 5;
let resetStyles = opts.resetStyles ?? true;

@@ -29,2 +30,7 @@ let showImages = opts.showImages ?? true;

let translations = opts.translations ?? [];
// setting the param to null should disable highlighting, hence this more complicated check
let highlightQueryParamName = "pagefind-highlight";
if (opts.highlightQueryParamName !== undefined) {
highlightQueryParamName = opts.highlightQueryParamName;
}

@@ -34,2 +40,3 @@ // Remove the UI-specific config before passing it along to the Pagefind backend

delete opts["bundlePath"];
delete opts["pageSize"];
delete opts["resetStyles"];

@@ -55,2 +62,3 @@ delete opts["showImages"];

base_path: bundlePath,
page_size: pageSize,
reset_styles: resetStyles,

@@ -66,2 +74,3 @@ show_images: showImages,

translations,
highlight_query_param_name: highlightQueryParamName,
pagefind_options: opts,

@@ -78,2 +87,6 @@ },

}
destroy() {
this._pfs.$destroy();
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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