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

docsearch.js

Package Overview
Dependencies
Maintainers
5
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docsearch.js - npm Package Compare versions

Comparing version 2.2.1 to 2.3.0

6

CHANGELOG.md

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

<a name="2.3.0"></a>
# [2.3.0](https://github.com/algolia/docsearch/compare/v2.2.1...v2.3.0) (2017-02-08)
<a name="2.2.1"></a>

@@ -2,0 +8,0 @@ ## [2.2.1](https://github.com/algolia/docsearch/compare/v2.2.0...v2.2.1) (2017-01-11)

2

dist/npm/src/lib/DocSearch.js

@@ -271,3 +271,3 @@ 'use strict';

var subcategory = _utilsJs2['default'].getHighlightedValue(hit, 'lvl1') || category;
var displayTitle = _utilsJs2['default'].compact([_utilsJs2['default'].getHighlightedValue(hit, 'lvl2') || subcategory, _utilsJs2['default'].getHighlightedValue(hit, 'lvl3'), _utilsJs2['default'].getHighlightedValue(hit, 'lvl4'), _utilsJs2['default'].getHighlightedValue(hit, 'lvl5'), _utilsJs2['default'].getHighlightedValue(hit, 'lvl6')]).join('<span class="aa-suggestion-title-separator"> › </span>');
var displayTitle = _utilsJs2['default'].compact([_utilsJs2['default'].getHighlightedValue(hit, 'lvl2') || subcategory, _utilsJs2['default'].getHighlightedValue(hit, 'lvl3'), _utilsJs2['default'].getHighlightedValue(hit, 'lvl4'), _utilsJs2['default'].getHighlightedValue(hit, 'lvl5'), _utilsJs2['default'].getHighlightedValue(hit, 'lvl6')]).join('<span class="aa-suggestion-title-separator" aria-hidden="true"> › </span>');
var text = _utilsJs2['default'].getSnippetedValue(hit, 'content');

@@ -274,0 +274,0 @@ var isTextOrSubcatoryNonEmpty = subcategory && subcategory !== '' || displayTitle && displayTitle !== '';

@@ -6,3 +6,3 @@ 'use strict';

});
exports['default'] = '2.2.1';
exports['default'] = '2.3.0';
module.exports = exports['default'];
{
"name": "docsearch.js",
"version": "2.2.1",
"version": "2.3.0",
"description": "Add an autocomplete dropdown to your documentation",

@@ -65,3 +65,3 @@ "main": "dist/npm/index.js",

"algoliasearch": "^3.18.0",
"autocomplete.js": "^0.21.8",
"autocomplete.js": "^0.25.0",
"hogan.js": "^3.0.2",

@@ -68,0 +68,0 @@ "to-factory": "^1.0.0"

@@ -295,3 +295,3 @@ ![DocSearch](docs/img/docsearch-logo.png)

[22]: https://github.com/algolia/autocomplete.js#options
[23]: https://www.algolia.com/doc/ruby#full-text-search-parameters
[23]: https://www.algolia.com/doc/api-client/javascript/parameters/#overview
[24]: https://nodejs.org/en/

@@ -298,0 +298,0 @@ [25]: https://jekyllrb.com/

@@ -206,3 +206,3 @@ import Hogan from 'hogan.js';

utils.getHighlightedValue(hit, 'lvl6')
]).join('<span class="aa-suggestion-title-separator"> › </span>');
]).join('<span class="aa-suggestion-title-separator" aria-hidden="true"> › </span>');
const text = utils.getSnippetedValue(hit, 'content');

@@ -209,0 +209,0 @@ const isTextOrSubcatoryNonEmpty = (subcategory && subcategory !== '') ||

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

export default '2.2.1';
export default '2.3.0';

@@ -739,3 +739,3 @@ /* eslint-env mocha */

let separator = '<span class="aa-suggestion-title-separator"> › </span>';
let separator = '<span class="aa-suggestion-title-separator" aria-hidden="true"> › </span>';
// Then

@@ -782,3 +782,3 @@ expect(actual[0].title).toEqual('Geo-search' + separator + 'Foo' + separator + 'Bar' + separator + 'Baz');

let separator = '<span class="aa-suggestion-title-separator"> › </span>';
let separator = '<span class="aa-suggestion-title-separator" aria-hidden="true"> › </span>';
// Then

@@ -785,0 +785,0 @@ let expected = '<mark>Geo-search</mark>' + separator + '<mark>Foo</mark>' + separator +

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

import {join} from 'path';
import path from 'path';

@@ -12,3 +12,8 @@ export default {

loaders: [{
test: /\.js$/, exclude: /node_modules/, loader: 'babel'
test: /\.js$/,
include: [
path.resolve(__dirname, 'src'),
path.resolve(__dirname, 'dev'),
path.resolve(__dirname, 'scripts')
], loader: 'babel'
}]

@@ -25,8 +30,8 @@ },

resolve: {
fallback: [join(__dirname, '..', 'node_modules')]
fallback: [path.join(__dirname, '..', 'node_modules')]
},
// same issue, for loaders like babel
resolveLoader: {
fallback: [join(__dirname, '..', 'node_modules')]
fallback: [path.join(__dirname, '..', 'node_modules')]
}
};

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 too big to display

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 too big to display

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