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

es-alchemy

Package Overview
Dependencies
Maintainers
1
Versions
318
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es-alchemy - npm Package Compare versions

Comparing version 2.4.0 to 2.5.0

7

lib/util/rest/rest.js

@@ -78,3 +78,6 @@ const get = require('lodash.get');

refresh: idx => dataRefresh(call, idx),
historic: (limit = 100) => dataHistoric(call, limit, () => listIndices().reduce((p, idx) => Object.assign(p, {
historic: ({
index = null,
limit = 100
} = {}) => dataHistoric(call, limit, () => listIndices().filter(idx => index === null || idx === index).reduce((p, idx) => Object.assign(p, {
[idx]: getMapping(idx)

@@ -86,2 +89,2 @@ }), {})),

};
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy91dGlsL3Jlc3QvcmVzdC5qcyJdLCJuYW1lcyI6WyJnZXQiLCJyZXF1aXJlIiwicmVxdWVzdCIsIm1hcHBpbmdDcmVhdGUiLCJtYXBwaW5nRGVsZXRlIiwibWFwcGluZ0dldCIsIm1hcHBpbmdMaXN0IiwibWFwcGluZ0hpc3RvcmljIiwibWFwcGluZ1JlY3JlYXRlIiwiZGF0YUNvdW50IiwiZGF0YVF1ZXJ5IiwiZGF0YVJlZnJlc2giLCJkYXRhSGlzdG9yaWMiLCJkYXRhVXBkYXRlIiwibW9kdWxlIiwiZXhwb3J0cyIsImxpc3RJbmRpY2VzIiwiZ2V0TWFwcGluZyIsIm9wdGlvbnMiLCJjYWxsIiwibWV0aG9kIiwiaWR4IiwiZW5kcG9pbnQiLCJib2R5IiwiaGVhZGVycyIsImpzb24iLCJ1cmkiLCJyZXBsYWNlIiwiZmlsdGVyIiwiZSIsImpvaW4iLCJhd3MiLCJrZXkiLCJzZWNyZXQiLCJzaWduX3ZlcnNpb24iLCJzaW1wbGUiLCJyZXNvbHZlV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XN0KGNhbGwpLFxuICAgICAgaGlzdG9yaWM6IGlkeCA9PiBtYXBwaW5nSGlzdG9yaWMoY2FsbCwgaWR4LCBnZXRNYXBwaW5nKGlkeCkpLFxuICAgICAgcmVjcmVhdGU6IGlkeCA9PiBtYXBwaW5nUmVjcmVhdGUoY2FsbCwgaWR4LCBnZXRNYXBwaW5nKGlkeCkpXG4gICAgfSxcbiAgICBkYXRhOiB7XG4gICAgICBjb3VudDogaWR4ID0+IGRhdGFDb3VudChjYWxsLCBpZHgpLFxuICAgICAgcXVlcnk6IChpZHgsIGZpbHRlcikgPT4gZGF0YVF1ZXJ5KGNhbGwsIGlkeCwgZ2V0TWFwcGluZyhpZHgpLCBmaWx0ZXIpLFxuICAgICAgcmVmcmVzaDogaWR4ID0+IGRhdGFSZWZyZXNoKGNhbGwsIGlkeCksXG4gICAgICBoaXN0b3JpYzogKHsgaW5kZXggPSBudWxsLCBsaW1pdCA9IDEwMCB9ID0ge30pID0+IGRhdGFIaXN0b3JpYyhjYWxsLCBsaW1pdCwgKCkgPT4gbGlzdEluZGljZXMoKVxuICAgICAgICAuZmlsdGVyKGlkeCA9PiBpbmRleCA9PT0gbnVsbCB8fCBpZHggPT09IGluZGV4KVxuICAgICAgICAucmVkdWNlKChwLCBpZHgpID0+IE9iamVjdC5hc3NpZ24ocCwgeyBbaWR4XTogZ2V0TWFwcGluZyhpZHgpIH0pLCB7fSkpLFxuICAgICAgdXBkYXRlOiAoaWR4LCBvcHRzKSA9PiBkYXRhVXBkYXRlKGNhbGwsIGlkeCwgZ2V0TWFwcGluZyhpZHgpLCBvcHRzKVxuICAgIH1cbiAgfTtcbn07XG4iXX0=
{
"name": "es-alchemy",
"version": "2.4.0",
"version": "2.5.0",
"description": "Simplification of Elasticsearch interactions",

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

@@ -376,3 +376,3 @@ [![Build Status](https://circleci.com/gh/loopmediagroup/es-alchemy.png?style=shield)](https://circleci.com/gh/loopmediagroup/es-alchemy)

- `data.refresh(name: String)` - refresh Elasticsearch index, useful e.g. when testing (all versions)
- `data.historic(limit: Integer = 100)` - fetch historic data entries as `{ [ID]: [INDEX] }`. Order of results is random.
- `data.historic({ index: String = null, limit: Integer = 100 } = {})` - fetch historic data entries as `{ [ID]: [INDEX] }`. Order of results is random. When no index provided all indices are queried.
- `data.update(name: String, options: Object)` - insert, update or delete objects in Elasticsearch (current version, removed touched documents from old versions and deletes old versions when empty)

@@ -379,0 +379,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