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

elastic-builder

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elastic-builder - npm Package Compare versions

Comparing version 2.22.0 to 2.23.0

5

package.json
{
"name": "elastic-builder",
"version": "2.22.0",
"version": "2.23.0",
"description": "A JavaScript implementation of the elasticsearch Query DSL",

@@ -108,4 +108,5 @@ "main": "src/index.js",

"foxstarius <aj.franzon@gmail.com>",
"sandeep952 <sandy335582@gmail.com>"
"sandeep952 <sandy335582@gmail.com>",
"florian-lackner365 <florian.lackner@365talents.com>"
]
}

19

src/core/sort.js

@@ -300,4 +300,8 @@ 'use strict';

/**
* Sets the data type for field generated by script.
* Sets the format of the date when sorting a date field.
*
* [Elasticsearch reference](https://www.elastic.co/guide/en/elasticsearch/reference/7.17/mapping-date-format.html#built-in-date-formats)
*
* Note: The format argument is [supported since version 7.13](https://www.elastic.co/guide/en/elasticsearch/reference/7.13/release-notes-7.13.0.html) of ElasticSearch.
*
* @param {string} type

@@ -312,2 +316,15 @@ * @returns {Sort} returns `this` so that calls can be chained

/**
* Sets the format of the date when sorting a date field.
*
* [Elasticsearch reference](https://www.elastic.co/guide/en/elasticsearch/reference/7.17/mapping-date-format.html#built-in-date-formats)
*
* @param {string} fmt
* @returns {Sort} returns `this` so that calls can be chained
*/
format(fmt) {
this._opts.format = fmt;
return this;
}
/**
* Reverse the sort order. Valid during sort types: field, geo distance, and script.

@@ -314,0 +331,0 @@ *

Sorry, the diff of this file is too big to display

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