Socket
Socket
Sign inDemoInstall

svelte-algolia

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-algolia - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

4

package.json
{
"name": "svelte-algolia",
"version": "0.1.4",
"version": "0.1.5",
"description": "Algolia plugin for Svelte",

@@ -39,2 +39,2 @@ "main": "src/index.js",

}
}
}

@@ -60,2 +60,6 @@ <p align="center">

// are checked for deep-equality to discover changes
settings: {}, // an object of Algolia index settings that applies to all indices
// see https://algolia.com/doc/api-reference/settings-api-parameters
// can be overridden by a settings object passed as part of the indices array:
// indices = [{ name: `pokedex`, ..., settings: { foo: `bar` }}],
}

@@ -62,0 +66,0 @@ ```

@@ -8,2 +8,3 @@ /* eslint-disable no-console */

matchFields: [],
settings: {},
}

@@ -39,6 +40,6 @@

const updateIndex = (client, config) => async (updateObj) => {
const updateIndex = (client, config) => async (indexObj) => {
const { partialUpdates = false, matchFields: mainMatchFields } = config
const { name, getData, matchFields = mainMatchFields } = updateObj
let { settings = config.settings } = updateObj
const { name, getData, matchFields = mainMatchFields } = indexObj
let { settings = config.settings } = indexObj

@@ -53,3 +54,3 @@ const index = client.initIndex(name)

else if (!(await index.exists())) {
const { taskID } = await index.setSettings(settings || {})
const { taskID } = await index.setSettings(settings)
await index.waitTask(taskID)

@@ -56,0 +57,0 @@ }

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