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 1.12.0 to 1.12.1

7

lib/util/rest/data/query.js

@@ -26,7 +26,6 @@ const assert = require("assert");

assert(get(esResult.body, '_shards.failed') === 0, JSON.stringify(esResult.body)); // PART 2: workaround for https://github.com/elastic/elasticsearch/issues/23796
// eslint-disable-next-line no-underscore-dangle
const source = filter._source;
const rewriter = objectRewrite({
retain: source.concat(...objectPaths.getParents(source)).concat(source.reduce((p, c) => p.concat(get(mapping, // retain properties of type "object"
// eslint-disable-next-line no-underscore-dangle
retain: filter._source.concat(filter._source.reduce((p, c) => p.concat(get(mapping, // retain properties of type "object"
`mappings.${[idx, ...c.split(".")].join(".properties.")}.type`) === "object" ? `${c}.**` : []), []))

@@ -54,2 +53,2 @@ }); // eslint-disable-next-line no-underscore-dangle

});
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy91dGlsL3Jlc3QvZGF0YS9xdWVyeS5qcyJdLCJuYW1lcyI6WyJhc3NlcnQiLCJyZXF1aXJlIiwiZ2V0IiwiY2xvbmVEZWVwIiwib2JqZWN0UmV3cml0ZSIsIm9iamVjdFBhdGhzIiwibW9kdWxlIiwiZXhwb3J0cyIsImNhbGwiLCJpZHgiLCJtYXBwaW5nIiwiZmlsdGVyIiwicmF3IiwiYm9keSIsImZpbHRlck5ldyIsIl9zb3VyY2UiLCJwdXNoIiwiZ2V0UGFyZW50cyIsImVuZHBvaW50IiwidGhlbiIsImVzUmVzdWx0Iiwic3RhdHVzQ29kZSIsIkpTT04iLCJzdHJpbmdpZnkiLCJzb3VyY2UiLCJyZXdyaXRlciIsInJldGFpbiIsImNvbmNhdCIsIn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ICAgICAgICAgICBsaW1pdDogZmlsdGVyLnNpemUsXG4gICAgICAgICAgICBvZmZzZXQ6IGZpbHRlci5mcm9tICsgZmlsdGVyLnNpemVcbiAgICAgICAgICB9IDogbnVsbCxcbiAgICAgICAgICBwcmV2OiBmaWx0ZXIuZnJvbSA+IDAgPyB7XG4gICAgICAgICAgICBsaW1pdDogZmlsdGVyLnNpemUsXG4gICAgICAgICAgICBvZmZzZXQ6IE1hdGgubWF4KDAsIGZpbHRlci5mcm9tIC0gZmlsdGVyLnNpemUpXG4gICAgICAgICAgfSA6IG51bGwsXG4gICAgICAgICAgY3VyOiAxICsgTWF0aC5jZWlsKGZpbHRlci5mcm9tICogMS4wIC8gZmlsdGVyLnNpemUpLFxuICAgICAgICAgIG1heDogTWF0aC5tYXgoMSwgMSArIE1hdGguZmxvb3IoKGVzUmVzdWx0LmJvZHkuaGl0cy50b3RhbCAtIDAuMSkgLyBmaWx0ZXIuc2l6ZSkpLFxuICAgICAgICAgIHNpemU6IGZpbHRlci5zaXplXG4gICAgICAgIH1cbiAgICAgIH07XG4gIH0pO1xuIl19
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy91dGlsL3Jlc3QvZGF0YS9xdWVyeS5qcyJdLCJuYW1lcyI6WyJhc3NlcnQiLCJyZXF1aXJlIiwiZ2V0IiwiY2xvbmVEZWVwIiwib2JqZWN0UmV3cml0ZSIsIm9iamVjdFBhdGhzIiwibW9kdWxlIiwiZXhwb3J0cyIsImNhbGwiLCJpZHgiLCJtYXBwaW5nIiwiZmlsdGVyIiwicmF3IiwiYm9keSIsImZpbHRlck5ldyIsIl9zb3VyY2UiLCJwdXNoIiwiZ2V0UGFyZW50cyIsImVuZHBvaW50IiwidGhlbiIsImVzUmVzdWx0Iiwic3RhdHVzQ29kZSIsIkpTT04iLCJzdHJpbmdpZnkiLCJyZXdyaXRlciIsInJldGFpbiIsImNvb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1xuICAgICAgICAgICAgbGltaXQ6IGZpbHRlci5zaXplLFxuICAgICAgICAgICAgb2Zmc2V0OiBNYXRoLm1heCgwLCBmaWx0ZXIuZnJvbSAtIGZpbHRlci5zaXplKVxuICAgICAgICAgIH0gOiBudWxsLFxuICAgICAgICAgIGN1cjogMSArIE1hdGguY2VpbChmaWx0ZXIuZnJvbSAqIDEuMCAvIGZpbHRlci5zaXplKSxcbiAgICAgICAgICBtYXg6IE1hdGgubWF4KDEsIDEgKyBNYXRoLmZsb29yKChlc1Jlc3VsdC5ib2R5LmhpdHMudG90YWwgLSAwLjEpIC8gZmlsdGVyLnNpemUpKSxcbiAgICAgICAgICBzaXplOiBmaWx0ZXIuc2l6ZVxuICAgICAgICB9XG4gICAgICB9O1xuICB9KTtcbiJdfQ==
{
"name": "es-alchemy",
"version": "1.12.0",
"version": "1.12.1",
"description": "Simplification of Elasticsearch interactions",

@@ -47,3 +47,3 @@ "main": "lib/index.js",

"nyc": "13.1.0",
"semantic-release": "15.10.3",
"semantic-release": "15.10.5",
"uuid": "3.3.2",

@@ -102,3 +102,3 @@ "request": "2.88.0",

"object-hash": "1.3.0",
"object-rewrite": "2.0.0"
"object-rewrite": "2.1.0"
},

@@ -105,0 +105,0 @@ "peerDependencies": {

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