atomic-algolia
Advanced tools
Comparing version 0.3.2 to 0.3.3
@@ -34,2 +34,4 @@ var actionAdd = require("./utils/actionAdd") | ||
console.log(operations) | ||
if (options.verbose === true) { | ||
@@ -36,0 +38,0 @@ console.log(title, `Adding ${operations.add.length} hits to ${indexName}`) |
@@ -72,3 +72,3 @@ var idsFromIndex = require("./idsFromIndex") | ||
var oldHit = oldIndex.filter(function(hit) { | ||
return parseInt(hit.objectID) === id | ||
return String(hit.objectID) === String(id) | ||
}) | ||
@@ -75,0 +75,0 @@ |
@@ -22,3 +22,3 @@ module.exports = async function getRemoteIndex(index) { | ||
content.hits.forEach(function(hit) { | ||
hit.objectID = parseInt(hit.objectID) | ||
hit.objectID = String(hit.objectID) | ||
hits.push(hit) | ||
@@ -25,0 +25,0 @@ }) |
@@ -8,3 +8,3 @@ module.exports = function idsFromIndex(index) { | ||
if (hit.objectID !== null && hit.objectID !== undefined) { | ||
var id = parseInt(hit.objectID) | ||
var id = String(hit.objectID) | ||
return hits.concat(id) | ||
@@ -11,0 +11,0 @@ } |
{ | ||
"name": "atomic-algolia", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"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
17126
226