@allgemein/mango-expressions 1.3.3 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AExpr.d.ts +11 -0
- package/AExpr.js +37 -0
- package/AExpr.js.map +1 -0
- package/Constants.d.ts +3 -0
- package/Constants.js +2 -5
- package/Constants.js.map +1 -1
- package/IWalker.d.ts +19 -0
- package/IWalker.js +2 -0
- package/IWalker.js.map +1 -0
- package/README.md +69 -1
- package/_Expr.d.ts +1 -0
- package/_Expr.js +52 -0
- package/_Expr.js.map +1 -0
- package/ast/AbstractValue.d.ts +7 -0
- package/ast/AbstractValue.js +27 -0
- package/ast/AbstractValue.js.map +1 -0
- package/ast/Bindings.d.ts +1 -2
- package/ast/Bindings.js +1 -5
- package/ast/Bindings.js.map +1 -1
- package/ast/Constan.d.ts +11 -0
- package/ast/Constan.js +2 -0
- package/ast/Constan.js.map +1 -0
- package/ast/Context.js +8 -12
- package/ast/Context.js.map +1 -1
- package/ast/Expr.d.ts +23 -0
- package/ast/Expr.js +90 -0
- package/ast/Expr.js.map +1 -0
- package/ast/IExpr.d.ts +16 -0
- package/ast/IExpr.js +2 -0
- package/ast/IExpr.js.map +1 -0
- package/ast/IParser.d.ts +14 -0
- package/ast/IParser.js +2 -0
- package/ast/IParser.js.map +1 -0
- package/ast/IStackEntry.d.ts +13 -0
- package/ast/IStackEntry.js +2 -0
- package/ast/IStackEntry.js.map +1 -0
- package/ast/JsonParser.d.ts +25 -0
- package/ast/JsonParser.js +60 -0
- package/ast/JsonParser.js.map +1 -0
- package/ast/KeyDesc.d.ts +2 -4
- package/ast/KeyDesc.js +4 -9
- package/ast/KeyDesc.js.map +1 -1
- package/ast/MultiArgs.js +1 -5
- package/ast/MultiArgs.js.map +1 -1
- package/ast/PArray.d.ts +1 -10
- package/ast/PArray.js +67 -53
- package/ast/PArray.js.map +1 -1
- package/ast/PObject.d.ts +1 -17
- package/ast/PObject.js +130 -108
- package/ast/PObject.js.map +1 -1
- package/ast/RefDesc.d.ts +5 -0
- package/ast/RefDesc.js +12 -0
- package/ast/RefDesc.js.map +1 -0
- package/ast/Selector.d.ts +19 -5
- package/ast/Selector.js +31 -9
- package/ast/Selector.js.map +1 -1
- package/ast/StackEntry.d.ts +24 -0
- package/ast/StackEntry.js +121 -0
- package/ast/StackEntry.js.map +1 -0
- package/ast/StringParser.d.ts +16 -0
- package/ast/StringParser.js +303 -0
- package/ast/StringParser.js.map +1 -0
- package/ast/Unset.d.ts +2 -2
- package/ast/Unset.js +2 -6
- package/ast/Unset.js.map +1 -1
- package/ast/ValueDesc.d.ts +4 -0
- package/ast/ValueDesc.js +9 -0
- package/ast/ValueDesc.js.map +1 -0
- package/ast/functions.d.ts +1 -0
- package/ast/functions.js +8 -0
- package/ast/functions.js.map +1 -0
- package/browser.d.ts +52 -55
- package/browser.js +53 -117
- package/browser.js.map +1 -1
- package/errors/InvalidValueError.d.ts +4 -0
- package/errors/InvalidValueError.js +6 -0
- package/errors/InvalidValueError.js.map +1 -0
- package/errors/NotYetImplementedError.d.ts +3 -0
- package/errors/NotYetImplementedError.js +6 -0
- package/errors/NotYetImplementedError.js.map +1 -0
- package/errors/UnsupportedInputError.d.ts +3 -0
- package/errors/UnsupportedInputError.js +6 -0
- package/errors/UnsupportedInputError.js.map +1 -0
- package/functions.d.ts +9 -0
- package/functions.js +107 -0
- package/functions.js.map +1 -0
- package/index.d.ts +1 -1
- package/index.js +5 -64
- package/index.js.map +1 -1
- package/operators/AbstractCompare.d.ts +23 -0
- package/operators/AbstractCompare.js +100 -0
- package/operators/AbstractCompare.js.map +1 -0
- package/operators/AbstractFunction.d.ts +6 -0
- package/operators/AbstractFunction.js +10 -0
- package/operators/AbstractFunction.js.map +1 -0
- package/operators/AbstractJunctor.d.ts +13 -0
- package/operators/AbstractJunctor.js +31 -0
- package/operators/AbstractJunctor.js.map +1 -0
- package/operators/AbstractJunctorArray.d.ts +18 -0
- package/operators/AbstractJunctorArray.js +63 -0
- package/operators/AbstractJunctorArray.js.map +1 -0
- package/operators/AbstractOperator.d.ts +6 -6
- package/operators/AbstractOperator.js +12 -31
- package/operators/AbstractOperator.js.map +1 -1
- package/operators/Components.d.ts +30 -0
- package/operators/Components.js +140 -0
- package/operators/Components.js.map +1 -0
- package/operators/arithmetic/Avg.d.ts +2 -2
- package/operators/arithmetic/Avg.js +2 -6
- package/operators/arithmetic/Avg.js.map +1 -1
- package/operators/arithmetic/Count.d.ts +2 -2
- package/operators/arithmetic/Count.js +2 -6
- package/operators/arithmetic/Count.js.map +1 -1
- package/operators/arithmetic/Max.d.ts +2 -2
- package/operators/arithmetic/Max.js +2 -6
- package/operators/arithmetic/Max.js.map +1 -1
- package/operators/arithmetic/Min.d.ts +2 -2
- package/operators/arithmetic/Min.js +2 -6
- package/operators/arithmetic/Min.js.map +1 -1
- package/operators/arithmetic/Multiply.d.ts +2 -2
- package/operators/arithmetic/Multiply.js +2 -6
- package/operators/arithmetic/Multiply.js.map +1 -1
- package/operators/arithmetic/Sum.d.ts +2 -2
- package/operators/arithmetic/Sum.js +2 -6
- package/operators/arithmetic/Sum.js.map +1 -1
- package/operators/array/First.d.ts +2 -4
- package/operators/array/First.js +9 -15
- package/operators/array/First.js.map +1 -1
- package/operators/array/Last.d.ts +2 -4
- package/operators/array/Last.js +9 -15
- package/operators/array/Last.js.map +1 -1
- package/operators/array/Map.d.ts +5 -6
- package/operators/array/Map.js +14 -20
- package/operators/array/Map.js.map +1 -1
- package/operators/compare/EqualDesc.d.ts +6 -7
- package/operators/compare/EqualDesc.js +13 -11
- package/operators/compare/EqualDesc.js.map +1 -1
- package/operators/compare/EqualDescLookup.d.ts +2 -2
- package/operators/compare/EqualDescLookup.js +24 -31
- package/operators/compare/EqualDescLookup.js.map +1 -1
- package/operators/compare/GreaterThen.d.ts +3 -4
- package/operators/compare/GreaterThen.js +3 -7
- package/operators/compare/GreaterThen.js.map +1 -1
- package/operators/compare/GreaterThenEqual.d.ts +3 -4
- package/operators/compare/GreaterThenEqual.js +3 -7
- package/operators/compare/GreaterThenEqual.js.map +1 -1
- package/operators/compare/In.d.ts +3 -4
- package/operators/compare/In.js +3 -7
- package/operators/compare/In.js.map +1 -1
- package/operators/compare/IsNotNull.d.ts +3 -3
- package/operators/compare/IsNotNull.js +3 -7
- package/operators/compare/IsNotNull.js.map +1 -1
- package/operators/compare/IsNull.d.ts +3 -3
- package/operators/compare/IsNull.js +3 -7
- package/operators/compare/IsNull.js.map +1 -1
- package/operators/compare/LessThen.d.ts +3 -3
- package/operators/compare/LessThen.js +3 -6
- package/operators/compare/LessThen.js.map +1 -1
- package/operators/compare/LessThenEqual.d.ts +3 -4
- package/operators/compare/LessThenEqual.js +3 -7
- package/operators/compare/LessThenEqual.js.map +1 -1
- package/operators/compare/Like.d.ts +3 -4
- package/operators/compare/Like.js +3 -7
- package/operators/compare/Like.js.map +1 -1
- package/operators/compare/NotEqual.d.ts +3 -4
- package/operators/compare/NotEqual.js +3 -7
- package/operators/compare/NotEqual.js.map +1 -1
- package/operators/compare/NotIn.d.ts +3 -4
- package/operators/compare/NotIn.js +3 -7
- package/operators/compare/NotIn.js.map +1 -1
- package/operators/compare/Regex.d.ts +2 -6
- package/operators/compare/Regex.js +28 -33
- package/operators/compare/Regex.js.map +1 -1
- package/operators/date/Date.d.ts +2 -2
- package/operators/date/Date.js +3 -6
- package/operators/date/Date.js.map +1 -1
- package/operators/date/DateToString.d.ts +4 -5
- package/operators/date/DateToString.js +15 -20
- package/operators/date/DateToString.js.map +1 -1
- package/operators/date/Day.d.ts +2 -2
- package/operators/date/Day.js +2 -6
- package/operators/date/Day.js.map +1 -1
- package/operators/date/Month.d.ts +2 -2
- package/operators/date/Month.js +2 -6
- package/operators/date/Month.js.map +1 -1
- package/operators/date/Year.d.ts +2 -2
- package/operators/date/Year.js +2 -6
- package/operators/date/Year.js.map +1 -1
- package/operators/logic/AndDesc.d.ts +5 -7
- package/operators/logic/AndDesc.js +16 -21
- package/operators/logic/AndDesc.js.map +1 -1
- package/operators/logic/AndDescLookup.d.ts +2 -2
- package/operators/logic/AndDescLookup.js +1 -5
- package/operators/logic/AndDescLookup.js.map +1 -1
- package/operators/logic/NotDesc.d.ts +8 -0
- package/operators/logic/NotDesc.js +21 -0
- package/operators/logic/NotDesc.js.map +1 -0
- package/operators/logic/OrDesc.d.ts +5 -7
- package/operators/logic/OrDesc.js +5 -21
- package/operators/logic/OrDesc.js.map +1 -1
- package/operators/stage/AbstractSection.d.ts +7 -0
- package/operators/stage/AbstractSection.js +11 -0
- package/operators/stage/AbstractSection.js.map +1 -0
- package/operators/stage/Group.d.ts +4 -10
- package/operators/stage/Group.js +33 -39
- package/operators/stage/Group.js.map +1 -1
- package/operators/stage/Limit.d.ts +2 -2
- package/operators/stage/Limit.js +2 -6
- package/operators/stage/Limit.js.map +1 -1
- package/operators/stage/Match.d.ts +2 -8
- package/operators/stage/Match.js +2 -20
- package/operators/stage/Match.js.map +1 -1
- package/operators/stage/Project.d.ts +2 -8
- package/operators/stage/Project.js +17 -21
- package/operators/stage/Project.js.map +1 -1
- package/operators/stage/Query..d.ts +1 -0
- package/operators/stage/Query..js +3 -0
- package/operators/stage/Query..js.map +1 -0
- package/operators/stage/Skip.d.ts +2 -6
- package/operators/stage/Skip.js +6 -11
- package/operators/stage/Skip.js.map +1 -1
- package/operators/stage/Sort.d.ts +2 -6
- package/operators/stage/Sort.js +6 -11
- package/operators/stage/Sort.js.map +1 -1
- package/operators/string/Substr.d.ts +2 -4
- package/operators/string/Substr.js +19 -22
- package/operators/string/Substr.js.map +1 -1
- package/operators/string/ToFloat.d.ts +2 -3
- package/operators/string/ToFloat.js +9 -15
- package/operators/string/ToFloat.js.map +1 -1
- package/operators/string/ToInt.d.ts +2 -3
- package/operators/string/ToInt.js +9 -15
- package/operators/string/ToInt.js.map +1 -1
- package/operators/string/ToLower.d.ts +2 -3
- package/operators/string/ToLower.js +9 -15
- package/operators/string/ToLower.js.map +1 -1
- package/operators/string/ToUpper.d.ts +2 -4
- package/operators/string/ToUpper.js +9 -15
- package/operators/string/ToUpper.js.map +1 -1
- package/package.json +2 -1
- package/walker/lookup/ILookupFn.d.ts +2 -2
- package/walker/lookup/ILookupFn.js +1 -2
- package/walker/lookup/LookupWalker.d.ts +11 -11
- package/walker/lookup/LookupWalker.js +19 -23
- package/walker/lookup/LookupWalker.js.map +1 -1
- package/IMangoWalker.d.ts +0 -19
- package/IMangoWalker.js +0 -3
- package/IMangoWalker.js.map +0 -1
- package/MangoExpression.d.ts +0 -15
- package/MangoExpression.js +0 -88
- package/MangoExpression.js.map +0 -1
- package/ast/PAst.d.ts +0 -42
- package/ast/PAst.js +0 -158
- package/ast/PAst.js.map +0 -1
- package/ast/PValue.d.ts +0 -10
- package/ast/PValue.js +0 -22
- package/ast/PValue.js.map +0 -1
- package/ast/Value.d.ts +0 -3
- package/ast/Value.js +0 -8
- package/ast/Value.js.map +0 -1
- package/ast/ValueRef.d.ts +0 -4
- package/ast/ValueRef.js +0 -11
- package/ast/ValueRef.js.map +0 -1
- package/operators/Operators.d.ts +0 -35
- package/operators/Operators.js +0 -149
- package/operators/Operators.js.map +0 -1
- package/operators/compare/AbstractCompare.d.ts +0 -5
- package/operators/compare/AbstractCompare.js +0 -14
- package/operators/compare/AbstractCompare.js.map +0 -1
- package/operators/logic/AbstractLogic.d.ts +0 -3
- package/operators/logic/AbstractLogic.js +0 -8
- package/operators/logic/AbstractLogic.js.map +0 -1
- package/operators/logic/Not.d.ts +0 -8
- package/operators/logic/Not.js +0 -22
- package/operators/logic/Not.js.map +0 -1
package/browser.d.ts
CHANGED
|
@@ -1,55 +1,52 @@
|
|
|
1
|
-
export { Context } from './ast/Context';
|
|
2
|
-
export { MultiArgs } from './ast/MultiArgs';
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
30
|
-
export {
|
|
31
|
-
export {
|
|
32
|
-
export {
|
|
33
|
-
export {
|
|
34
|
-
export {
|
|
35
|
-
export {
|
|
36
|
-
export {
|
|
37
|
-
export {
|
|
38
|
-
export {
|
|
39
|
-
export {
|
|
40
|
-
export {
|
|
41
|
-
export {
|
|
42
|
-
export {
|
|
43
|
-
export {
|
|
44
|
-
export {
|
|
45
|
-
export {
|
|
46
|
-
export {
|
|
47
|
-
export {
|
|
48
|
-
export {
|
|
49
|
-
export {
|
|
50
|
-
export {
|
|
51
|
-
export {
|
|
52
|
-
export {
|
|
53
|
-
export { ToInt } from './operators/string/ToInt';
|
|
54
|
-
export { ToLower } from './operators/string/ToLower';
|
|
55
|
-
export { ToUpper } from './operators/string/ToUpper';
|
|
1
|
+
export { Context } from './ast/Context.js';
|
|
2
|
+
export { MultiArgs } from './ast/MultiArgs.js';
|
|
3
|
+
export { Expr } from './ast/Expr.js';
|
|
4
|
+
export { AbstractValue } from './ast/AbstractValue.js';
|
|
5
|
+
export { Unset } from './ast/Unset.js';
|
|
6
|
+
export { ValueDesc } from './ast/ValueDesc.js';
|
|
7
|
+
export { RefDesc } from './ast/RefDesc.js';
|
|
8
|
+
export { AUTO_EQUAL_CONV_SUPPORT, NUMBER_PROJECT_SUPPORT } from './Constants.js';
|
|
9
|
+
export { IWalker, IWalkerControl } from './IWalker.js';
|
|
10
|
+
export { AbstractOperator } from './operators/AbstractOperator.js';
|
|
11
|
+
export { Avg } from './operators/arithmetic/Avg.js';
|
|
12
|
+
export { Count } from './operators/arithmetic/Count.js';
|
|
13
|
+
export { Max } from './operators/arithmetic/Max.js';
|
|
14
|
+
export { Min } from './operators/arithmetic/Min.js';
|
|
15
|
+
export { Multiply } from './operators/arithmetic/Multiply.js';
|
|
16
|
+
export { Sum } from './operators/arithmetic/Sum.js';
|
|
17
|
+
export { First } from './operators/array/First.js';
|
|
18
|
+
export { Last } from './operators/array/Last.js';
|
|
19
|
+
export { Map } from './operators/array/Map.js';
|
|
20
|
+
export { AbstractCompare } from './operators/AbstractCompare.js';
|
|
21
|
+
export { EqualDesc, Eq } from './operators/compare/EqualDesc.js';
|
|
22
|
+
export { GreaterThen } from './operators/compare/GreaterThen.js';
|
|
23
|
+
export { GreaterThenEqual } from './operators/compare/GreaterThenEqual.js';
|
|
24
|
+
export { In } from './operators/compare/In.js';
|
|
25
|
+
export { IsNotNull } from './operators/compare/IsNotNull.js';
|
|
26
|
+
export { IsNull } from './operators/compare/IsNull.js';
|
|
27
|
+
export { LessThen } from './operators/compare/LessThen.js';
|
|
28
|
+
export { LessThenEqual } from './operators/compare/LessThenEqual.js';
|
|
29
|
+
export { Like } from './operators/compare/Like.js';
|
|
30
|
+
export { NotEqual } from './operators/compare/NotEqual.js';
|
|
31
|
+
export { NotIn } from './operators/compare/NotIn.js';
|
|
32
|
+
export { Regex } from './operators/compare/Regex.js';
|
|
33
|
+
export { Date } from './operators/date/Date.js';
|
|
34
|
+
export { DateToString } from './operators/date/DateToString.js';
|
|
35
|
+
export { Day } from './operators/date/Day.js';
|
|
36
|
+
export { Month } from './operators/date/Month.js';
|
|
37
|
+
export { Year } from './operators/date/Year.js';
|
|
38
|
+
export { AndDesc, And } from './operators/logic/AndDesc.js';
|
|
39
|
+
export { NotDesc } from './operators/logic/NotDesc.js';
|
|
40
|
+
export { OrDesc, Or } from './operators/logic/OrDesc.js';
|
|
41
|
+
export { Components } from './operators/Components.js';
|
|
42
|
+
export { Group, GROUP_ID } from './operators/stage/Group.js';
|
|
43
|
+
export { Limit } from './operators/stage/Limit.js';
|
|
44
|
+
export { Match } from './operators/stage/Match.js';
|
|
45
|
+
export { Project } from './operators/stage/Project.js';
|
|
46
|
+
export { Skip } from './operators/stage/Skip.js';
|
|
47
|
+
export { Sort } from './operators/stage/Sort.js';
|
|
48
|
+
export { Substr } from './operators/string/Substr.js';
|
|
49
|
+
export { ToFloat } from './operators/string/ToFloat.js';
|
|
50
|
+
export { ToInt } from './operators/string/ToInt.js';
|
|
51
|
+
export { ToLower } from './operators/string/ToLower.js';
|
|
52
|
+
export { ToUpper } from './operators/string/ToUpper.js';
|
package/browser.js
CHANGED
|
@@ -1,118 +1,54 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
Object.defineProperty(exports, "GreaterThen", { enumerable: true, get: function () { return GreaterThen_1.GreaterThen; } });
|
|
55
|
-
var GreaterThenEqual_1 = require("./operators/compare/GreaterThenEqual");
|
|
56
|
-
Object.defineProperty(exports, "GreaterThenEqual", { enumerable: true, get: function () { return GreaterThenEqual_1.GreaterThenEqual; } });
|
|
57
|
-
var In_1 = require("./operators/compare/In");
|
|
58
|
-
Object.defineProperty(exports, "In", { enumerable: true, get: function () { return In_1.In; } });
|
|
59
|
-
var IsNotNull_1 = require("./operators/compare/IsNotNull");
|
|
60
|
-
Object.defineProperty(exports, "IsNotNull", { enumerable: true, get: function () { return IsNotNull_1.IsNotNull; } });
|
|
61
|
-
var IsNull_1 = require("./operators/compare/IsNull");
|
|
62
|
-
Object.defineProperty(exports, "IsNull", { enumerable: true, get: function () { return IsNull_1.IsNull; } });
|
|
63
|
-
var LessThen_1 = require("./operators/compare/LessThen");
|
|
64
|
-
Object.defineProperty(exports, "LessThen", { enumerable: true, get: function () { return LessThen_1.LessThen; } });
|
|
65
|
-
var LessThenEqual_1 = require("./operators/compare/LessThenEqual");
|
|
66
|
-
Object.defineProperty(exports, "LessThenEqual", { enumerable: true, get: function () { return LessThenEqual_1.LessThenEqual; } });
|
|
67
|
-
var Like_1 = require("./operators/compare/Like");
|
|
68
|
-
Object.defineProperty(exports, "Like", { enumerable: true, get: function () { return Like_1.Like; } });
|
|
69
|
-
var NotEqual_1 = require("./operators/compare/NotEqual");
|
|
70
|
-
Object.defineProperty(exports, "NotEqual", { enumerable: true, get: function () { return NotEqual_1.NotEqual; } });
|
|
71
|
-
var NotIn_1 = require("./operators/compare/NotIn");
|
|
72
|
-
Object.defineProperty(exports, "NotIn", { enumerable: true, get: function () { return NotIn_1.NotIn; } });
|
|
73
|
-
var Regex_1 = require("./operators/compare/Regex");
|
|
74
|
-
Object.defineProperty(exports, "Regex", { enumerable: true, get: function () { return Regex_1.Regex; } });
|
|
75
|
-
var Date_1 = require("./operators/date/Date");
|
|
76
|
-
Object.defineProperty(exports, "Date", { enumerable: true, get: function () { return Date_1.Date; } });
|
|
77
|
-
var DateToString_1 = require("./operators/date/DateToString");
|
|
78
|
-
Object.defineProperty(exports, "DateToString", { enumerable: true, get: function () { return DateToString_1.DateToString; } });
|
|
79
|
-
var Day_1 = require("./operators/date/Day");
|
|
80
|
-
Object.defineProperty(exports, "Day", { enumerable: true, get: function () { return Day_1.Day; } });
|
|
81
|
-
var Month_1 = require("./operators/date/Month");
|
|
82
|
-
Object.defineProperty(exports, "Month", { enumerable: true, get: function () { return Month_1.Month; } });
|
|
83
|
-
var Year_1 = require("./operators/date/Year");
|
|
84
|
-
Object.defineProperty(exports, "Year", { enumerable: true, get: function () { return Year_1.Year; } });
|
|
85
|
-
var AndDesc_1 = require("./operators/logic/AndDesc");
|
|
86
|
-
Object.defineProperty(exports, "AndDesc", { enumerable: true, get: function () { return AndDesc_1.AndDesc; } });
|
|
87
|
-
Object.defineProperty(exports, "And", { enumerable: true, get: function () { return AndDesc_1.And; } });
|
|
88
|
-
var Not_1 = require("./operators/logic/Not");
|
|
89
|
-
Object.defineProperty(exports, "Not", { enumerable: true, get: function () { return Not_1.Not; } });
|
|
90
|
-
var OrDesc_1 = require("./operators/logic/OrDesc");
|
|
91
|
-
Object.defineProperty(exports, "OrDesc", { enumerable: true, get: function () { return OrDesc_1.OrDesc; } });
|
|
92
|
-
Object.defineProperty(exports, "Or", { enumerable: true, get: function () { return OrDesc_1.Or; } });
|
|
93
|
-
var Operators_1 = require("./operators/Operators");
|
|
94
|
-
Object.defineProperty(exports, "Operators", { enumerable: true, get: function () { return Operators_1.Operators; } });
|
|
95
|
-
var Group_1 = require("./operators/stage/Group");
|
|
96
|
-
Object.defineProperty(exports, "Group", { enumerable: true, get: function () { return Group_1.Group; } });
|
|
97
|
-
Object.defineProperty(exports, "GROUP_ID", { enumerable: true, get: function () { return Group_1.GROUP_ID; } });
|
|
98
|
-
var Limit_1 = require("./operators/stage/Limit");
|
|
99
|
-
Object.defineProperty(exports, "Limit", { enumerable: true, get: function () { return Limit_1.Limit; } });
|
|
100
|
-
var Match_1 = require("./operators/stage/Match");
|
|
101
|
-
Object.defineProperty(exports, "Match", { enumerable: true, get: function () { return Match_1.Match; } });
|
|
102
|
-
var Project_1 = require("./operators/stage/Project");
|
|
103
|
-
Object.defineProperty(exports, "Project", { enumerable: true, get: function () { return Project_1.Project; } });
|
|
104
|
-
var Skip_1 = require("./operators/stage/Skip");
|
|
105
|
-
Object.defineProperty(exports, "Skip", { enumerable: true, get: function () { return Skip_1.Skip; } });
|
|
106
|
-
var Sort_1 = require("./operators/stage/Sort");
|
|
107
|
-
Object.defineProperty(exports, "Sort", { enumerable: true, get: function () { return Sort_1.Sort; } });
|
|
108
|
-
var Substr_1 = require("./operators/string/Substr");
|
|
109
|
-
Object.defineProperty(exports, "Substr", { enumerable: true, get: function () { return Substr_1.Substr; } });
|
|
110
|
-
var ToFloat_1 = require("./operators/string/ToFloat");
|
|
111
|
-
Object.defineProperty(exports, "ToFloat", { enumerable: true, get: function () { return ToFloat_1.ToFloat; } });
|
|
112
|
-
var ToInt_1 = require("./operators/string/ToInt");
|
|
113
|
-
Object.defineProperty(exports, "ToInt", { enumerable: true, get: function () { return ToInt_1.ToInt; } });
|
|
114
|
-
var ToLower_1 = require("./operators/string/ToLower");
|
|
115
|
-
Object.defineProperty(exports, "ToLower", { enumerable: true, get: function () { return ToLower_1.ToLower; } });
|
|
116
|
-
var ToUpper_1 = require("./operators/string/ToUpper");
|
|
117
|
-
Object.defineProperty(exports, "ToUpper", { enumerable: true, get: function () { return ToUpper_1.ToUpper; } });
|
|
1
|
+
export { Context } from './ast/Context.js';
|
|
2
|
+
export { MultiArgs } from './ast/MultiArgs.js';
|
|
3
|
+
// export {PArray} from './ast/PArray.js';
|
|
4
|
+
export { Expr } from './ast/Expr.js';
|
|
5
|
+
// export {PObject} from './ast/PObject.js';
|
|
6
|
+
export { AbstractValue } from './ast/AbstractValue.js';
|
|
7
|
+
export { Unset } from './ast/Unset.js';
|
|
8
|
+
export { ValueDesc } from './ast/ValueDesc.js';
|
|
9
|
+
export { RefDesc } from './ast/RefDesc.js';
|
|
10
|
+
export { AUTO_EQUAL_CONV_SUPPORT, NUMBER_PROJECT_SUPPORT } from './Constants.js';
|
|
11
|
+
export { AbstractOperator } from './operators/AbstractOperator.js';
|
|
12
|
+
export { Avg } from './operators/arithmetic/Avg.js';
|
|
13
|
+
export { Count } from './operators/arithmetic/Count.js';
|
|
14
|
+
export { Max } from './operators/arithmetic/Max.js';
|
|
15
|
+
export { Min } from './operators/arithmetic/Min.js';
|
|
16
|
+
export { Multiply } from './operators/arithmetic/Multiply.js';
|
|
17
|
+
export { Sum } from './operators/arithmetic/Sum.js';
|
|
18
|
+
export { First } from './operators/array/First.js';
|
|
19
|
+
export { Last } from './operators/array/Last.js';
|
|
20
|
+
export { Map } from './operators/array/Map.js';
|
|
21
|
+
export { AbstractCompare } from './operators/AbstractCompare.js';
|
|
22
|
+
export { EqualDesc, Eq } from './operators/compare/EqualDesc.js';
|
|
23
|
+
export { GreaterThen } from './operators/compare/GreaterThen.js';
|
|
24
|
+
export { GreaterThenEqual } from './operators/compare/GreaterThenEqual.js';
|
|
25
|
+
export { In } from './operators/compare/In.js';
|
|
26
|
+
export { IsNotNull } from './operators/compare/IsNotNull.js';
|
|
27
|
+
export { IsNull } from './operators/compare/IsNull.js';
|
|
28
|
+
export { LessThen } from './operators/compare/LessThen.js';
|
|
29
|
+
export { LessThenEqual } from './operators/compare/LessThenEqual.js';
|
|
30
|
+
export { Like } from './operators/compare/Like.js';
|
|
31
|
+
export { NotEqual } from './operators/compare/NotEqual.js';
|
|
32
|
+
export { NotIn } from './operators/compare/NotIn.js';
|
|
33
|
+
export { Regex } from './operators/compare/Regex.js';
|
|
34
|
+
export { Date } from './operators/date/Date.js';
|
|
35
|
+
export { DateToString } from './operators/date/DateToString.js';
|
|
36
|
+
export { Day } from './operators/date/Day.js';
|
|
37
|
+
export { Month } from './operators/date/Month.js';
|
|
38
|
+
export { Year } from './operators/date/Year.js';
|
|
39
|
+
export { AndDesc, And } from './operators/logic/AndDesc.js';
|
|
40
|
+
export { NotDesc } from './operators/logic/NotDesc.js';
|
|
41
|
+
export { OrDesc, Or } from './operators/logic/OrDesc.js';
|
|
42
|
+
export { Components } from './operators/Components.js';
|
|
43
|
+
export { Group, GROUP_ID } from './operators/stage/Group.js';
|
|
44
|
+
export { Limit } from './operators/stage/Limit.js';
|
|
45
|
+
export { Match } from './operators/stage/Match.js';
|
|
46
|
+
export { Project } from './operators/stage/Project.js';
|
|
47
|
+
export { Skip } from './operators/stage/Skip.js';
|
|
48
|
+
export { Sort } from './operators/stage/Sort.js';
|
|
49
|
+
export { Substr } from './operators/string/Substr.js';
|
|
50
|
+
export { ToFloat } from './operators/string/ToFloat.js';
|
|
51
|
+
export { ToInt } from './operators/string/ToInt.js';
|
|
52
|
+
export { ToLower } from './operators/string/ToLower.js';
|
|
53
|
+
export { ToUpper } from './operators/string/ToUpper.js';
|
|
118
54
|
//# sourceMappingURL=browser.js.map
|
package/browser.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../../src/browser.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../../src/browser.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InvalidValueError.js","sourceRoot":"","sources":["../../../src/errors/InvalidValueError.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,iBAAkB,SAAQ,KAAK;IAC1C,YAAY,IAAgB,EAAE,KAAU;QACtC,KAAK,CAAC,0BAA0B,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;IAC9E,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotYetImplementedError.js","sourceRoot":"","sources":["../../../src/errors/NotYetImplementedError.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,sBAAuB,SAAQ,KAAK;IAC/C;QACE,KAAK,CAAC,qBAAqB,CAAC,CAAC;IAC/B,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnsupportedInputError.js","sourceRoot":"","sources":["../../../src/errors/UnsupportedInputError.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,qBAAsB,SAAQ,KAAK;IAC9C,YAAY,KAAU;QACpB,KAAK,CAAC,uBAAuB,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;IACzD,CAAC;CACF"}
|
package/functions.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Expr } from "./ast/Expr.js";
|
|
2
|
+
import { ClassType } from './Constants.js';
|
|
3
|
+
/**
|
|
4
|
+
* Parse mango expressions (mongo-db style)
|
|
5
|
+
*
|
|
6
|
+
* @param partial
|
|
7
|
+
*/
|
|
8
|
+
export declare function expr(partial: any): import("./ast/IExpr.js").IExpr;
|
|
9
|
+
export declare function create<X extends Expr>(createClass: ClassType<X>): Expr;
|
package/functions.js
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { JsonParser } from "./ast/JsonParser.js";
|
|
2
|
+
/**
|
|
3
|
+
* Parse mango expressions (mongo-db style)
|
|
4
|
+
*
|
|
5
|
+
* @param partial
|
|
6
|
+
*/
|
|
7
|
+
export function expr(partial) {
|
|
8
|
+
const p = new JsonParser(partial);
|
|
9
|
+
return p.parse();
|
|
10
|
+
}
|
|
11
|
+
// const context = ctxt ? ctxt : new Context();
|
|
12
|
+
// if (leftSide) {
|
|
13
|
+
// context.key = ctxt.key;
|
|
14
|
+
// context.merge(leftSide.getContext());
|
|
15
|
+
// }
|
|
16
|
+
//
|
|
17
|
+
// const hasSelector = leftSide && leftSide instanceof Selector;
|
|
18
|
+
// const hasOperator = leftSide && leftSide instanceof AbstractOperator;
|
|
19
|
+
//
|
|
20
|
+
//
|
|
21
|
+
// let result: Expr = null;
|
|
22
|
+
// if (isString(parital) ||
|
|
23
|
+
// isNumber(parital) ||
|
|
24
|
+
// isDate(parital) ||
|
|
25
|
+
// isNull(parital) ||
|
|
26
|
+
// isBoolean(parital)) {
|
|
27
|
+
//
|
|
28
|
+
// // TODO reference can also have a lookup like $some_lookup.id this demands a $lookup reference
|
|
29
|
+
// const isRef = isString(parital) && parital.match(/^\$(.+)/);
|
|
30
|
+
// if (isRef) {
|
|
31
|
+
// result = create(ValueRef).interprete(isRef[1], leftSide, rightSide, context);
|
|
32
|
+
// } else {
|
|
33
|
+
// result = create(Value).interprete(parital, leftSide, rightSide, context);
|
|
34
|
+
// }
|
|
35
|
+
//
|
|
36
|
+
// } else if (isArray(parital)) {
|
|
37
|
+
// result = this.create(PArray).interprete(parital, leftSide, context);
|
|
38
|
+
// } else if (isObjectLike(parital)) {
|
|
39
|
+
// const partialKeys = Object.keys(parital);
|
|
40
|
+
//
|
|
41
|
+
// // const leftFromSelector = leftSide && leftSide instanceof Selector;
|
|
42
|
+
//
|
|
43
|
+
// // TODO make multiple $registry work
|
|
44
|
+
// // if (leftFromSelector) {
|
|
45
|
+
// const foundOperators = partialKeys.filter(x => /^\$/.test(x) && Components.has(x.substr(1)));
|
|
46
|
+
// if (foundOperators.length === 1) {
|
|
47
|
+
// // for example {key: {$eq: 1}} KeyRef is the left side and
|
|
48
|
+
// const operatorKey = foundOperators[0];
|
|
49
|
+
// // const follow = parital[operatorKey];
|
|
50
|
+
// const operator = Components.create(operatorKey);
|
|
51
|
+
// result = operator.interprete(parital, leftSide, rightSide, context);
|
|
52
|
+
// } else if (foundOperators.length > 1) {
|
|
53
|
+
// throw new Error(`mutliple operators currently not supported ${foundOperators}`);
|
|
54
|
+
// } else {
|
|
55
|
+
// // No operator, maybe is simplified $eq like {x: 1} <=> {x: {$eq: 1}}
|
|
56
|
+
// // check if rightSide is plain value
|
|
57
|
+
// // and operator when {x: 1, y: 2} <=> {$and:[ {x: {$eq: 1}}, {y: {$eq: 2}} ]}
|
|
58
|
+
//
|
|
59
|
+
// if (partialKeys.length > 1) {
|
|
60
|
+
// // and
|
|
61
|
+
// const junktor = And()
|
|
62
|
+
// result = junktor;
|
|
63
|
+
// for (let partialKey in partialKeys) {
|
|
64
|
+
// const keyDesc = Key(partialKey);
|
|
65
|
+
// const context = new Context(partialKey);
|
|
66
|
+
// context.set("checking_for_value", true);
|
|
67
|
+
// let partialValue = parital[partialKey];
|
|
68
|
+
// let res = expr(partialValue, keyDesc, null, context);
|
|
69
|
+
// if (res instanceof AbstractOperator) {
|
|
70
|
+
// // expr operator
|
|
71
|
+
// junktor.add(res)
|
|
72
|
+
// } else {
|
|
73
|
+
// // create eq operator
|
|
74
|
+
// let op = Components.create("eq");
|
|
75
|
+
// op = op.interprete(null, keyDesc, res, context) as AbstractOperator;
|
|
76
|
+
// junktor.add(op)
|
|
77
|
+
// }
|
|
78
|
+
// }
|
|
79
|
+
// } else {
|
|
80
|
+
// const partialKey = partialKeys[0];
|
|
81
|
+
// const keyDesc = Key(partialKey);
|
|
82
|
+
// let partialValue = parital[partialKey];
|
|
83
|
+
// result = expr(partialValue, keyDesc, null, context);
|
|
84
|
+
// }
|
|
85
|
+
// }
|
|
86
|
+
// // } else {
|
|
87
|
+
// // result = create(PObject).interprete(parital, leftSide, null, context);
|
|
88
|
+
// // }
|
|
89
|
+
// }
|
|
90
|
+
//
|
|
91
|
+
// if (!result) {
|
|
92
|
+
// throw new Error(`not yet implemented for ${parital}`);
|
|
93
|
+
// }
|
|
94
|
+
//
|
|
95
|
+
// if(hasSelector && !(result instanceof AbstractOperator)) {
|
|
96
|
+
// // create default operator
|
|
97
|
+
// const op = Components.create('eq')
|
|
98
|
+
// result = op.interprete(null, leftSide, result, context);
|
|
99
|
+
// }
|
|
100
|
+
//
|
|
101
|
+
//
|
|
102
|
+
// return result;
|
|
103
|
+
// }
|
|
104
|
+
export function create(createClass /*, partial: any, leftSide?: Expr, ctxt?: Context*/) {
|
|
105
|
+
return Reflect.construct(createClass, []);
|
|
106
|
+
}
|
|
107
|
+
//# sourceMappingURL=functions.js.map
|
package/functions.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"functions.js","sourceRoot":"","sources":["../../src/functions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,UAAU,EAAC,MAAM,qBAAqB,CAAC;AAK/C;;;;GAIG;AACH,MAAM,UAAU,IAAI,CAAC,OAAY;IAC/B,MAAM,CAAC,GAAG,IAAI,UAAU,CAAC,OAAO,CAAC,CAAC;IAClC,OAAO,CAAC,CAAC,KAAK,EAAE,CAAC;AACnB,CAAC;AACD,iDAAiD;AACjD,oBAAoB;AACpB,8BAA8B;AAC9B,4CAA4C;AAC5C,MAAM;AACN,EAAE;AACF,kEAAkE;AAClE,0EAA0E;AAC1E,EAAE;AACF,EAAE;AACF,6BAA6B;AAC7B,6BAA6B;AAC7B,2BAA2B;AAC3B,yBAAyB;AACzB,yBAAyB;AACzB,4BAA4B;AAC5B,EAAE;AACF,qGAAqG;AACrG,mEAAmE;AACnE,mBAAmB;AACnB,sFAAsF;AACtF,eAAe;AACf,kFAAkF;AAClF,QAAQ;AACR,EAAE;AACF,mCAAmC;AACnC,2EAA2E;AAC3E,wCAAwC;AACxC,gDAAgD;AAChD,EAAE;AACF,4EAA4E;AAC5E,EAAE;AACF,2CAA2C;AAC3C,iCAAiC;AACjC,oGAAoG;AACpG,yCAAyC;AACzC,mEAAmE;AACnE,+CAA+C;AAC/C,gDAAgD;AAChD,yDAAyD;AACzD,6EAA6E;AAC7E,8CAA8C;AAC9C,yFAAyF;AACzF,eAAe;AACf,8EAA8E;AAC9E,6CAA6C;AAC7C,sFAAsF;AACtF,EAAE;AACF,sCAAsC;AACtC,iBAAiB;AACjB,gCAAgC;AAChC,4BAA4B;AAC5B,gDAAgD;AAChD,6CAA6C;AAC7C,qDAAqD;AACrD,qDAAqD;AACrD,oDAAoD;AACpD,kEAAkE;AAClE,mDAAmD;AACnD,+BAA+B;AAC/B,+BAA+B;AAC/B,qBAAqB;AACrB,oCAAoC;AACpC,gDAAgD;AAChD,mFAAmF;AACnF,8BAA8B;AAC9B,cAAc;AACd,YAAY;AACZ,iBAAiB;AACjB,6CAA6C;AAC7C,2CAA2C;AAC3C,kDAAkD;AAClD,+DAA+D;AAC/D,UAAU;AACV,QAAQ;AACR,kBAAkB;AAClB,kFAAkF;AAClF,WAAW;AACX,MAAM;AACN,EAAE;AACF,mBAAmB;AACnB,6DAA6D;AAC7D,MAAM;AACN,EAAE;AACF,+DAA+D;AAC/D,iCAAiC;AACjC,yCAAyC;AACzC,+DAA+D;AAC/D,MAAM;AACN,EAAE;AACF,EAAE;AACF,mBAAmB;AACnB,IAAI;AAEJ,MAAM,UAAU,MAAM,CAAiB,WAAyB,CAAC,mDAAmD;IAClH,OAAO,OAAO,CAAC,SAAS,CAAC,WAAW,EAAE,EAAE,CAAM,CAAC;AACjD,CAAC"}
|
package/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { NUMBER_PROJECT_SUPPORT, AUTO_EQUAL_CONV_SUPPORT, Context,
|
|
1
|
+
export { NUMBER_PROJECT_SUPPORT, AUTO_EQUAL_CONV_SUPPORT, Context, Like, In, AndDesc, Date, Expr, NotDesc, AbstractValue, AbstractCompare, AbstractOperator, Avg, Count, DateToString, Day, EqualDesc, First, GreaterThen, GreaterThenEqual, Group, IWalker, IsNotNull, IsNull, Last, LessThen, LessThenEqual, Limit, Map, Match, Max, Min, Month, MultiArgs, Multiply, NotEqual, NotIn, Components, OrDesc, Project, Regex, Skip, Sort, Substr, Sum, ToFloat, ToInt, ToLower, ToUpper, Unset, ValueDesc, RefDesc, Year, IWalkerControl, Eq, And, GROUP_ID, Or } from './browser.js';
|
package/index.js
CHANGED
|
@@ -1,66 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ToLower = exports.ToInt = exports.ToFloat = exports.Sum = exports.Substr = exports.Sort = exports.Skip = exports.Regex = exports.Project = exports.PArray = exports.OrDesc = exports.Operators = exports.NotIn = exports.NotEqual = exports.Multiply = exports.MultiArgs = exports.Month = exports.Min = exports.Max = exports.Match = exports.Map = exports.Limit = exports.LessThenEqual = exports.LessThen = exports.Last = exports.IsNull = exports.IsNotNull = exports.Group = exports.GreaterThenEqual = exports.GreaterThen = exports.First = exports.EqualDesc = exports.Day = exports.DateToString = exports.Count = exports.Avg = exports.AbstractOperator = exports.PObject = exports.AbstractCompare = exports.PValue = exports.Not = exports.PAst = exports.Date = exports.AndDesc = exports.In = exports.Like = exports.MangoExpression = exports.Context = exports.AUTO_EQUAL_CONV_SUPPORT = exports.NUMBER_PROJECT_SUPPORT = void 0;
|
|
4
|
-
exports.Or = exports.GROUP_ID = exports.And = exports.Eq = exports.Year = exports.ValueRef = exports.Value = exports.Unset = exports.ToUpper = void 0;
|
|
5
1
|
// ---- Generated by gulp taskRef ----
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
Object.defineProperty(exports, "Like", { enumerable: true, get: function () { return browser_1.Like; } });
|
|
12
|
-
Object.defineProperty(exports, "In", { enumerable: true, get: function () { return browser_1.In; } });
|
|
13
|
-
Object.defineProperty(exports, "AndDesc", { enumerable: true, get: function () { return browser_1.AndDesc; } });
|
|
14
|
-
Object.defineProperty(exports, "Date", { enumerable: true, get: function () { return browser_1.Date; } });
|
|
15
|
-
Object.defineProperty(exports, "PAst", { enumerable: true, get: function () { return browser_1.PAst; } });
|
|
16
|
-
Object.defineProperty(exports, "Not", { enumerable: true, get: function () { return browser_1.Not; } });
|
|
17
|
-
Object.defineProperty(exports, "PValue", { enumerable: true, get: function () { return browser_1.PValue; } });
|
|
18
|
-
Object.defineProperty(exports, "AbstractCompare", { enumerable: true, get: function () { return browser_1.AbstractCompare; } });
|
|
19
|
-
Object.defineProperty(exports, "PObject", { enumerable: true, get: function () { return browser_1.PObject; } });
|
|
20
|
-
Object.defineProperty(exports, "AbstractOperator", { enumerable: true, get: function () { return browser_1.AbstractOperator; } });
|
|
21
|
-
Object.defineProperty(exports, "Avg", { enumerable: true, get: function () { return browser_1.Avg; } });
|
|
22
|
-
Object.defineProperty(exports, "Count", { enumerable: true, get: function () { return browser_1.Count; } });
|
|
23
|
-
Object.defineProperty(exports, "DateToString", { enumerable: true, get: function () { return browser_1.DateToString; } });
|
|
24
|
-
Object.defineProperty(exports, "Day", { enumerable: true, get: function () { return browser_1.Day; } });
|
|
25
|
-
Object.defineProperty(exports, "EqualDesc", { enumerable: true, get: function () { return browser_1.EqualDesc; } });
|
|
26
|
-
Object.defineProperty(exports, "First", { enumerable: true, get: function () { return browser_1.First; } });
|
|
27
|
-
Object.defineProperty(exports, "GreaterThen", { enumerable: true, get: function () { return browser_1.GreaterThen; } });
|
|
28
|
-
Object.defineProperty(exports, "GreaterThenEqual", { enumerable: true, get: function () { return browser_1.GreaterThenEqual; } });
|
|
29
|
-
Object.defineProperty(exports, "Group", { enumerable: true, get: function () { return browser_1.Group; } });
|
|
30
|
-
Object.defineProperty(exports, "IsNotNull", { enumerable: true, get: function () { return browser_1.IsNotNull; } });
|
|
31
|
-
Object.defineProperty(exports, "IsNull", { enumerable: true, get: function () { return browser_1.IsNull; } });
|
|
32
|
-
Object.defineProperty(exports, "Last", { enumerable: true, get: function () { return browser_1.Last; } });
|
|
33
|
-
Object.defineProperty(exports, "LessThen", { enumerable: true, get: function () { return browser_1.LessThen; } });
|
|
34
|
-
Object.defineProperty(exports, "LessThenEqual", { enumerable: true, get: function () { return browser_1.LessThenEqual; } });
|
|
35
|
-
Object.defineProperty(exports, "Limit", { enumerable: true, get: function () { return browser_1.Limit; } });
|
|
36
|
-
Object.defineProperty(exports, "Map", { enumerable: true, get: function () { return browser_1.Map; } });
|
|
37
|
-
Object.defineProperty(exports, "Match", { enumerable: true, get: function () { return browser_1.Match; } });
|
|
38
|
-
Object.defineProperty(exports, "Max", { enumerable: true, get: function () { return browser_1.Max; } });
|
|
39
|
-
Object.defineProperty(exports, "Min", { enumerable: true, get: function () { return browser_1.Min; } });
|
|
40
|
-
Object.defineProperty(exports, "Month", { enumerable: true, get: function () { return browser_1.Month; } });
|
|
41
|
-
Object.defineProperty(exports, "MultiArgs", { enumerable: true, get: function () { return browser_1.MultiArgs; } });
|
|
42
|
-
Object.defineProperty(exports, "Multiply", { enumerable: true, get: function () { return browser_1.Multiply; } });
|
|
43
|
-
Object.defineProperty(exports, "NotEqual", { enumerable: true, get: function () { return browser_1.NotEqual; } });
|
|
44
|
-
Object.defineProperty(exports, "NotIn", { enumerable: true, get: function () { return browser_1.NotIn; } });
|
|
45
|
-
Object.defineProperty(exports, "Operators", { enumerable: true, get: function () { return browser_1.Operators; } });
|
|
46
|
-
Object.defineProperty(exports, "OrDesc", { enumerable: true, get: function () { return browser_1.OrDesc; } });
|
|
47
|
-
Object.defineProperty(exports, "PArray", { enumerable: true, get: function () { return browser_1.PArray; } });
|
|
48
|
-
Object.defineProperty(exports, "Project", { enumerable: true, get: function () { return browser_1.Project; } });
|
|
49
|
-
Object.defineProperty(exports, "Regex", { enumerable: true, get: function () { return browser_1.Regex; } });
|
|
50
|
-
Object.defineProperty(exports, "Skip", { enumerable: true, get: function () { return browser_1.Skip; } });
|
|
51
|
-
Object.defineProperty(exports, "Sort", { enumerable: true, get: function () { return browser_1.Sort; } });
|
|
52
|
-
Object.defineProperty(exports, "Substr", { enumerable: true, get: function () { return browser_1.Substr; } });
|
|
53
|
-
Object.defineProperty(exports, "Sum", { enumerable: true, get: function () { return browser_1.Sum; } });
|
|
54
|
-
Object.defineProperty(exports, "ToFloat", { enumerable: true, get: function () { return browser_1.ToFloat; } });
|
|
55
|
-
Object.defineProperty(exports, "ToInt", { enumerable: true, get: function () { return browser_1.ToInt; } });
|
|
56
|
-
Object.defineProperty(exports, "ToLower", { enumerable: true, get: function () { return browser_1.ToLower; } });
|
|
57
|
-
Object.defineProperty(exports, "ToUpper", { enumerable: true, get: function () { return browser_1.ToUpper; } });
|
|
58
|
-
Object.defineProperty(exports, "Unset", { enumerable: true, get: function () { return browser_1.Unset; } });
|
|
59
|
-
Object.defineProperty(exports, "Value", { enumerable: true, get: function () { return browser_1.Value; } });
|
|
60
|
-
Object.defineProperty(exports, "ValueRef", { enumerable: true, get: function () { return browser_1.ValueRef; } });
|
|
61
|
-
Object.defineProperty(exports, "Year", { enumerable: true, get: function () { return browser_1.Year; } });
|
|
62
|
-
Object.defineProperty(exports, "Eq", { enumerable: true, get: function () { return browser_1.Eq; } });
|
|
63
|
-
Object.defineProperty(exports, "And", { enumerable: true, get: function () { return browser_1.And; } });
|
|
64
|
-
Object.defineProperty(exports, "GROUP_ID", { enumerable: true, get: function () { return browser_1.GROUP_ID; } });
|
|
65
|
-
Object.defineProperty(exports, "Or", { enumerable: true, get: function () { return browser_1.Or; } });
|
|
2
|
+
export { NUMBER_PROJECT_SUPPORT, AUTO_EQUAL_CONV_SUPPORT, Context, Like, In, AndDesc, Date, Expr, NotDesc, AbstractValue, AbstractCompare,
|
|
3
|
+
// PObject,
|
|
4
|
+
AbstractOperator, Avg, Count, DateToString, Day, EqualDesc, First, GreaterThen, GreaterThenEqual, Group, IsNotNull, IsNull, Last, LessThen, LessThenEqual, Limit, Map, Match, Max, Min, Month, MultiArgs, Multiply, NotEqual, NotIn, Components, OrDesc,
|
|
5
|
+
// PArray,
|
|
6
|
+
Project, Regex, Skip, Sort, Substr, Sum, ToFloat, ToInt, ToLower, ToUpper, Unset, ValueDesc, RefDesc, Year, Eq, And, GROUP_ID, Or } from './browser.js';
|
|
66
7
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,OAAO,EACP,IAAI,EACJ,EAAE,EACF,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,aAAa,EACb,eAAe;AACf,WAAW;AACX,gBAAgB,EAChB,GAAG,EACH,KAAK,EACL,YAAY,EACZ,GAAG,EACH,SAAS,EACT,KAAK,EACL,WAAW,EACX,gBAAgB,EAChB,KAAK,EAEL,SAAS,EACT,MAAM,EACN,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,KAAK,EACL,GAAG,EACH,KAAK,EACL,GAAG,EACH,GAAG,EACH,KAAK,EACL,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,UAAU,EACV,MAAM;AACN,UAAU;AACV,OAAO,EACP,KAAK,EACL,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,GAAG,EACH,OAAO,EACP,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAkB,EAAE,EAAE,GAAG,EAAE,QAAQ,EAAE,EAAE,EAChG,MAAM,cAAc,CAAC"}
|