elastic-builder
Advanced tools
Comparing version 2.16.0 to 2.17.0
{ | ||
"name": "elastic-builder", | ||
"version": "2.16.0", | ||
"version": "2.17.0", | ||
"description": "A JavaScript implementation of the elasticsearch Query DSL", | ||
"main": "lib/index.js", | ||
"main": "src/index.js", | ||
"files": [ | ||
"lib/", | ||
"src/", | ||
@@ -14,6 +13,5 @@ "repl.js", | ||
"scripts": { | ||
"build:babel": "cross-env BABEL_ENV=production babel src --out-dir lib", | ||
"build:umd": "webpack lib --output browser/elastic-builder.min.js --mode production", | ||
"build:umd": "webpack src --output browser/elastic-builder.min.js --mode production", | ||
"build:docs": "documentation build src/index.js --github -o docs -f html -c ./docs/documentation.yml", | ||
"build": "npm run build:babel && npm run build:umd && npm run build:docs", | ||
"build": "npm run build:umd && npm run build:docs", | ||
"lint": "eslint src test", | ||
@@ -27,3 +25,3 @@ "lint:fix": "npm run lint -- --fix", | ||
"report": "nyc report --reporter=html", | ||
"coverage": "nyc report --reporter=text-lcov | coveralls", | ||
"coverage": "nyc report --reporter=lcov", | ||
"print-version": "cross-env-shell echo v$npm_package_version", | ||
@@ -35,3 +33,2 @@ "prepublishOnly": "npm run -s build", | ||
"dependencies": { | ||
"babel-runtime": "^6.26.0", | ||
"lodash.has": "^4.5.2", | ||
@@ -54,3 +51,2 @@ "lodash.hasin": "^4.5.2", | ||
"babel-preset-env": "^1.7.0", | ||
"coveralls": "^3.0.2", | ||
"cross-env": "^5.2.0", | ||
@@ -74,2 +70,8 @@ "documentation": "^8.0.0", | ||
}, | ||
"release": { | ||
"branches": [ | ||
"master", | ||
"next" | ||
] | ||
}, | ||
"lint-staged": { | ||
@@ -107,4 +109,5 @@ "src/**/*.js": [ | ||
"contributors": [ | ||
"austin ce <austin.cawley@gmail.com>" | ||
"austin ce <austin.cawley@gmail.com>", | ||
"ochan12 <mateochando@gmail.com>" | ||
] | ||
} |
# elastic-builder | ||
[![npm version][version-badge]][package] [![Build Status][build-badge]][build] | ||
[![npm version][version-badge]][package] [![.github/workflows/build.yml][build-badge]][build] | ||
[![Coverage Status][coverage-badge]][coverage] | ||
@@ -380,4 +380,4 @@ [![semantic-release][semantic-release-badge]][semantic-release] | ||
[build-badge]: | ||
https://travis-ci.org/sudo-suhas/elastic-builder.svg?branch=master | ||
[build]: https://travis-ci.org/sudo-suhas/elastic-builder | ||
https://github.com/sudo-suhas/elastic-builder/actions/workflows/release-with-check.yml/badge.svg | ||
[build]: https://github.com/sudo-suhas/elastic-builder/actions/workflows/build.yml | ||
[coverage-badge]: | ||
@@ -384,0 +384,0 @@ https://coveralls.io/repos/github/sudo-suhas/elastic-builder/badge.svg?branch=master |
'use strict'; | ||
const { inspect } = require('util'); | ||
const isEmpty = require('lodash.isempty'), | ||
@@ -9,5 +7,6 @@ isNil = require('lodash.isnil'), | ||
isObject = require('lodash.isobject'), | ||
hasIn = require('lodash.hasin'); | ||
hasIn = require('lodash.hasin'), | ||
has = require('lodash.has'); | ||
const has = require('lodash.has'); | ||
const inspect = require('./inspect'); | ||
@@ -14,0 +13,0 @@ /** |
@@ -70,3 +70,8 @@ /* eslint-disable max-lines */ | ||
}, | ||
specializedQueries: { MoreLikeThisQuery, ScriptQuery, PercolateQuery }, | ||
specializedQueries: { | ||
MoreLikeThisQuery, | ||
ScriptQuery, | ||
PercolateQuery, | ||
DistanceFeatureQuery | ||
}, | ||
spanQueries: { | ||
@@ -290,2 +295,5 @@ SpanTermQuery, | ||
exports.DistanceFeatureQuery = DistanceFeatureQuery; | ||
exports.distanceFeatureQuery = constructorWrapper(DistanceFeatureQuery); | ||
/* ============ ============ ============ */ | ||
@@ -292,0 +300,0 @@ /* ============ Span Queries ============ */ |
@@ -6,1 +6,2 @@ 'use strict'; | ||
exports.PercolateQuery = require('./percolate-query'); | ||
exports.DistanceFeatureQuery = require('./distance-feature-query'); |
@@ -11,11 +11,3 @@ # Source Guide | ||
All the source files written in ES6 are present in the `src` folder. | ||
This gets transpiled using babel to the `lib` folder. | ||
npm script: | ||
``` | ||
cross-env BABEL_ENV=production babel src --out-dir lib | ||
``` | ||
This is not tracked in git but is present in the npm package which the end user gets. | ||
```js | ||
@@ -28,3 +20,2 @@ // package.json snippet | ||
"browser/", | ||
"lib/", | ||
"src/", | ||
@@ -38,3 +29,3 @@ "repl.js", | ||
These transpiled files are then `webpack`ed into a minified `umd` module | ||
These files are then packed into a minified `umd` module | ||
for use in the browser and kept in the `browser` folder. | ||
@@ -41,0 +32,0 @@ This is also used by the demo hosted on https://elastic-builder.js.org |
Sorry, the diff of this file is too big to display
8
24
1005267
176
25262
- Removedbabel-runtime@^6.26.0
- Removedbabel-runtime@6.26.0(transitive)
- Removedcore-js@2.6.12(transitive)
- Removedregenerator-runtime@0.11.1(transitive)