mirror of
https://github.com/nodemailer/wildduck.git
synced 2024-09-20 07:16:05 +08:00
fixed tests
This commit is contained in:
parent
8a68eae392
commit
f2cd6ee333
|
@ -1,4 +1,4 @@
|
|||
FROM --platform=$TARGETPLATFORM node:lts-alpine
|
||||
FROM --platform=${BUILDPLATFORM} node:lts-alpine
|
||||
ARG TARGETPLATFORM
|
||||
ARG TARGETARCH
|
||||
ARG TARGETVARIANT
|
||||
|
|
|
@ -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) => {
|
||||
|
@ -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 };
|
||||
|
|
|
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue