Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

elasto

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elasto - npm Package Compare versions

Comparing version 1.1.2 to 2.0.0

25

CHANGELOG.md

@@ -0,1 +1,26 @@

## 2.0.0 (2014-04-15)
- Fix fields query (https://github.com/elastic/elasticsearch/issues/4888)
- Dropped support for Elasticsearch 0.90 because of the fields fix
## 1.1.2 (2014-04-14)
- Fix: Count query should not be allowed to have a sort param
## 1.1.1 (2014-04-07)
- Added search keywords in package.json
## 1.1.0 (2014-04-07)
- Fix fields filtering with only arguments
## 1.0.0 (2014-04-07)
- Updated elasticsearch.js to latest version
## 0.2.0 (2014-04-07)
- Replaced isarray by npm module
- Added count method for a query
## 0.1.2 (2014-01-29)

@@ -2,0 +27,0 @@

2

lib/elasto.js

@@ -304,3 +304,3 @@ var elasticsearch = require('elasticsearch');

if (Object.keys(options.facets).length) query.facets = options.facets;
if (options.fields.length) query.fields = options.fields;
if (options.fields.length) query._source = options.fields;
if (options.sort.length && opts.output === 'search') body.sort = options.sort;

@@ -307,0 +307,0 @@ if (options.size) query.size = options.size;

{
"name": "elasto",
"version": "1.1.2",
"version": "2.0.0",
"description": "ElasticSearch client",

@@ -28,3 +28,4 @@ "main": "index",

"should": "^4.0.1"
}
},
"license": "MIT"
}

@@ -8,2 +8,3 @@ # Elasto [![Circle CI](https://circleci.com/gh/StreetHub/elasto.svg?style=svg)](https://circleci.com/gh/StreetHub/elasto)

- [Installation](#installation)
- [Support](#support)
- [Getting started](#getting-started)

@@ -21,2 +22,6 @@ - [Example](#example)

## Support
If you want to use this package with Elasticsearch 0.90, you should use `1.1.2`. The versions `>=2.X.X` will only support Elasticsearch `1.X.X`.
## Getting started

@@ -23,0 +28,0 @@

@@ -273,6 +273,6 @@ 'use strict';

.then(function(res) {
var docs = _.pluck(res.hits.hits, 'fields');
var docs = _.pluck(res.hits.hits, '_source');
docs.forEach(function(doc){
_.keys(doc).length.should.equal(2);
})
});
})

@@ -291,3 +291,3 @@ .should.eventually.notify(done);

.then(function(res) {
var docs = _.pluck(res.hits.hits, 'fields');
var docs = _.pluck(res.hits.hits, '_source');
docs.forEach(function(doc){

@@ -294,0 +294,0 @@ _.keys(doc).length.should.equal(2);

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