atomic-algolia
Advanced tools
Comparing version 0.3.18 to 0.3.19-alpha
@@ -50,5 +50,5 @@ "use strict"; | ||
return new Promise(function (resolve, reject) { | ||
hits = []; | ||
var hits = []; | ||
index.browse("", {}, function browseDone(err, content) { | ||
if (err) reject(err); | ||
if (err) return reject(err); | ||
content.hits.forEach(function (hit) { | ||
@@ -55,0 +55,0 @@ hit.objectID = String(hit.objectID); |
{ | ||
"name": "atomic-algolia", | ||
"version": "0.3.18", | ||
"version": "0.3.19-alpha", | ||
"description": "An NPM package for running atomic updates to an Algolia index", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
16457