kourou 1.5.0 → 1.5.1-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -27,7 +27,7 @@ $ npm install -g kourou
27
27
  $ kourou COMMAND
28
28
  running command...
29
29
  $ kourou (--version)
30
- kourou/1.5.0 linux-x64 node-v24.20.0
30
+ kourou/1.5.1-dev.1 linux-x64 node-v24.21.0
31
31
  $ kourou --help [COMMAND]
32
32
  USAGE
33
33
  $ kourou COMMAND
@@ -62,6 +62,9 @@ class Elasticsearch7 {
62
62
  return specifications;
63
63
  }
64
64
  async createIndex(index, specifications) {
65
+ var _a;
66
+ specifications = specifications !== null && specifications !== void 0 ? specifications : {};
67
+ specifications.settings = (_a = specifications.settings) !== null && _a !== void 0 ? _a : {};
65
68
  specifications.settings.write = {
66
69
  wait_for_active_shards: 1, // Wait for at least one shard to be active before returning
67
70
  };
@@ -63,6 +63,9 @@ class Elasticsearch8 {
63
63
  return specifications;
64
64
  }
65
65
  async createIndex(index, specifications) {
66
+ var _a;
67
+ specifications = specifications !== null && specifications !== void 0 ? specifications : {};
68
+ specifications.settings = (_a = specifications.settings) !== null && _a !== void 0 ? _a : {};
66
69
  specifications.settings.write = {
67
70
  wait_for_active_shards: 1, // Wait for at least one shard to be active before returning
68
71
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kourou",
3
3
  "description": "The CLI that helps you manage your Kuzzle instances",
4
- "version": "1.5.0",
4
+ "version": "1.5.1-dev.1",
5
5
  "author": "The Kuzzle Team <support@kuzzle.io>",
6
6
  "bin": {
7
7
  "kourou": "./bin/run"