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.5.0 to 3.0.0

4

lib/index.js

@@ -63,3 +63,3 @@ const assert = require('assert');

},
rest: rest(() => Object.keys(indices).sort(), idx => get(indices[idx], 'mapping', null), options)
rest: rest(idx => get(indices[idx], 'mapping', null), options)
};

@@ -69,2 +69,2 @@ };

module.exports.loadJsonInDir = loadJsonInDir;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJhc3NlcnQiLCJyZXF1aXJlIiwiZ2V0IiwiY2xvbmVEZWVwIiwibW9kZWwiLCJpbmRleCIsImRhdGEiLCJxdWVyeSIsInJlc3QiLCJsb2FkSnNvbkluRGlyIiwibW9kdWxlIiwiZXhwb3J0cyIsIm9wdGlvbnMiLCJtb2RlbHMiLCJyZWdpc3Rlck1vZGVsIiwibmFtZSIsInNwZWNzIiwiY29tcGlsZWQiLCJjb21waWxlIiwiaW5kaWNlcyIsInJlZ2lzdGVySW5kZXgiLCJpbmNsdWRlcyIsIk9iamVjdCIsImFzc2lnbiIsIm1hcHBpbmciLCJnZW5lcmF0ZU1hcHBpbmciLCJmaWVsZHMiLCJleHRyYWN0RmllbGRzIiwicmVscyIsImV4dHJhY3RSZWxzIiwicmVnaXN0ZXIiLCJpZHgiLCJsaXN0Iiwia2V5cyIsInNvcnQiLCJnZXRNYXBwaW5nIiwiZ2V0RmllbGRzIiwiZ2V0UmVscyIsImdldE1vZGVsIiwiZ2V0U3BlY3MiLCJyZW1hcCIsImlucHV0IiwicGFnZSIsImVzUmVzdWx0IiwiZmlsdGVyIiwiYnVpbGQiLCJvcHRzIl0sIm1hcHBpb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2lzdGVySW5kZXgoaWR4LCBzcGVjcyksXG4gICAgICBsaXN0OiAoKSA9PiBPYmplY3Qua2V5cyhpbmRpY2VzKS5zb3J0KCksXG4gICAgICBnZXRNYXBwaW5nOiBpZHggPT4gY2xvbmVEZWVwKGluZGljZXNbaWR4XS5tYXBwaW5nKSxcbiAgICAgIGdldEZpZWxkczogaWR4ID0+IGNsb25lRGVlcChpbmRpY2VzW2lkeF0uZmllbGRzKSxcbiAgICAgIGdldFJlbHM6IGlkeCA9PiBjbG9uZURlZXAoaW5kaWNlc1tpZHhdLnJlbHMpLFxuICAgICAgZ2V0TW9kZWw6IGlkeCA9PiBpbmRpY2VzW2lkeF0uc3BlY3MubW9kZWwsXG4gICAgICBnZXRTcGVjczogaWR4ID0+IGNsb25lRGVlcChpbmRpY2VzW2lkeF0uc3BlY3MpXG4gICAgfSxcbiAgICBkYXRhOiB7XG4gICAgICByZW1hcDogKGlkeCwgaW5wdXQpID0+IGRhdGEucmVtYXAoaW5kaWNlc1tpZHhdLnNwZWNzLCBpbnB1dCwgbW9kZWxzKSxcbiAgICAgIHBhZ2U6IChlc1Jlc3VsdCwgZmlsdGVyKSA9PiBkYXRhLnBhZ2UoZXNSZXN1bHQsIGZpbHRlcilcbiAgICB9LFxuICAgIHF1ZXJ5OiB7XG4gICAgICBidWlsZDogKGlkeCA9IG51bGwsIG9wdHMgPSB7fSkgPT4gcXVlcnkuYnVpbGQoaWR4ID09PSBudWxsID8gbnVsbCA6IGluZGljZXNbaWR4XS5maWVsZHMsIG9wdHMpXG4gICAgfSxcbiAgICByZXN0OiByZXN0KGlkeCA9PiBnZXQoaW5kaWNlc1tpZHhdLCAnbWFwcGluZycsIG51bGwpLCBvcHRpb25zKVxuICB9O1xufTtcblxubW9kdWxlLmV4cG9ydHMubG9hZEpzb25JbkRpciA9IGxvYWRKc29uSW5EaXI7XG4iXX0=

