Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

atomic-algolia

Package Overview
Dependencies
Maintainers
1
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.2 to 0.3.3

2

lib/update.js

@@ -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}`)

2

lib/utils/calculateOperations.js

@@ -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",

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