atomic-algolia
Advanced tools
Comparing version 0.3.10 to 0.3.11
@@ -5,4 +5,14 @@ var idsFromIndex = require("./idsFromIndex") | ||
module.exports = function calculateOperations(newIndex, oldIndex) { | ||
var newIndexIds = idsFromIndex(newIndex) | ||
var oldIndexIds = idsFromIndex(oldIndex) | ||
var newIndexIds = [] | ||
var oldIndexIds = [] | ||
if (Array.isArray(newIndex)) { | ||
newIndexIds = idsFromIndex(newIndex) | ||
} | ||
if (Array.isArray(oldIndex)) { | ||
oldIndexIds = idsFromIndex(oldIndex) | ||
} | ||
var existingHits = [] | ||
@@ -9,0 +19,0 @@ var operations = {ignore: [], update: [], add: newIndexIds, delete: oldIndexIds} |
{ | ||
"name": "atomic-algolia", | ||
"version": "0.3.10", | ||
"version": "0.3.11", | ||
"description": "An NPM package for running atomic updates to an Algolia index", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
17214
231