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

@arranger/mapping-utils

Package Overview
Dependencies
Maintainers
10
Versions
270
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arranger/mapping-utils - npm Package Compare versions

Comparing version 2.6.0 to 2.6.1

2

dist/createConnectionTypeDefs.js

@@ -18,5 +18,5 @@ "use strict";

createStateTypeDefs = _ref$createStateTypeD === void 0 ? true : _ref$createStateTypeD;
return "\n type ".concat(type.name, " {\n mapping: JSON\n\n extended(fields: [String]): JSON\n\n ").concat(createStateTypeDefs ? "\n aggsState: AggsState\n\n columnsState: ColumnsState\n\n matchBoxState: MatchBoxState\n " : '', "\n\n hits(\n score: String\n offset: Int\n sort: [Sort]\n filters: JSON\n before: String\n after: String\n first: Int\n last: Int\n searchAfter: JSON\n ): ").concat(type.name, "Connection\n\n aggregations(\n filters: JSON\n\n include_missing: Boolean\n # Should term aggregations be affected by queries that contain filters on their field. For example if a query is filtering primary_site by Blood should the term aggregation on primary_site return all values or just Blood. Set to False for UIs that allow users to select multiple values of an aggregation.\n aggregations_filter_themselves: Boolean\n ): ").concat(type.name, "Aggregations\n }\n\n type ").concat(type.name, "Aggregations {\n ").concat((0, _mappingToAggsType["default"])(type.mapping), "\n }\n\n type ").concat(type.name, "Connection {\n total: Int!\n edges: [").concat(type.name, "Edge]\n }\n\n type ").concat(type.name, "Edge {\n searchAfter: JSON\n node: ").concat(type.name, "Node\n }\n\n type ").concat(type.name, "Node implements Node {\n id: ID!\n score: Int\n ").concat(fields, "\n }\n");
return "\n type ".concat(type.name, " {\n mapping: JSON\n\n extended(fields: [String]): JSON\n\n ").concat(createStateTypeDefs ? "\n aggsState: AggsState\n\n columnsState: ColumnsState\n\n matchBoxState: MatchBoxState\n " : '', "\n\n hits(\n score: String\n offset: Int\n sort: [Sort]\n filters: JSON\n before: String\n after: String\n first: Int\n last: Int\n searchAfter: JSON\n trackTotalHits: Boolean = true\n ): ").concat(type.name, "Connection\n\n aggregations(\n filters: JSON\n\n include_missing: Boolean\n # Should term aggregations be affected by queries that contain filters on their field. For example if a query is filtering primary_site by Blood should the term aggregation on primary_site return all values or just Blood. Set to False for UIs that allow users to select multiple values of an aggregation.\n aggregations_filter_themselves: Boolean\n ): ").concat(type.name, "Aggregations\n }\n\n type ").concat(type.name, "Aggregations {\n ").concat((0, _mappingToAggsType["default"])(type.mapping), "\n }\n\n type ").concat(type.name, "Connection {\n total: Int!\n edges: [").concat(type.name, "Edge]\n }\n\n type ").concat(type.name, "Edge {\n searchAfter: JSON\n node: ").concat(type.name, "Node\n }\n\n type ").concat(type.name, "Node implements Node {\n id: ID!\n score: Int\n ").concat(fields, "\n }\n");
};
exports["default"] = _default;

@@ -210,3 +210,3 @@ "use strict";

var _ref10 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(obj, _ref8, _ref9, info) {
var _ref8$first, first, _ref8$offset, offset, filters, score, sort, searchAfter, es, fields, nestedFields, query, body, copyToSourceFields, _yield$esSearch, hits;
var _ref8$first, first, _ref8$offset, offset, filters, score, sort, searchAfter, _ref8$trackTotalHits, trackTotalHits, es, fields, nestedFields, query, body, copyToSourceFields, _yield$esSearch, hits;

@@ -217,3 +217,3 @@ return regeneratorRuntime.wrap(function _callee$(_context) {

case 0:
_ref8$first = _ref8.first, first = _ref8$first === void 0 ? 10 : _ref8$first, _ref8$offset = _ref8.offset, offset = _ref8$offset === void 0 ? 0 : _ref8$offset, filters = _ref8.filters, score = _ref8.score, sort = _ref8.sort, searchAfter = _ref8.searchAfter;
_ref8$first = _ref8.first, first = _ref8$first === void 0 ? 10 : _ref8$first, _ref8$offset = _ref8.offset, offset = _ref8$offset === void 0 ? 0 : _ref8$offset, filters = _ref8.filters, score = _ref8.score, sort = _ref8.sort, searchAfter = _ref8.searchAfter, _ref8$trackTotalHits = _ref8.trackTotalHits, trackTotalHits = _ref8$trackTotalHits === void 0 ? true : _ref8$trackTotalHits;
es = _ref9.es;

@@ -273,2 +273,3 @@ fields = (0, _graphqlFields["default"])(info);

from: offset,
track_total_hits: trackTotalHits,
_source: [].concat(_toConsumableArray(fields.edges && Object.keys(fields.edges.node || {}) || []), _toConsumableArray(Object.values(copyToSourceFields))),

@@ -275,0 +276,0 @@ track_scores: !!score,

{
"name": "@arranger/mapping-utils",
"version": "2.6.0",
"version": "2.6.1",
"description": "Transform Elasticsearch mappings",

@@ -25,3 +25,3 @@ "main": "dist/index.js",

"dependencies": {
"@arranger/middleware": "^2.6.0",
"@arranger/middleware": "^2.6.1",
"babel-polyfill": "^6.26.0",

@@ -65,3 +65,3 @@ "graphql-fields": "^1.0.2",

},
"gitHead": "d3c83f863afa0e5045057c833f3365fac659fb3b"
"gitHead": "f2b13ec753baab4038a8041f0326395977d5e748"
}
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