New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@arranger/middleware

Package Overview
Dependencies
Maintainers
8
Versions
251
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arranger/middleware - npm Package Compare versions

Comparing version

to
1.1.4

2

dist/buildAggregations/createFieldAggregation.js

@@ -92,2 +92,2 @@ "use strict";

exports.default = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9idWlsZEFnZ3JlZ2F0aW9ucy9jcmVhdGVGaWVsZEFnZ3JlZ2F0aW9uLmpzIl0sIm5hbWVzIjpbIk1BWF9BR0dSRUdBVElPTl9TSVpFIiwiSElTVE9HUkFNX0lOVEVSVkFMX0RFRkFVTFQiLCJjcmVhdGVOdW1lcmljQWdncmVnYXRpb24iLCJ0eXBlIiwiZmllbGQiLCJncmFwaHFsRmllbGQiLCJhcmdzIiwiaW50ZXJ2YWwiLCJjcmVhdGVUZXJtQWdncmVnYXRpb24iLCJpc05lc3RlZCIsImFnZ3MiLCJybiIsInJldmVyc2VfbmVzdGVkIiwidGVybXMiLCJzaXplIiwibWlzc2luZyIsInR5cGVzIiwiZmlsdGVyIiwidCIsInJlZHVjZSIsImFjYyIsIk9iamVjdCIsImFzc2lnbiIsImluY2x1ZGVzIl0sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQUE7O0FBQ0E7Ozs7OztBQUVBLElBQU1BLHVCQUF1QixNQUE3QjtBQUNBLElBQU1DLDZCQUE2QixJQUFuQzs7QUFFQSxJQUFNQywyQkFBMkIsU0FBM0JBLHdCQUEyQixPQUFtQztBQUFBLE1BQWhDQyxJQUFnQyxRQUFoQ0EsSUFBZ0M7QUFBQSxNQUExQkMsS0FBMEIsUUFBMUJBLEtBQTBCO0FBQUEsTUFBbkJDLFlBQW1CLFFBQW5CQSxZQUFtQjtBQUNsRSxNQ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GVkIH0pKTtcbiAgICB9IGVsc2UgaWYgKFtTVEFUUywgSElTVE9HUkFNXS5pbmNsdWRlcyh0eXBlKSkge1xuICAgICAgcmV0dXJuIE9iamVjdC5hc3NpZ24oXG4gICAgICAgIGFjYyxcbiAgICAgICAgY3JlYXRlTnVtZXJpY0FnZ3JlZ2F0aW9uKHsgdHlwZSwgZmllbGQsIGdyYXBocWxGaWVsZCB9KSxcbiAgICAgICk7XG4gICAgfSBlbHNlIHtcbiAgICAgIHJldHVybiBhY2M7XG4gICAgfVxuICB9LCB7fSk7XG59O1xuIl19

@@ -14,4 +14,10 @@ "use strict";

