atomic-algolia
Advanced tools
Comparing version 0.3.16 to 0.3.17
@@ -26,3 +26,3 @@ "use strict"; | ||
oldIndex = _context.sent; | ||
_context.next = 8; | ||
_context.next = 9; | ||
break; | ||
@@ -33,7 +33,8 @@ | ||
_context.t0 = _context["catch"](0); | ||
throw _context.t0; | ||
case 8: | ||
case 9: | ||
return _context.abrupt("return", oldIndex); | ||
case 9: | ||
case 10: | ||
case "end": | ||
@@ -54,5 +55,5 @@ return _context.stop(); | ||
function query(index) { | ||
return new Promise(function (resolve) { | ||
return new Promise(function (resolve, reject) { | ||
index.browse("", {}, function browseDone(err, content, hits) { | ||
if (err) throw err; | ||
if (err) reject(err); | ||
@@ -59,0 +60,0 @@ if (!Array.isArray(hits)) { |
{ | ||
"name": "atomic-algolia", | ||
"version": "0.3.16", | ||
"version": "0.3.17", | ||
"description": "An NPM package for running atomic updates to an Algolia index", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -6,3 +6,3 @@ module.exports = async function getRemoteIndex(index) { | ||
} catch (err) { | ||
// do something... | ||
throw err | ||
} | ||
@@ -14,5 +14,5 @@ | ||
function query(index) { | ||
return new Promise(function(resolve) { | ||
return new Promise(function(resolve, reject) { | ||
index.browse("", {}, function browseDone(err, content, hits) { | ||
if (err) throw err | ||
if (err) reject(err); | ||
@@ -19,0 +19,0 @@ if (!Array.isArray(hits)) { |
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
192540
527