Security News
New Proposed CISA Mandate Would Require Critical Infrastructure to Report Ransom Payments Within 24 Hours
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
@forter/elasticsearch-query-builder
Advanced tools
ElasticSearch Query Builder
Weekly downloads
Readme
A class for building a valid ElasticSearch query search expression, using best practices for each operators.
Clone from the current repo and then run the following command inside the root folder:
npm i
npm
are included as follows:
test
runs the unit test suitescommit
wizard for creating a commit message that will automatically add interesting stuff to changelog and have a meaning. You may also use git cz
if you install commitizen
globally with npm i -g commitizen
semantic-release
will be responsible for releasing the proper version to npm and add changelog.watch-test
automatically re-runs your test suite when code in src
or test
directories changefull-test
runs tests, lint fix and outdated module checklint
runs ESLint which find problematic patterns in codefix-lint
runs ESLint with --fix flag to fix problematic patterns in codeprettier
runs prettier opinionated code formatter to align style of codewatch-fix-lint
automatically fix ESLint issues when code in src
or test
directories changecoverage
runs nyc to produce a test coverage reportcheck-outdated
runs david
which check if package npm dependencies are out of datecheck-vulnerabilities"
runs nsp
which check if package npm dependencies have security issues.
├── test/ # Unit, integration and load tests
├── index.js # Node.js file (entery point)
├── Dockerfile # Commands for building a Docker image for production
├── Jenkinsfile # Commands for building in Jenkins CI
├── Makefile # Commands as described below
└── package.json # The list of project dependencies
ESLint comes already installed, extending eslint-recommanded. Don't forget to install the appropriate plugin for your editor.
npm run fix-lint
Mocha is a JavaScript test runner that runs both on Node.js and in the browser. It provides functionality for testing both synchronous and asynchronous code with a very simple and similar interface. To run all tests please do following:
npm test
Istanbul is used to produce a test coverage report. Look inside the coverage
folder after running npm run coverage
to see the results.
npm run coverage
There is no need to deploy once your tests have passed and your branch has merged with master. However you may have to update your package.json
to the newest version, in the repo that is using this package, depending on how your package.json
is configured.
Pull requests are welcome. For major changes, please discuss first what you would like to change and why. Please make sure to update tests as appropriate.
FAQs
ElasticSearch Query Builder
The npm package @forter/elasticsearch-query-builder receives a total of 21 weekly downloads. As such, @forter/elasticsearch-query-builder popularity was classified as not popular.
We found that @forter/elasticsearch-query-builder demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
Security News
Redis is no longer OSS, breaking its explicit commitment to remain under the BSD 3-Clause License forever. This has angered contributors who are now working to fork the software.
Product
Socket AI now enables 'AI detected potential malware' alerts by default, ensuring users benefit from AI-powered state-of-the-art malware detection without needing to opt-in.