Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andris9 committed Mar 30, 2023
1 parent 8a68eae commit f2cd6ee
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
@@ -1,4 +1,4 @@
FROM --platform=$TARGETPLATFORM node:lts-alpine
FROM --platform=${BUILDPLATFORM} node:lts-alpine
ARG TARGETPLATFORM
ARG TARGETARCH
ARG TARGETVARIANT
Expand Down
12 changes: 2 additions & 10 deletions lib/search-query.js
Expand Up @@ -3,11 +3,7 @@
const SearchString = require('search-string');
const parser = require('logic-query-parser');

const { parse } = require('liqe');

const util = require('util');

function convertSearchQuery(queryStr, elasticSearch) {
function convertSearchQuery(queryStr) {
const queryTree = parser.parse(queryStr);

let walkQueryTree = (node, branch) => {
Expand Down Expand Up @@ -52,11 +48,7 @@ function convertSearchQuery(queryStr, elasticSearch) {
}
};

//walkQueryTree(queryTree);

console.log('------');
console.log(queryStr);
console.log(util.inspect(parse(queryStr), false, 22, true));
walkQueryTree(queryTree);
}

module.exports = { convertSearchQuery };
Expand Down
7 changes: 3 additions & 4 deletions package.json
Expand Up @@ -26,7 +26,7 @@
"ajv": "8.12.0",
"chai": "4.3.7",
"docsify-cli": "4.4.4",
"eslint": "8.36.0",
"eslint": "8.37.0",
"eslint-config-nodemailer": "1.2.0",
"eslint-config-prettier": "8.8.0",
"grunt": "1.6.1",
Expand All @@ -35,7 +35,7 @@
"grunt-mocha-test": "0.13.3",
"grunt-shell-spawn": "0.4.0",
"grunt-wait": "0.3.0",
"imapflow": "1.0.123",
"imapflow": "1.0.125",
"mailparser": "3.6.4",
"mocha": "10.2.0",
"request": "2.88.2",
Expand All @@ -59,7 +59,7 @@
"generate-password": "1.7.0",
"hash-wasm": "4.9.0",
"he": "1.2.0",
"html-to-text": "9.0.4",
"html-to-text": "9.0.5",
"humanname": "0.2.2",
"iconv-lite": "0.6.3",
"ioredfour": "1.2.0-ioredis-07",
Expand All @@ -72,7 +72,6 @@
"libbase64": "1.2.1",
"libmime": "5.2.1",
"libqp": "2.0.1",
"liqe": "^3.6.0",
"logic-query-parser": "0.0.5",
"mailauth": "4.3.1",
"mailsplit": "5.4.0",
Expand Down

0 comments on commit f2cd6ee

Please sign in to comment.