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 1.1.1 to 1.1.2

docs/img/docsearch-logo.png

10

CHANGELOG.md

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

<a name="1.1.2"></a>
## [1.1.2](https://github.com/algolia/docsearch/compare/v1.1.1...v1.1.2) (2016-03-24)
### Features
* **website:** React :raised_hands:, popped out on the top with React ([db9c100](https://github.com/algolia/docsearch/commit/db9c100))
<a name="1.1.1"></a>

@@ -2,0 +12,0 @@ ## [1.1.1](https://github.com/algolia/docsearch/compare/v1.1.0...v1.1.1) (2016-03-16)

@@ -48,2 +48,4 @@ 'use strict';

* Group all objects of a collection by the value of the specified attribute
* If the attribute is a string, use the lowercase form.
*
* eg.

@@ -83,2 +85,5 @@ * groupBy([

var key = item[property];
if (typeof key === 'string') {
key = key.toLowerCase();
}
if (!newCollection[key]) {

@@ -85,0 +90,0 @@ newCollection[key] = [];

2

dist/npm/src/lib/version.js

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

});
exports['default'] = '1.1.1';
exports['default'] = '1.1.2';
module.exports = exports['default'];

@@ -97,3 +97,3 @@ ---

contains all the color, breakpoints and size definitions while
[`_main.scss`][19]
[`main.scss`][19]
holds the structure of the display.

@@ -179,3 +179,3 @@

[18]: https://github.com/algolia/docsearch/blob/master/src/styles/_variables.scss
[19]: https://github.com/algolia/docsearch/blob/master/src/styles/_main.scss
[19]: https://github.com/algolia/docsearch/blob/master/src/styles/main.scss
[20]: https://github.com/algolia/autocomplete.js

@@ -182,0 +182,0 @@ [21]: https://github.com/algolia/autocomplete.js

{
"name": "docsearch.js",
"version": "1.1.1",
"version": "1.1.2",
"description": "Add an autocomplete dropdown to your documentation",

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

"algoliasearch": "^3.9.2",
"autocomplete.js": "^0.16.0",
"autocomplete.js": "^0.17.2",
"hogan.js": "^3.0.2",

@@ -70,0 +70,0 @@ "npm-zepto": "^1.1.7",

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

# DocSearch
![DocSearch](docs/img/docsearch-logo.png)

@@ -135,3 +135,3 @@ The easiest way to add search to your documentation. For free.

contains all the color, breakpoints and size definitions while
[`_main.scss`][19]
[`main.scss`][19]
holds the structure of the display.

@@ -272,3 +272,3 @@

[18]: https://github.com/algolia/docsearch/blob/master/src/styles/_variables.scss
[19]: https://github.com/algolia/docsearch/blob/master/src/styles/_main.scss
[19]: https://github.com/algolia/docsearch/blob/master/src/styles/main.scss
[20]: https://github.com/algolia/autocomplete.js

@@ -275,0 +275,0 @@ [21]: https://github.com/algolia/autocomplete.js

@@ -38,2 +38,4 @@ import $ from 'npm-zepto';

* Group all objects of a collection by the value of the specified attribute
* If the attribute is a string, use the lowercase form.
*
* eg.

@@ -73,2 +75,5 @@ * groupBy([

let key = item[property];
if (typeof key === 'string') {
key = key.toLowerCase();
}
if (!newCollection[key]) {

@@ -75,0 +80,0 @@ newCollection[key] = [];

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

export default '1.1.1';
export default '1.1.2';

@@ -124,2 +124,20 @@ /* eslint-env mocha */

});
it('group by key considering lowercase forms', () => {
// Given
let input = [
{name: 'Tim', category: 'devs'},
{name: 'Vincent', category: 'DeVs'}
];
// When
let actual = utils.groupBy(input, 'category');
// Expect
expect(actual).toEqual({
devs: [
{name: 'Tim', category: 'devs'},
{name: 'Vincent', category: 'DeVs'}
]
});
});
it('throw an error if key does not exist', () => {

@@ -126,0 +144,0 @@ // Given

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

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