From a956f55e0c40c60ac1198b2bbbae71f99616559d Mon Sep 17 00:00:00 2001 From: JelteMX Date: Fri, 10 Aug 2018 11:13:39 +0200 Subject: [PATCH] Update Algolia task: added timeout --- _gulp/algolia.js | 4 +++- package.json | 2 +- yarn.lock | 6 +++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/_gulp/algolia.js b/_gulp/algolia.js index 26079f2b69a..f5d00803699 100644 --- a/_gulp/algolia.js +++ b/_gulp/algolia.js @@ -241,7 +241,9 @@ const indexFiles = (opts) => { if (DEBUG) { return; } - const client = algoliasearch(opts.algolia_app_id, process.env.ALGOLIA_WRITE_KEY); + const client = algoliasearch(opts.algolia_app_id, process.env.ALGOLIA_WRITE_KEY, { + timeout: 60000 + }); const algoliaIndex = client.initIndex(opts.algolia_index); log(`Create settings for ${opts.algolia_index}`); algoliaIndex.setSettings({ diff --git a/package.json b/package.json index de259b3d566..96cba2c7124 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ }, "license": "CC BY 4.0.", "devDependencies": { - "algoliasearch": "^3.24.3", + "algoliasearch": "^3.30.0", "async": "^2.5.0", "bluebird": "^3.5.0", "browser-sync": "^2.18.13", diff --git a/yarn.lock b/yarn.lock index 601c45cfd76..11df3071e73 100644 --- a/yarn.lock +++ b/yarn.lock @@ -62,9 +62,9 @@ ajv@^5.1.0: fast-json-stable-stringify "^2.0.0" json-schema-traverse "^0.3.0" -algoliasearch@^3.24.3: - version "3.24.12" - resolved "https://registry.yarnpkg.com/algoliasearch/-/algoliasearch-3.24.12.tgz#7a0d133b7c80b8543319fe5cdfd6398c1e74e204" +algoliasearch@^3.30.0: + version "3.30.0" + resolved "https://registry.yarnpkg.com/algoliasearch/-/algoliasearch-3.30.0.tgz#355585e49b672e5f71d45b9c2b371ecdff129cd1" dependencies: agentkeepalive "^2.2.0" debug "^2.6.8"