Socket
Socket
Sign inDemoInstall

@algolia/autocomplete-preset-algolia

Package Overview
Dependencies
Maintainers
62
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@algolia/autocomplete-preset-algolia - npm Package Compare versions

Comparing version 1.0.0-alpha.37 to 1.0.0-alpha.38

2

dist/esm/version.d.ts

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

export declare const version = "1.0.0-alpha.37";
export declare const version = "1.0.0-alpha.38";

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

export var version = '1.0.0-alpha.37';
export var version = '1.0.0-alpha.38';

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

/*! @algolia/autocomplete-preset-algolia 1.0.0-alpha.37 | MIT License | © Algolia, Inc. and contributors | https://github.com/algolia/autocomplete.js */
/*! @algolia/autocomplete-preset-algolia 1.0.0-alpha.38 | MIT License | © Algolia, Inc. and contributors | https://github.com/algolia/autocomplete.js */
(function (global, factory) {

@@ -200,3 +200,3 @@ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :

var version = '1.0.0-alpha.37';
var version = '1.0.0-alpha.38';

@@ -203,0 +203,0 @@ function search(_ref) {

@@ -1,3 +0,3 @@

/*! @algolia/autocomplete-preset-algolia 1.0.0-alpha.37 | MIT License | © Algolia, Inc. and contributors | https://github.com/algolia/autocomplete.js */
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["@algolia/autocomplete-preset-algolia"]={})}(this,(function(e){"use strict";function t(e,t){return t.split(".").reduce((function(e,t){return e&&e[t]}),e)}var i="__aa-highlight__",r="__/aa-highlight__",n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function u(e){var t=e.highlightedValue,u=e.ignoreEscape,o=void 0===u?[]:u,a=new RegExp("[".concat(Object.keys(n).filter((function(e){return-1===o.indexOf(e)})).join(""),"]"),"g"),l=RegExp(a.source);function c(e){return l.test(e)?e.replace(a,(function(e){return n[e]})):e}var s=t.split(i),g=s.shift(),h=g?[{value:c(g),isHighlighted:!1}]:[];return s.forEach((function(e){var t=e.split(r);h.push({value:c(t[0]),isHighlighted:!0}),""!==t[1]&&h.push({value:c(t[1]),isHighlighted:!1})})),h}function o(e){var i=e.hit,r=e.attribute,n=e.ignoreEscape,o="_highlightResult.".concat(r,".value"),a=t(i,o);return"string"!=typeof a&&(a=t(i,r)||""),u({highlightedValue:a,ignoreEscape:n})}function a(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function l(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,r)}return i}function c(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?l(Object(i),!0).forEach((function(t){a(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function s(e){return e.some((function(e){return e.isHighlighted}))?e.map((function(e){return c(c({},e),{},{isHighlighted:!e.isHighlighted})})):e.map((function(e){return c(c({},e),{},{isHighlighted:!1})}))}function g(e){var i=e.hit,r=e.attribute,n=e.ignoreEscape,o="_snippetResult.".concat(r,".value"),a=t(i,o);return"string"!=typeof a&&(a=t(i,r)||""),u({highlightedValue:a,ignoreEscape:n})}function h(e){var t=e.searchClient,n=e.queries;return"function"==typeof t.addAlgoliaAgent&&t.addAlgoliaAgent("autocomplete-core","1.0.0-alpha.37"),t.search(n.map((function(e){var t=e.indexName,n=e.query,u=e.params;return{indexName:t,query:n,params:c({hitsPerPage:5,highlightPreTag:i,highlightPostTag:r},u)}})))}e.getAlgoliaHits=function(e){return h({searchClient:e.searchClient,queries:e.queries}).then((function(e){return e.results.map((function(e){return e.hits.map((function(t){return c(c({},t),{},{__autocomplete_indexName:e.index,__autocomplete_queryID:e.queryID})}))}))}))},e.getAlgoliaResults=function(e){return h({searchClient:e.searchClient,queries:e.queries}).then((function(e){return e.results}))},e.parseAlgoliaHitHighlight=o,e.parseAlgoliaHitReverseHighlight=function(e){return s(o(e))},e.parseAlgoliaHitReverseSnippet=function(e){return s(g(e))},e.parseAlgoliaHitSnippet=g,Object.defineProperty(e,"__esModule",{value:!0})}));
/*! @algolia/autocomplete-preset-algolia 1.0.0-alpha.38 | MIT License | © Algolia, Inc. and contributors | https://github.com/algolia/autocomplete.js */
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["@algolia/autocomplete-preset-algolia"]={})}(this,(function(e){"use strict";function t(e,t){return t.split(".").reduce((function(e,t){return e&&e[t]}),e)}var i="__aa-highlight__",r="__/aa-highlight__",n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function u(e){var t=e.highlightedValue,u=e.ignoreEscape,o=void 0===u?[]:u,a=new RegExp("[".concat(Object.keys(n).filter((function(e){return-1===o.indexOf(e)})).join(""),"]"),"g"),l=RegExp(a.source);function c(e){return l.test(e)?e.replace(a,(function(e){return n[e]})):e}var s=t.split(i),g=s.shift(),h=g?[{value:c(g),isHighlighted:!1}]:[];return s.forEach((function(e){var t=e.split(r);h.push({value:c(t[0]),isHighlighted:!0}),""!==t[1]&&h.push({value:c(t[1]),isHighlighted:!1})})),h}function o(e){var i=e.hit,r=e.attribute,n=e.ignoreEscape,o="_highlightResult.".concat(r,".value"),a=t(i,o);return"string"!=typeof a&&(a=t(i,r)||""),u({highlightedValue:a,ignoreEscape:n})}function a(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function l(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,r)}return i}function c(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?l(Object(i),!0).forEach((function(t){a(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function s(e){return e.some((function(e){return e.isHighlighted}))?e.map((function(e){return c(c({},e),{},{isHighlighted:!e.isHighlighted})})):e.map((function(e){return c(c({},e),{},{isHighlighted:!1})}))}function g(e){var i=e.hit,r=e.attribute,n=e.ignoreEscape,o="_snippetResult.".concat(r,".value"),a=t(i,o);return"string"!=typeof a&&(a=t(i,r)||""),u({highlightedValue:a,ignoreEscape:n})}function h(e){var t=e.searchClient,n=e.queries;return"function"==typeof t.addAlgoliaAgent&&t.addAlgoliaAgent("autocomplete-core","1.0.0-alpha.38"),t.search(n.map((function(e){var t=e.indexName,n=e.query,u=e.params;return{indexName:t,query:n,params:c({hitsPerPage:5,highlightPreTag:i,highlightPostTag:r},u)}})))}e.getAlgoliaHits=function(e){return h({searchClient:e.searchClient,queries:e.queries}).then((function(e){return e.results.map((function(e){return e.hits.map((function(t){return c(c({},t),{},{__autocomplete_indexName:e.index,__autocomplete_queryID:e.queryID})}))}))}))},e.getAlgoliaResults=function(e){return h({searchClient:e.searchClient,queries:e.queries}).then((function(e){return e.results}))},e.parseAlgoliaHitHighlight=o,e.parseAlgoliaHitReverseHighlight=function(e){return s(o(e))},e.parseAlgoliaHitReverseSnippet=function(e){return s(g(e))},e.parseAlgoliaHitSnippet=g,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=index.production.js.map
{
"name": "@algolia/autocomplete-preset-algolia",
"description": "Presets for building autocomplete experiences with Algolia.",
"version": "1.0.0-alpha.37",
"version": "1.0.0-alpha.38",
"license": "MIT",

@@ -34,3 +34,3 @@ "homepage": "https://github.com/algolia/autocomplete.js",

"dependencies": {
"@algolia/autocomplete-shared": "1.0.0-alpha.37"
"@algolia/autocomplete-shared": "1.0.0-alpha.38"
},

@@ -37,0 +37,0 @@ "devDependencies": {

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