function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
var getNestedSqonFilters = function getNestedSqonFilters(_ref) {

@@ -67,2 +73,2 @@ var _ref$sqon = _ref.sqon,

exports.default = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9idWlsZEFnZ3JlZ2F0aW9ucy9nZXROZXN0ZWRTcW9uRmlsdGVycy5qcyJdLCJuYW1lcyI6WyJnZXROZXN0ZWRTcW9uRmlsdGVycyIsInNxb24iLCJuZXN0ZWRGaWVsZHMiLCJhY2N1bXVsYXRvciIsInBhcmVudFBpdm90Iiwib3AiLCJpbmNsdWRlcyIsImNvbnRlbnQiLCJwaXZvdCIsImZv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xhdG9yW3BhcmVudFBhdGhdIHx8IFtdKSwgc3Fvbl07XG4gICAgfVxuICB9XG4gIHJldHVybiBhY2N1bXVsYXRvcjtcbn07XG5cbmV4cG9ydCBkZWZhdWx0ICh7IHNxb24gPSBudWxsLCBuZXN0ZWRGaWVsZHMgfSkgPT4ge1xuICBjb25zdCBub3JtYWxpemVkID0gbm9ybWFsaXplRmlsdGVycyhzcW9uKTtcbiAgLy8gY29uc29sZS5sb2coJ25vcm1hbGl6ZWQ6ICcsIEpTT04uc3RyaW5naWZ5KG5vcm1hbGl6ZWQsIG51bGwsIDIpKTtcbiAgcmV0dXJuIHNxb25cbiAgICA/IGdldE5lc3RlZFNxb25GaWx0ZXJzKHtcbiAgICAgICAgc3Fvbjogbm9ybWFsaXplZCxcbiAgICAgICAgbmVzdGVkRmllbGRzLFxuICAgICAgfSlcbiAgICA6IHt9O1xufTtcbiJdfQ==

@@ -22,6 +22,10 @@ "use strict";

function _sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
function _slicedToArray(arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return _sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

@@ -181,2 +185,2 @@

}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9idWlsZEFnZ3JlZ2F0aW9ucy9pbmRleC5qcyJdLCJuYW1lcyI6WyJjcmVhdGVHbG9iYWxBZ2dyZWdhdGlvbiIsImZpZWxkIiwiYWdncmVnYXRpb24iLCJnbG9iYWwiLCJhZ2dzIiwiY3JlYXRlRmlsdGVyZWRBZ2dyZWdhdGlvbiIsImZpbHRlciIsIk9iamVjdCIsImtleXMiLCJsZW5ndGgiLCJyZW1vdmVGaWVsZEZyb21RdWVyeSIsInF1ZXJ5IiwibmVzdGVkIiwibmVzdGVkUXVlcnkiLCJib29sIiwic29tZSIsImsiLCJjbGVhbmVkIiwiZmlsdGVyZWQiLCJlbnRyaWVzIiwicmVkdWNlIiwiYWNjIiwidHlwZSIsInZhbHVlcyIsImZpbHRlcmVkVmFsdWVzIiwibWFwIiwidmFsdWUiLCJCb29sZWFuIiwiZ2V0TmVzdGVkUGF0aHNJbkZpZWxkIiwibmVzdGVkRmllbGRzIiwic3BsaXQiLCJzIiwiaSIsImFyciIsInNsaWNlIiwiam9pbiIsImluY2x1ZGVzIiwicCIsIndyYXBXaXRoRmlsdGVycyIsImFnZ3JlZ2F0aW9uc0ZpbHRlclRoZW1zZWx2ZXMiLCJjbGVhbmVkUXVlcnkiLCJzcW9uIiwiZ3JhcGhxbEZpZWxkcyIsIm5vcm1hbGl6ZWRTcW9uIiwibmVzdGVkU3FvbkZpbHRlcnMiLCJhZ2dyZWdhdGlvbnMiLCJmaWVs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NzaWduKFxuICAgICAgICBhZ2dyZWdhdGlvbnMsXG4gICAgICAgIHdyYXBXaXRoRmlsdGVycyh7XG4gICAgICAgICAgcXVlcnksXG4gICAgICAgICAgZmllbGQsXG4gICAgICAgICAgYWdncmVnYXRpb24sXG4gICAgICAgICAgYWdncmVnYXRpb25zRmlsdGVyVGhlbXNlbHZlcyxcbiAgICAgICAgfSksXG4gICAgICApO1xuICAgIH0sXG4gICAge30sXG4gICk7XG5cbiAgY29uc3QgZmlsdGVyZWRBZ2dyZWdhdGlvbnMgPSBpbmplY3ROZXN0ZWRGaWx0ZXJzVG9BZ2dzKHtcbiAgICBhZ2dzLFxuICAgIG5lc3RlZFNxb25GaWx0ZXJzLFxuICAgIGFnZ3JlZ2F0aW9uc0ZpbHRlclRoZW1zZWx2ZXMsXG4gIH0pO1xuXG4gIHJldHVybiBmaWx0ZXJlZEFnZ3JlZ2F0aW9ucztcbn1cbiJdfQ==

@@ -22,6 +22,10 @@ "use strict";

function _sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
function _slicedToArray(arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return _sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
/*

@@ -93,2 +97,2 @@ * due to this problem: https://github.com/kids-first/kf-portal-ui/issues/488

exports.default = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9idWlsZEFnZ3JlZ2F0aW9ucy9pbmplY3ROZXN0ZWRGaWx0ZXJzVG9BZ2dzLmpzIl0sIm5hbWVzIjpbImluamVjdE5lc3RlZEZpbHRlcnNUb0FnZ3MiLCJhZ2dzIiwibmVzdGVkU3FvbkZpbHRlcnMiLCJhZ2dyZWdhdGlvbnNGaWx0ZXJUaGVtc2VsdmVzIiwiT2JqZWN0IiwiZW50cmllcyIsInJlZHVjZSIsImFjYyIsImFnZ05hbWUiLCJhZ2dDb250ZW50Iiwic2tpcFRvTmV4dExldmVsIiwid3JhcEluRmlsdGVyQWdnIiwibmVzdGVkIiwicGF0aCIsImZpbHRlciIsImJvb2wiLCJtdXN0Iiwic3BsaXQiLCJzcW9uRmlsdGVyIiwiY29udGVudCIsImZpZWxkIiwibWFwIiwibmVzdGVkRmllbGRzIiwiZ2xvYmFsIl0sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQUE7O0FBQ0E7O0FBQ0E7O0FBQ0E7Ozs7Ozs7Ozs7OztBQUVBOzs7OztBQUtBLElBQU1BLDRCQUE0QixTQUE1QkEseUJBQTRCO0FBQUEsTUFDaENDLElBRGdDLFFBQ2hDQSxJQURnQztBQUFBLE1BRWhDQyxpQkFGZ0MsUUFFaENBLGlCQUZnQztBQUFBLE1BR2hDQyw0QkFIZ0MsUUFHaENBLDRCQUhnQztBQUFBLFNBS2hDQyxPQUFPQyxPQUFQLENBQWVKLElBQWYsRUFBcUJLLE1BQXJCLENBQTRCLFVBQUNDLEdBQUQsU0FBZ0M7QUFBQTtBQUFBLF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Hx8XG4gICAgICAgICAgICAgICAgICAgICAgYWdnTmFtZS5zcGxpdCgnOicpWzBdICE9PSBzcW9uRmlsdGVyLmNvbnRlbnQuZmllbGQsXG4gICAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgICAubWFwKHNxb25GaWx0ZXIgPT5cbiAgICAgICAgICAgICAgICAgICAgb3BTd2l0Y2goe1xuICAgICAgICAgICAgICAgICAgICAgIG5lc3RlZEZpZWxkczogW10sXG4gICAgICAgICAgICAgICAgICAgICAgZmlsdGVyOiBub3JtYWxpemVGaWx0ZXJzKHNxb25GaWx0ZXIpLFxuICAgICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgYWdnczogaW5qZWN0TmVzdGVkRmlsdGVyc1RvQWdncyh7XG4gICAgICAgICAgICAgIGFnZ3M6IGFnZ0NvbnRlbnQuYWdncyxcbiAgICAgICAgICAgICAgbmVzdGVkU3FvbkZpbHRlcnMsXG4gICAgICAgICAgICAgIGFnZ3JlZ2F0aW9uc0ZpbHRlclRoZW1zZWx2ZXMsXG4gICAgICAgICAgICB9KSxcbiAgICAgICAgICB9LFxuICAgICAgICB9LFxuICAgICAgfTtcbiAgICAgIHJldHVybiBhY2M7XG4gICAgfTtcblxuICAgIGlmIChhZ2dDb250ZW50Lmdsb2JhbCB8fCBhZ2dDb250ZW50LmZpbHRlcikge1xuICAgICAgcmV0dXJuIHNraXBUb05leHRMZXZlbCgpO1xuICAgIH0gZWxzZSBpZiAoYWdnQ29udGVudC5uZXN0ZWQpIHtcbiAgICAgIGlmIChuZXN0ZWRTcW9uRmlsdGVyc1thZ2dDb250ZW50Lm5lc3RlZC5wYXRoXSkge1xuICAgICAgICByZXR1cm4gd3JhcEluRmlsdGVyQWdnKCk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICByZXR1cm4gc2tpcFRvTmV4dExldmVsKCk7XG4gICAg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LmFnZ0NvbnRlbnQsXG4gICAgICAgIGFnZ3M6IHtcbiAgICAgICAgICBbYCR7YWdnQ29udGVudC5uZXN0ZWQucGF0aH06JHtBR0dTX1dSQVBQRVJfRklMVEVSRUR9YF06IHtcbiAgICAgICAgICAgIGZpbHRlcjoge1xuICAgICAgICAgICAgICBib29sOiB7XG4gICAgICAgICAgICAgICAgbXVzdDogbmVzdGVkU3FvbkZpbHRlcnNbYWdnQ29udGVudC5uZXN0ZWQucGF0aF1cbiAgICAgICAgICAgICAgICAgIC5maWx0ZXIoXG4gICAgICAgICAgICAgICAgICAgIHNxb25GaWx0ZXIgPT5cbiAgICAgICAgICAgICAgICAgICAgICBhZ2dyZWdhdGlvbnNGaWx0ZXJUaGVtc2VsdmVzIHx8XG4gICAgICAgICAgICAgICAgICAgICAgYWdnTmFtZS5zcGxpdCgnOicpWzBdICE9PSBzcW9uRmlsdGVyLmNvbnRlbnQuZmllbGQsXG4gICAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgICAubWFwKHNxb25GaWx0ZXIgPT5cbiAgICAgICAgICAgICAgICAgICAgb3BTd2l0Y2goe1xuICAgICAgICAgICAgICAgICAgICAgIG5lc3RlZEZpZWxkczogW10sXG4gICAgICAgICAgICAgICAgICAgICAgZmlsdGVyOiBub3JtYWxpemVGaWx0ZXJzKHNxb25GaWx0ZXIpLFxuICAgICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgYWdnczogaW5qZWN0TmVzdGVkRmlsdGVyc1RvQWdncyh7XG4gICAgICAgICAgICAgIGFnZ3M6IGFnZ0NvbnRlbnQuYWdncyxcbiAgICAgICAgICAgICAgbmVzdGVkU3FvbkZpbHRlcnMsXG4gICAgICAgICAgICAgIGFnZ3JlZ2F0aW9uc0ZpbHRlclRoZW1zZWx2ZXMsXG4gICAgICAgICAgICB9KSxcbiAgICAgICAgICB9LFxuICAgICAgICB9LFxuICAgICAgfTtcbiAgICAgIHJldHVybiBhY2M7XG4gICAgfTtcblxuICAgIGlmIChhZ2dDb250ZW50Lmdsb2JhbCB8fCBhZ2dDb250ZW50LmZpbHRlcikge1xuICAgICAgcmV0dXJuIHNraXBUb05leHRMZXZlbCgpO1xuICAgIH0gZWxzZSBpZiAoYWdnQ29udGVudC5uZXN0ZWQpIHtcbiAgICAgIGlmIChuZXN0ZWRTcW9uRmlsdGVyc1thZ2dDb250ZW50Lm5lc3RlZC5wYXRoXSkge1xuICAgICAgICByZXR1cm4gd3JhcEluRmlsdGVyQWdnKCk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICByZXR1cm4gc2tpcFRvTmV4dExldmVsKCk7XG4gICAgICB9XG4gICAgfSBlbHNlIHtcbiAgICAgIHJldHVybiBhY2M7XG4gICAgfVxuICB9LCBjbG9uZURlZXAoYWdncykpO1xuXG5leHBvcnQgZGVmYXVsdCBpbmplY3ROZXN0ZWRGaWx0ZXJzVG9BZ2dzO1xuIl19

@@ -21,4 +21,10 @@ "use strict";

function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

@@ -28,6 +34,10 @@

function _sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
function _slicedToArray(arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return _sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
var wrapFilter = function wrapFilter(_ref) {

@@ -335,2 +345,2 @@ var esFilter = _ref.esFilter,

}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9idWlsZFF1ZXJ5L2luZGV4LmpzIl0sIm5hbWVzIjpbIndyYXBGaWx0ZXIiLCJlc0ZpbHRlciIsIm5lc3RlZEZpZWxkcyIsImZpbHRlciIsImlzTm90IiwiY29udGVudCIsImZpZWxkIiwic3BsaXQiLCJzbGljZSIsIm1hcCIsInAiLCJpIiwic2VnbWVudHMiLCJqb2luIiwiaW5jbHVkZXMiLCJyZXZlcnNlIiwicmVkdWNlIiwicGF0aCIsImdldFJlZ2V4RmlsdGVyIiwib3AiLCJ2YW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9KSB7XG4gIGlmIChPYmplY3Qua2V5cyhyYXdGaWx0ZXJzIHx8IHt9KS5sZW5ndGggPT09IDApIHJldHVybiB7fTtcbiAgY29uc3Qgb3V0cHV0ID0gb3BTd2l0Y2goe1xuICAgIG5lc3RlZEZpZWxkcyxcbiAgICBmaWx0ZXI6IG5vcm1hbGl6ZUZpbHRlcnMocmF3RmlsdGVycyksXG4gIH0pO1xuICBjb25zb2xlLmxvZyhcbiAgICAnaW5wdXQ6ICcsXG4gICAgSlNPTi5zdHJpbmdpZnkoe1xuICAgICAgbmVzdGVkRmllbGRzLFxuICAgICAgZmlsdGVyczogcmF3RmlsdGVycyxcbiAgICB9KSxcbiAgKTtcbiAgY29uc29sZS5sb2coJ291dHB1dDogJywgSlNPTi5zdHJpbmdpZnkob3V0cHV0KSk7XG4gIHJldHVybiBvdXRwdXQ7XG59XG4iXX0=

@@ -16,4 +16,10 @@ "use strict";

function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
// _UNFLAT_KEY_ is a ephemeral mark for groupingOptimizer to not apply grouping

@@ -150,2 +156,2 @@ var _UNFLAT_KEY_ = '__unflat__';

exports.default = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9idWlsZFF1ZXJ5L25vcm1hbGl6ZUZpbHRlcnMuanMi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AgICAgICA/IFtcbiAgICAgICAgICAgIHsgLi4uZmlsdGVyLCBjb250ZW50OiB7IC4uLmNvbnRlbnQsIHZhbHVlOiBub3JtYWxWYWx1ZXMgfSB9LFxuICAgICAgICAgICAgLi4uc3BlY2lhbEZpbHRlcnMsXG4gICAgICAgICAgXVxuICAgICAgICA6IHNwZWNpYWxGaWx0ZXJzO1xuXG4gICAgcmV0dXJuIG5vcm1hbGl6ZUZpbHRlcnMoeyBvcDogT1JfT1AsIGNvbnRlbnQ6IGZpbHRlcnMgfSk7XG4gIH0gZWxzZSBpZiAoW0FMTF9PUF0uaW5jbHVkZXMob3ApKSB7XG4gICAgcmV0dXJuIHRyYW5zZm9ybUFsbE9wKGZpbHRlcik7XG4gIH0gZWxzZSBpZiAoW0FORF9PUCwgT1JfT1AsIE5PVF9PUF0uaW5jbHVkZXMob3ApKSB7XG4gICAgcmV0dXJuIGdyb3VwaW5nT3B0aW1pemVyKGZpbHRlcik7XG4gIH0gZWxzZSB7XG4gICAgcmV0dXJuIGZpbHRlcjtcbiAgfVxufVxuXG5leHBvcnQgZGVmYXVsdCBmaWx0ZXIgPT4ge1xuICBjb25zdCBvdXRwdXQgPSBmaWx0ZXIgPyBhcHBseURlZmF1bHRQaXZvdHMobm9ybWFsaXplRmlsdGVycyhmaWx0ZXIpKSA6IGZpbHRlcjtcbiAgcmV0dXJuIG91dHB1dDtcbn07XG4iXX0=

@@ -98,2 +98,2 @@ "use strict";

exports.AGGS_WRAPPER_NESTED = AGGS_WRAPPER_NESTED;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jb25zdGFudHMuanMiXSwibmFtZXMiOlsiSU5fT1AiLCJOT1RfSU5fT1AiLCJBTExfT1AiLCJTT01FX05PVF9JTl9PUCIsIkZJTFRFUl9PUCIsIkFORF9PUCIsIk9SX09QIiwiTk9UX09QIiwiR1RfT1AiLCJHVEVfT1AiLCJMVF9PUCI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Ul9ORVNURUQgPSAnbmVzdGVkJztcbiJdfQ==

@@ -12,6 +12,14 @@ "use strict";

function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

@@ -21,6 +29,10 @@

function _sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
function _slicedToArray(arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return _sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
function flattenAggregations(_ref) {

@@ -75,2 +87,2 @@ var aggregations = _ref.aggregations,

exports.default = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9mbGF0dGVuQWdncmVnYXRpb25zLmpzIl0sIm5hbWVzIjpbImZsYXR0ZW5BZ2dyZWdhdGlvbnMiLCJhZ2dyZWdhdGlvbnMiLCJpbmNsdWRlTWlzc2luZyIsIk9iamVjdCIsImVudHJpZXMiLCJyZWR1Y2UiLCJwcnVuZWRBZ2dzIiwia2V5IiwidmFsdWUiL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ict";

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUNBOztBQUNBOztBQUNBOztBQUNBIiwiZmlsZSI6ImluZGV4LmpzIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogYXMgQ09OU1RBTlRTIGZyb20gJy4vY29uc3RhbnRzJztcbmV4cG9ydCB7IGRlZmF1bHQgYXMgYnVpbGRRdWVyeSB9IGZyb20gJy4vYnVpbGRRdWVyeSc7XG5leHBvcnQgeyBkZWZhdWx0IGFzIGZsYXR0ZW5BZ2dyZWdhdGlvbnMgfSBmcm9tICcuL2ZsYXR0ZW5BZ2dyZWdhdGlvbnMnO1xuZXhwb3J0IHsgZGVmYXVsdCBhcyBidWlsZEFnZ3JlZ2F0aW9ucyB9IGZyb20gJy4vYnVpbGRBZ2dyZWdhdGlvbnMnO1xuZXhwb3J0IHsgZGVmYXVsdCBhcyBlc1RvU2FmZUpzSW50IH0gZnJvbSAnLi91dGlscy9lc1RvU2FmZUpzSW50JztcbiJdfQ==
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUNBOztBQUNBOztBQUNBOztBQUNBIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogYXMgQ09OU1RBTlRTIGZyb20gJy4vY29uc3RhbnRzJztcbmV4cG9ydCB7IGRlZmF1bHQgYXMgYnVpbGRRdWVyeSB9IGZyb20gJy4vYnVpbGRRdWVyeSc7XG5leHBvcnQgeyBkZWZhdWx0IGFzIGZsYXR0ZW5BZ2dyZWdhdGlvbnMgfSBmcm9tICcuL2ZsYXR0ZW5BZ2dyZWdhdGlvbnMnO1xuZXhwb3J0IHsgZGVmYXVsdCBhcyBidWlsZEFnZ3JlZ2F0aW9ucyB9IGZyb20gJy4vYnVpbGRBZ2dyZWdhdGlvbnMnO1xuZXhwb3J0IHsgZGVmYXVsdCBhcyBlc1RvU2FmZUpzSW50IH0gZnJvbSAnLi91dGlscy9lc1RvU2FmZUpzSW50JztcbiJdfQ==

@@ -30,4 +30,10 @@ "use strict";

function _toArray(arr) { return Array.isArray(arr) ? arr : Array.from(arr); }
function _toArray(arr) { return _arrayWithHoles(arr) || _iterableToArray(arr) || _nonIterableRest(); }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
function mergePath(target, _ref, data) {

@@ -75,2 +81,2 @@ var _ref2 = _toArray(_ref),

}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlscy9lc0ZpbHRlci5qcyJdLCJuYW1lcyI6WyJtZXJnZVBhdGgiLCJ0YXJnZXQiLCJkYXRhIiwia2V5IiwicGF0aCIsImxlbmd0aCIsImdldCIsImlzTmVzdGVkIiwiZmlsdGVyIiwiaGFzT3duUHJvcGVydHkiLCJDT05TVEFOVFM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19

@@ -15,2 +15,2 @@ "use strict";

exports.default = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlscy9lc1RvU2FmZUpzSW50LmpzIl0sIm5hbWVzIjpbIk51bWJlciIsImlzSW50ZWdlciIsIngiLCJpc1NhZmVJbnRlZ2VyIl0sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQUE7O2VBRWU7QUFBQSxTQUNiQSxPQUFPQyxTQUFQLENBQWlCQyxDQUFqQixLQUF1QixDQUFDRixPQUFPRyxhQUFQLENBQXFCRCxDQUFyQixDQUF4Qiw0QkFBZ0VBLENBRG5EO0FBQUEsQyIsImZpbGUiOiJlc1RvU2FmZUpzSW50LmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRVNfTUFYX0xPTkcgfSBmcm9tICcuLi9jb25zdGFudHMnO1xuXG5leHBvcnQgZGVmYXVsdCB4ID0+XG4gIE51bWJlci5pc0ludGVnZXIoeCkgJiYgIU51bWJlci5pc1NhZmVJbnRlZ2VyKHgpID8gRVNfTUFYX0xPTkcgOiB4O1xuIl19
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlscy9lc1RvU2FmZUpzSW50LmpzIl0sIm5hbWVzIjpbIngiLCJOdW1iZXIiLCJpc0ludGVnZXIiLCJpc1NhZmVJbnRlZ2VyIl0sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQUE7O2VBRWUsa0JBQUFBLENBQUM7QUFBQSxTQUNkQyxNQUFNLENBQUNDLFNBQVAsQ0FBaUJGLENBQWpCLEtBQXVCLENBQUNDLE1BQU0sQ0FBQ0UsYUFBUCxDQUFxQkgsQ0FBckIsQ0FBeEIsNEJBQWdFQSxDQURsRDtBQUFBLEMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBFU19NQVhfTE9ORyB9IGZyb20gJy4uL2NvbnN0YW50cyc7XG5cbmV4cG9ydCBkZWZhdWx0IHggPT5cbiAgTnVtYmVyLmlzSW50ZWdlcih4KSAmJiAhTnVtYmVyLmlzU2FmZUludGVnZXIoeCkgPyBFU19NQVhfTE9ORyA6IHg7XG4iXX0=
{
"name": "@arranger/middleware",
"version": "1.1.3",
"version": "1.1.4",
"description": "Arranger Middleware",

@@ -27,4 +27,4 @@ "main": "dist/index.js",

"devDependencies": {
"@babel/cli": "7.0.0-beta.40",
"@babel/core": "7.0.0-beta.40",
"@babel/cli": "^7.2.3",
"@babel/core": "^7.3.3",
"@babel/plugin-proposal-class-properties": "7.0.0-beta.40",

@@ -31,0 +31,0 @@ "@babel/plugin-proposal-export-namespace-from": "7.0.0-beta.40",