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
9
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 1.0.26 to 1.0.27

16

dist/buildQuery/index.js

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

function wrapFilter(_ref) {
var wrapFilter = function wrapFilter(_ref) {
var esFilter = _ref.esFilter,

@@ -44,3 +44,3 @@ nestedFields = _ref.nestedFields,

}, isNot ? (0, _esFilter2.wrapMustNot)(esFilter) : esFilter);
}
};

@@ -222,4 +222,7 @@ function getRegexFilter(_ref2) {

filter = _ref9.filter,
content = _ref9.filter.content;
_ref9$filter = _ref9.filter,
content = _ref9$filter.content,
op = _ref9$filter.op;
return wrapFilter({
isNot: op === _constants.NOT_IN_OP,
filter: filter,

@@ -302,4 +305,9 @@ nestedFields: nestedFields,

});
console.log('input: ', JSON.stringify({
nestedFields: nestedFields,
filters: rawFilters
}));
console.log('output: ', JSON.stringify(output));
return output;
}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9idWlsZFF1ZXJ5L2luZGV4LmpzIl0sIm5hbWVzIjpbIndyYXBGaWx0ZXIiLCJlc0ZpbHRlciIsIm5lc3RlZEZpZWxkcyIsImZpbHRlciIsImlzTm90IiwiY29udGVudCIsImZpZWxkIiwic3BsaXQiLCJzbGljZSIsIm1hcCIsInAiLCJpIiwic2VnbWVudHMiLCJqb2luIiwiaW5jbHVkZXMiLCJyZXZlcnNlIiwicmVkdWNlIiwicGF0aCIsImdldFJlZ2V4RmlsdGVyIiwib3AiLCJ2YWx1ZSIsInJlZ2V4cCIsInJlcGxhY2UiLCJnZXRUZXJtRmlsdGVyIiwidGVybXMiLCJpdGVtIiwiZ2V0RnV6enlGaWx0ZXIiLCJmaWV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HB1dCA9IG9wU3dpdGNoKHtcbiAgICBuZXN0ZWRGaWVsZHMsXG4gICAgZmlsdGVyOiBub3JtYWxpemVGaWx0ZXJzKHJhd0ZpbHRlcnMpLFxuICB9KTtcbiAgY29uc29sZS5sb2coXG4gICAgJ2lucHV0OiAnLFxuICAgIEpTT04uc3RyaW5naWZ5KHtcbiAgICAgIG5lc3RlZEZpZWxkcyxcbiAgICAgIGZpbHRlcnM6IHJhd0ZpbHRlcnMsXG4gICAgfSksXG4gICk7XG4gIGNvbnNvbGUubG9nKCdvdXRwdXQ6ICcsIEpTT04uc3RyaW5naWZ5KG91dHB1dCkpO1xuICByZXR1cm4gb3V0cHV0O1xufVxuIl19
{
"name": "@arranger/middleware",
"version": "1.0.26",
"version": "1.0.27",
"description": "Arranger Middleware",

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

@@ -970,2 +970,40 @@ import buildQuery from '../../src/buildQuery';

test('buildQuery "not-in" op', () => {
const input = {
nestedFields: [],
filters: {
op: 'and',
content: [
{
op: 'not-in',
content: {
field: 'kf_id',
value: ['id_1', 'id_2', 'id_3'],
},
},
],
},
};
const output = {
bool: {
must: [
{
bool: {
must_not: [
{
terms: {
kf_id: ['id_1', 'id_2', 'id_3'],
boost: 0,
},
},
],
},
},
],
},
};
const actualOutput = buildQuery(input);
expect(actualOutput).toEqual(output);
});
// we need a way to handle object fields before the following is valid

@@ -972,0 +1010,0 @@ // test('it must reject invalid pivot fields', () => {

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