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

elasticsearch

Package Overview
Dependencies
Maintainers
1
Versions
128
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elasticsearch - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

28

lib/core.js

@@ -130,4 +130,4 @@ var utils = require('./utils');

// documentation indicates DELETE method...
// sending POST data via DELETE not typical
return req.delete(options, query, callback);
// sending POST data via DELETE not typical, using POST instead
return req.post(options, query, callback);
};

@@ -192,4 +192,4 @@

// documentation indicates GET method...
// sending POST data via GET not typical
return req.get(options, query, callback);
// sending POST data via GET not typical, using POST instead
return req.post(options, query, callback);
};

@@ -331,4 +331,4 @@

// documentation indicates GET method...
// sending POST data via GET not typical
return req.get(options, docs, callback);
// sending POST data via GET not typical, using POST instead
return req.post(options, docs, callback);
};

@@ -371,4 +371,4 @@

// documentation indicates GET method...
// sending POST data via GET not typical
return req.get(options, serializedQueries, callback);
// sending POST data via GET not typical, using POST instead
return req.post(options, serializedQueries, callback);
};

@@ -400,4 +400,4 @@

// documentation indicates GET method...
// sending POST data via GET not typical
return req.get(options, doc, callback);
// sending POST data via GET not typical, using POST instead
return req.post(options, doc, callback);
};

@@ -455,4 +455,4 @@

// documentation indicates GET method...
// sending POST data via GET not typical
return req.get(options, query, callback);
// sending POST data via GET not typical, using POST instead
return req.post(options, query, callback);
};

@@ -539,4 +539,4 @@

// documentation indicates GET method...
// sending POST data via GET not typical
return req.get(options, query, callback);
// sending POST data via GET not typical, using POST instead
return req.post(options, query, callback);
};

@@ -543,0 +543,0 @@

@@ -76,4 +76,4 @@ var utils = require('./utils');

// documentation indicates GET method...
// sending POST data via GET not typical
return req.get(options, data, callback);
// sending POST data via GET not typical, using POST instead
return req.post(options, data, callback);
};

@@ -80,0 +80,0 @@

@@ -69,3 +69,7 @@ var

if (data) {
req.write(JSON.stringify(data));
if (typeof data !== 'string') {
data = JSON.stringify(data);
}
req.write(data);
}

@@ -72,0 +76,0 @@

@@ -5,3 +5,3 @@ {

"main" : "index.js",
"version" : "0.3.1",
"version" : "0.3.2",
"author" : "Nick Campbell (http://github.com/ncb000gt)",

@@ -8,0 +8,0 @@ "contributors" : [

@@ -294,3 +294,3 @@ var coreLib = requireWithCoverage('core');

data.options.path.should.equals('/dieties/kitteh/_query');
data.options.method.should.equals('DELETE');
data.options.method.should.equals('POST');

@@ -306,3 +306,3 @@ done();

data.options.path.should.equals('/dieties/_query');
data.options.method.should.equals('DELETE');
data.options.method.should.equals('POST');

@@ -399,3 +399,3 @@ done();

data.options.path.should.equals('/dieties/kitteh/1/_explain');
data.options.method.should.equals('GET');
data.options.method.should.equals('POST');

@@ -452,3 +452,3 @@ done();

data.options.path.should.equals('/_mget');
data.options.method.should.equals('GET');
data.options.method.should.equals('POST');

@@ -633,3 +633,3 @@ done();

data.options.path.should.equals('/_mget');
data.options.method.should.equals('GET');
data.options.method.should.equals('POST');
data.inputData[0]._index.should.equals('testIndex');

@@ -648,3 +648,3 @@ data.inputData[0]._type.should.equals('testType');

data.options.path.should.equals('/_mget');
data.options.method.should.equals('GET');
data.options.method.should.equals('POST');
data.inputData[0]._index.should.equals('dieties');

@@ -670,3 +670,3 @@ data.inputData[0]._type.should.equals('kitteh');

should.exist(data);
data.options.method.should.equals('GET');
data.options.method.should.equals('POST');
data.options.path.should.equals('/_msearch');

@@ -691,3 +691,3 @@

should.exist(data);
data.options.method.should.equals('GET');
data.options.method.should.equals('POST');
data.options.path.should.equals('/dieties/_msearch');

@@ -703,3 +703,3 @@

should.exist(data);
data.options.method.should.equals('GET');
data.options.method.should.equals('POST');
data.options.path.should.equals('/dieties/kitteh/_msearch');

@@ -753,3 +753,3 @@

should.exist(data);
data.options.method.should.equals('GET');
data.options.method.should.equals('POST');
data.options.path.should.equals('/dieties/kitteh/_percolate');

@@ -774,3 +774,3 @@

data.options.path.should.equals('/dieties/kitteh/_search');
data.options.method.should.equals('GET');
data.options.method.should.equals('POST');

@@ -844,3 +844,3 @@ done();

data.options.path.should.equals('/dieties/kitteh/_search');
data.options.method.should.equals('GET');
data.options.method.should.equals('POST');

@@ -857,3 +857,3 @@ done();

data.options.path.should.equals('/dieties/_search');
data.options.method.should.equals('GET');
data.options.method.should.equals('POST');

@@ -997,3 +997,3 @@ done();

data.options.path.should.equals('/dieties/kitteh/_validate/query');
data.options.method.should.equals('GET');
data.options.method.should.equals('POST');

@@ -1010,3 +1010,3 @@ done();

data.options.path.should.equals('/dieties/_validate/query');
data.options.method.should.equals('GET');
data.options.method.should.equals('POST');

@@ -1013,0 +1013,0 @@ done();

@@ -111,3 +111,3 @@ var indicesLib = requireWithCoverage('indices');

should.exist(data);
data.options.method.should.equals('GET');
data.options.method.should.equals('POST');
data.options.path.should.equals('/dieties/_analyze?tokenizer=keyword');

@@ -128,3 +128,3 @@

should.exist(data);
data.options.method.should.equals('GET');
data.options.method.should.equals('POST');
data.options.path.should.equals('/_analyze?analyzer=standard');

@@ -140,3 +140,3 @@

should.exist(data);
data.options.method.should.equals('GET');
data.options.method.should.equals('POST');
data.options.path.should.equals('/dieties/_analyze');

@@ -143,0 +143,0 @@

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