Package.describe({
  name: 'easysearch:elasticsearch',
  summary: "Elasticsearch Engine for EasySearch",
  version: "2.1.1",
  git: "https://github.com/matteodem/meteor-easy-search.git",
  documentation: 'README.md'
});

Npm.depends({
  'elasticsearch': '8.2.0'
});

Package.onUse(function(api) {
  api.versionsFrom('1.4.2');

  // Dependencies
  api.use(['check', 'ecmascript']);
  api.use(['easysearch:core@2.1.0', 'erasaur:meteor-lodash@4.0.0']);

  api.addFiles([
    'lib/data-syncer.js',
    'lib/engine.js',
  ]);

  api.export('EasySearch');
  api.mainModule('./lib/main.js');
});

Package.onTest(function(api) {
  api.use(['tinytest', 'ecmascript']);
  api.use('easysearch:elasticsearch');

  api.addFiles(['tests/engine-tests.js']);
});

Package.describe({
  name: 'easysearch:elasticsearch',
  summary: "Elasticsearch Engine for EasySearch",
  version: "2.1.1",
  git: "https://github.com/matteodem/meteor-easy-search.git",
  documentation: 'README.md'
});

Npm.depends({
  'elasticsearch': '13.0.0'
});

Package.onUse(function(api) {
  api.versionsFrom('1.4.2');

  // Dependencies
  api.use(['check', 'ecmascript']);
  api.use(['easysearch:core@2.1.0', 'erasaur:meteor-lodash@4.0.0']);

  api.addFiles([
    'lib/data-syncer.js',
    'lib/engine.js',
  ]);

  api.export('EasySearch');
  api.mainModule('./lib/main.js');
});

Package.onTest(function(api) {
  api.use(['tinytest', 'ecmascript']);
  api.use('easysearch:elasticsearch');

  api.addFiles(['tests/engine-tests.js']);
});

Update ES client to support ES 5.x
Update ES client to support ES 5.x
