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

enrise-estools

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

enrise-estools - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

package.json
{
"name": "enrise-estools",
"version": "0.0.2",
"version": "0.0.3",
"description": "Elasticsearch tooling functions for managing indices and aliases.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -96,3 +96,3 @@ 'use strict';

filter.synonyms = synonyms;
filter.synonyms = synonyms || filter.synonyms;
}

@@ -99,0 +99,0 @@

@@ -343,3 +343,23 @@ 'use strict';

});
it('leaves the synonyms untouched when no new synonyms are provided (mapping received from file)', () => {
helpers.prepareSynonymsMapping(mapping1, {});
chai.expect(mapping1.settings.analysis.filter).to.deep.equal({
synonyms: {synonyms: ['']},
pre_synonyms: {synonyms: ['']},
other_filter: {}
});
});
it('leaves the synonyms untouched when no new synonyms are provided (mapping received from the index)', () => {
helpers.prepareSynonymsMapping(mapping2, {});
chai.expect(mapping2.settings.index.analysis.filter).to.deep.equal({
synonyms: {synonyms: ['']},
pre_synonyms: {synonyms: ['']},
other_filter: {}
});
});
});
});
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