Socket
Socket
Sign inDemoInstall

atomic-algolia

Package Overview
Dependencies
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atomic-algolia - npm Package Compare versions

Comparing version 0.3.16 to 0.3.17

11

lib/utils/getRemoteIndex.js

@@ -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)) {

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