algoliasearch
Advanced tools
Comparing version 3.0.6 to 3.0.7
{ | ||
"name": "algoliasearch", | ||
"version": "3.0.6", | ||
"version": "3.0.7", | ||
"homepage": "https://github.com/algolia/algoliasearch-client-js", | ||
@@ -5,0 +5,0 @@ "authors": [ |
@@ -6,4 +6,13 @@ var algoliasearch = require('./'); | ||
index.search('som').then(function(content) { | ||
console.log(content); | ||
// index.search('som').then(function(content) { | ||
// console.log(content) | ||
// }).catch(function(err) { | ||
// console.log(err) | ||
// }); | ||
index.getObjects(["2659900", "2661330"]).then(function() { | ||
console.log(arguments); | ||
}).catch(function(err) { | ||
console.log(err.stack); | ||
}); |
{ | ||
"name": "algoliasearch", | ||
"version": "3.0.6", | ||
"version": "3.0.7", | ||
"description": "AlgoliaSearch API JavaScript client", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -37,3 +37,3 @@ # Algolia Search API Client for JavaScript | ||
When not using any module loader, it will export an `alogliasearch` method in the `window` object. | ||
When not using any module loader, it will export an `algoliasearch` method in the `window` object. | ||
@@ -78,6 +78,6 @@ If you are using the V2 of our JavaScript client and want to upgrade, please read [our migration guide](https://github.com/algolia/algoliasearch-client-js/wiki/Migration-guide-from-2.x.x-to-3.x.x). | ||
```sh | ||
npm install alogliasearch --save | ||
npm install algoliasearch --save | ||
``` | ||
We are [browserify](http://browserify.org/)able. | ||
We are [browserify](http://browserify.org/)able and [webpack](http://webpack.github.io/) friendly. | ||
@@ -84,0 +84,0 @@ #### Bower |
@@ -886,2 +886,10 @@ module.exports = AlgoliaSearch; | ||
search: function(query, args, callback) { | ||
// warn V2 users on how to search | ||
if (typeof query === 'function' && typeof args === 'object' || | ||
typeof callback === 'object') { | ||
// .search(query, params, cb) | ||
// .search(cb, params) | ||
throw new Error('AlgoliaSearch: index.search usage is index.search(query, params, cb)'); | ||
} | ||
if (arguments.length === 0 || typeof query === 'function') { | ||
@@ -888,0 +896,0 @@ // .search(), .search(cb) |
@@ -1,1 +0,1 @@ | ||
"3.0.6" | ||
"3.0.7" |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
222872
115
4654
4
85
11
19