@@ -1,21 +0,9 @@

module.exports = (call, limit, listIndices) => {
const indices = Object.entries(listIndices()) // eslint-disable-next-line no-underscore-dangle
.reduce((prev, [name, mapping]) => prev.concat(`-${name}@${mapping.mappings[name]._meta.hash}`), ['*']).join(',');
return call('POST', indices, {
endpoint: '_search?ignore_unavailable=true',
body: {
query: {
function_score: {
functions: [{
random_score: {}
}]
}
},
size: limit
}
}) // eslint-disable-next-line no-underscore-dangle
.then(r => r.body.hits.hits.reduce((p, e) => Object.assign(p, {
[e._id]: e._type
}), {}));
};
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy91dGlsL3Jlc3QvZGF0YS9oaXN0b3JpYy5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwiY2FsbCIsImxpbWl0IiwibGlzdEluZGljZXMiLCJpbmRpY2VzIiwiT2JqZWN0IiwiZW50cmllcyIsInJlZHVjZSIsInByZXYiLCJuYW1lIiwibWFwcGluZyIsImNvbmNhdCIsIm1hcHBpbmdzIiwiX21ldGEiLCJoYXNoIiwiam9pbiIsImVuZHBvaW50IiwiYm9keSIsInF1ZXJ5IiwiZnVuY3Rpb25fc2NvcmUiLCJmdW5jdGlvbnMiLCJyYW5kb21fc2NvcmUiLCJzaXplIiwidGhlbiIsInIiLCJoaXRzIiwicCIsImUiLCJhc3NpZ24iLCJfaWQiLCJfdHlwZSJdLCJtYXBwaW5ncyI6IkFBQUFBLE1BQU0sQ0FBQ0MsT0FBUCxHQUFpQixDQUFDQyxJQUFELEVBQU9DLEtBQVAsRUFBY0MsV0FBZCxLQUE4QjtBQUM3QyxRQUFNQyxPQUFPLEdBQUdDLE1BQU0sQ0FDbkJDLE9BRGEsQ0FDTEgsV0FBVyxFQUROLEVBRWQ7QUFGYyxHQUdiSSxNQUhhLENBR04sQ0FBQ0MsSUFBRCxFQUFPLENBQUNDLElBQUQsRUFBT0MsT0FBUCxDQUFQLEtBQTJCRixJQUFJLENBQUNHLE1BQUwsQ0FBYSxJQUFHRixJQUFLL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W5kZXJzY29yZS1kYW5nbGVcbiAgICAucmVkdWNlKChwcmV2LCBbbmFtZSwgbWFwcGluZ10pID0+IHByZXYuY29uY2F0KGAtJHtuYW1lfUAke21hcHBpbmcubWFwcGluZ3NbbmFtZV0uX21ldGEuaGFzaH1gKSwgWycqJ10pXG4gICAgLmpvaW4oJywnKTtcbiAgcmV0dXJuIGNhbGwoJ1BPU1QnLCBpbmRpY2VzLCB7XG4gICAgZW5kcG9pbnQ6ICdfc2VhcmNoP2lnbm9yZV91bmF2YWlsYWJsZT10cnVlJyxcbiAgICBib2R5OiB7XG4gICAgICBxdWVyeToge1xuICAgICAgICBmdW5jdGlvbl9zY29yZTogeyBmdW5jdGlvbnM6IFt7IHJhbmRvbV9zY29yZToge30gfV0gfVxuICAgICAgfSxcbiAgICAgIHNpemU6IGxpbWl0XG4gICAgfVxuICB9KVxuICAgIC8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBuby11bmRlcnNjb3JlLWRhbmdsZVxuICAgIC50aGVuKHIgPT4gci5ib2R5LmhpdHMuaGl0cy5yZWR1Y2UoKHAsIGUpID0+IE9iamVjdC5hc3NpZ24ocCwgeyBbZS5faWRdOiBlLl90eXBlIH0pLCB7fSkpO1xufTtcbiJdfQ==
module.exports = (call, index, mapping, limit) => call('POST', // eslint-disable-next-line no-underscore-dangle
`${index}@*,-${index}@${mapping.mappings[index]._meta.hash}`, {
endpoint: '_search?ignore_unavailable=true',
body: {
size: limit
}
}) // eslint-disable-next-line no-underscore-dangle
.then(r => r.body.hits.hits.reduce((p, e) => p.concat(e._id), []));
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy91dGlsL3Jlc3QvZGF0YS9oaXN0b3JpYy5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwiY2FsbCIsImluZGV4IiwibWFwcGluZyIsImxpbWl0IiwibWFwcGluZ3Mi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1gLFxuICB7XG4gICAgZW5kcG9pbnQ6ICdfc2VhcmNoP2lnbm9yZV91bmF2YWlsYWJsZT10cnVlJyxcbiAgICBib2R5OiB7IHNpemU6IGxpbWl0IH1cbiAgfVxuKVxuICAvLyBlc2xpbnQtZGlzYWJsZS1uZXh0LWxpbmUgbm8tdW5kZXJzY29yZS1kYW5nbGVcbiAgLnRoZW4ociA9PiByLmJvZHkuaGl0cy5oaXRzLnJlZHVjZSgocCwgZSkgPT4gcC5jb25jYXQoZS5faWQpLCBbXSkpO1xuIl19

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

