atomic-algolia
Advanced tools
Comparing version 0.3.11 to 0.3.12
@@ -20,2 +20,6 @@ var actionAdd = require("./utils/actionAdd") | ||
throw new Error("Please provide `indexData`. A valid Javacript object or path to a JSON file.") | ||
if (typeof options === "function" && typeof cb !== "function") { | ||
cb = options | ||
} | ||
@@ -22,0 +26,0 @@ var client = algoliaSearch( |
{ | ||
"name": "atomic-algolia", | ||
"version": "0.3.11", | ||
"version": "0.3.12", | ||
"description": "An NPM package for running atomic updates to an Algolia index", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
# Algolia Atomic | ||
An NPM package for running atomic updates to an Algolia index | ||
An NPM package for running atomic updates to Algolia indices | ||
## How it works | ||
This package runs *atomic* updates to an Algolia Index. **What does that mean?** | ||
This package runs *atomic* updates to Algolia Indices. **What does that mean?** | ||
@@ -77,3 +77,3 @@ Simply put, this package reads your local index, and updates the *new* or *updated* records, while removing deleted records. | ||
``` | ||
ALGOLIA_APP_ID={{ YOUR_APP_ID}} ALGOLIA_ADMIN_KEY={{ YOUR_ADMIN_KEY }} YOUR_SCRIPT.js | ||
ALGOLIA_APP_ID={{ YOUR_APP_ID}} ALGOLIA_ADMIN_KEY={{ YOUR_ADMIN_KEY }} node YOUR_SCRIPT.js | ||
``` | ||
@@ -100,3 +100,3 @@ | ||
atomicalgolia(indexName, indexPath, cb) | ||
atomicalgolia(indexName, indexData, cb) | ||
``` | ||
@@ -107,3 +107,3 @@ | ||
``` | ||
ALGOLIA_APP_ID={{ YOUR_APP_ID}} ALGOLIA_ADMIN_KEY={{ YOUR_ADMIN_KEY }} YOUR_SCRIPT.js | ||
ALGOLIA_APP_ID={{ YOUR_APP_ID}} ALGOLIA_ADMIN_KEY={{ YOUR_ADMIN_KEY }} node YOUR_SCRIPT.js | ||
``` | ||
@@ -110,0 +110,0 @@ |
17331
234