Socket
Socket
Sign inDemoInstall

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.10 to 0.3.11

14

lib/utils/calculateOperations.js

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

2

package.json
{
"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",

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