module.exports = (listIndices, getMapping, options) => {
module.exports = (getMapping, options) => {
const call = (method, idx, {

@@ -79,8 +79,3 @@ endpoint = '',

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

@@ -90,2 +85,2 @@ }

};
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy91dGlsL3Jlc3QvcmVzdC5qcyJdLCJuYW1lcyI6WyJnZXQiLCJyZXF1aXJlIiwicmVxdWVzdCIsIm1hcHBpbmdDcmVhdGUiLCJtYXBwaW5nRGVsZXRlIiwibWFwcGluZ0dldCIsIm1hcHBpbmdMaXN0IiwibWFwcGluZ0hpc3RvcmljIiwibWFwcGluZ1JlY3JlYXRlIiwiZGF0YUNvdW50IiwiZGF0YVF1ZXJ5IiwiZGF0YVJlZnJlc2giLCJkYXRhSGlzdG9yaWMiLCJkYXRhVXBkYXRlIiwibW9kdWxlIiwiZXhwb3J0cyIsImxpc3RJbmRpY2VzIiwiZ2V0TWFwcGluZyIsIm9wdGlvbnMiL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aWR4KSksXG4gICAgICBsaXN0OiAoKSA9PiBtYXBwaW5nTGlzdChjYWxsKSxcbiAgICAgIGhpc3RvcmljOiBpZHggPT4gbWFwcGluZ0hpc3RvcmljKGNhbGwsIGlkeCwgZ2V0TWFwcGluZyhpZHgpKSxcbiAgICAgIHJlY3JlYXRlOiBpZHggPT4gbWFwcGluZ1JlY3JlYXRlKGNhbGwsIGlkeCwgZ2V0TWFwcGluZyhpZHgpKVxuICAgIH0sXG4gICAgZGF0YToge1xuICAgICAgY291bnQ6IGlkeCA9PiBkYXRhQ291bnQoY2FsbCwgaWR4KSxcbiAgICAgIHF1ZXJ5OiAoaWR4LCBmaWx0ZXIpID0+IGRhdGFRdWVyeShjYWxsLCBpZHgsIGdldE1hcHBpbmcoaWR4KSwgZmlsdGVyKSxcbiAgICAgIHJlZnJlc2g6IGlkeCA9PiBkYXRhUmVmcmVzaChjYWxsLCBpZHgpLFxuICAgICAgaGlzdG9yaWM6IChpZHgsIGxpbWl0ID0gMTAwKSA9PiBkYXRhSGlzdG9yaWMoY2FsbCwgaWR4LCBnZXRNYXBwaW5nKGlkeCksIGxpbWl0KSxcbiAgICAgIHVwZGF0ZTogKGlkeCwgb3B0cykgPT4gZGF0YVVwZGF0ZShjYWxsLCBpZHgsIGdldE1hcHBpbmcoaWR4KSwgb3B0cylcbiAgICB9XG4gIH07XG59O1xuIl19
{
"name": "es-alchemy",
"version": "2.5.0",
"version": "3.0.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({ 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.historic(index: String, limit: Integer = 100)` - fetch historic data entries as list of ids.
- `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