svelte-algolia
Advanced tools
Comparing version 0.1.5 to 0.1.6
{ | ||
"name": "svelte-algolia", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "Algolia plugin for Svelte", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -48,9 +48,6 @@ /* eslint-disable no-console */ | ||
// if user specified any settings, apply them | ||
if (settings && (await index.exists())) await index.setSettings(settings) | ||
// if the index doesn't exist yet, applying settings (even if empty) will create it | ||
// see https://algolia.com/doc/api-client/methods/manage-indices#create-an-index | ||
else if (!(await index.exists())) { | ||
const { taskID } = await index.setSettings(settings) | ||
await index.waitTask(taskID) | ||
} | ||
const { taskID } = await index.setSettings(settings) | ||
await index.waitTask(taskID) | ||
@@ -57,0 +54,0 @@ if (partialUpdates) { |
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
11155
148