@halleyassist/rule-templater 0.0.19 → 0.0.20
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.
|
@@ -3880,7 +3880,7 @@ const AllowedTypeMapping = {
|
|
|
3880
3880
|
'number': ['number_atom', 'math_expr'],
|
|
3881
3881
|
'boolean': ['boolean_atom', 'boolean_expr'],
|
|
3882
3882
|
'time period': ['time_period_atom'],
|
|
3883
|
-
'time period ago': ['time_period_ago_atom'],
|
|
3883
|
+
'time period ago': ['time_period_ago_atom', 'time_period_atom'],
|
|
3884
3884
|
'time value': ['time_value_atom', 'tod_atom'],
|
|
3885
3885
|
'number time': ['number_atom'],
|
|
3886
3886
|
'string array': ['string_array'],
|
|
@@ -3948,8 +3948,6 @@ appendAlternative('between_tod_only_atom', ['template_value']);
|
|
|
3948
3948
|
appendAlternative('string_atom', ['template_value']);
|
|
3949
3949
|
appendAlternative('boolean_atom', ['template_value']);
|
|
3950
3950
|
appendAlternative('time_value_atom', ['template_value']);
|
|
3951
|
-
appendAlternative('time_period_atom', ['template_value']);
|
|
3952
|
-
appendAlternative('time_period_ago_atom', ['template_value']);
|
|
3953
3951
|
appendAlternative('object_atom', ['template_value']);
|
|
3954
3952
|
appendAlternative('string_array', ['template_value']);
|
|
3955
3953
|
appendAlternative('number_array', ['template_value']);
|
|
@@ -3963,8 +3961,8 @@ replaceRule('argument', [
|
|
|
3963
3961
|
|
|
3964
3962
|
replaceRule('simple_result', [
|
|
3965
3963
|
['fcall'],
|
|
3966
|
-
['
|
|
3967
|
-
['
|
|
3964
|
+
['value'],
|
|
3965
|
+
['number_time_atom']
|
|
3968
3966
|
]);
|
|
3969
3967
|
|
|
3970
3968
|
// Export the parser rules for potential external use
|
package/package.json
CHANGED
package/src/RuleTemplate.js
CHANGED
|
@@ -28,7 +28,7 @@ const AllowedTypeMapping = {
|
|
|
28
28
|
'number': ['number_atom', 'math_expr'],
|
|
29
29
|
'boolean': ['boolean_atom', 'boolean_expr'],
|
|
30
30
|
'time period': ['time_period_atom'],
|
|
31
|
-
'time period ago': ['time_period_ago_atom'],
|
|
31
|
+
'time period ago': ['time_period_ago_atom', 'time_period_atom'],
|
|
32
32
|
'time value': ['time_value_atom', 'tod_atom'],
|
|
33
33
|
'number time': ['number_atom'],
|
|
34
34
|
'string array': ['string_array'],
|
|
@@ -96,8 +96,6 @@ appendAlternative('between_tod_only_atom', ['template_value']);
|
|
|
96
96
|
appendAlternative('string_atom', ['template_value']);
|
|
97
97
|
appendAlternative('boolean_atom', ['template_value']);
|
|
98
98
|
appendAlternative('time_value_atom', ['template_value']);
|
|
99
|
-
appendAlternative('time_period_atom', ['template_value']);
|
|
100
|
-
appendAlternative('time_period_ago_atom', ['template_value']);
|
|
101
99
|
appendAlternative('object_atom', ['template_value']);
|
|
102
100
|
appendAlternative('string_array', ['template_value']);
|
|
103
101
|
appendAlternative('number_array', ['template_value']);
|
|
@@ -111,8 +109,8 @@ replaceRule('argument', [
|
|
|
111
109
|
|
|
112
110
|
replaceRule('simple_result', [
|
|
113
111
|
['fcall'],
|
|
114
|
-
['
|
|
115
|
-
['
|
|
112
|
+
['value'],
|
|
113
|
+
['number_time_atom']
|
|
116
114
|
]);
|
|
117
115
|
|
|
118
116
|
// Export the parser rules for potential external use
|
|
@@ -28,7 +28,7 @@ const AllowedTypeMapping = {
|
|
|
28
28
|
'number': ['number_atom', 'math_expr'],
|
|
29
29
|
'boolean': ['boolean_atom', 'boolean_expr'],
|
|
30
30
|
'time period': ['time_period_atom'],
|
|
31
|
-
'time period ago': ['time_period_ago_atom'],
|
|
31
|
+
'time period ago': ['time_period_ago_atom', 'time_period_atom'],
|
|
32
32
|
'time value': ['time_value_atom', 'tod_atom'],
|
|
33
33
|
'number time': ['number_atom'],
|
|
34
34
|
'string array': ['string_array'],
|
|
@@ -96,8 +96,6 @@ appendAlternative('between_tod_only_atom', ['template_value']);
|
|
|
96
96
|
appendAlternative('string_atom', ['template_value']);
|
|
97
97
|
appendAlternative('boolean_atom', ['template_value']);
|
|
98
98
|
appendAlternative('time_value_atom', ['template_value']);
|
|
99
|
-
appendAlternative('time_period_atom', ['template_value']);
|
|
100
|
-
appendAlternative('time_period_ago_atom', ['template_value']);
|
|
101
99
|
appendAlternative('object_atom', ['template_value']);
|
|
102
100
|
appendAlternative('string_array', ['template_value']);
|
|
103
101
|
appendAlternative('number_array', ['template_value']);
|
|
@@ -111,8 +109,8 @@ replaceRule('argument', [
|
|
|
111
109
|
|
|
112
110
|
replaceRule('simple_result', [
|
|
113
111
|
['fcall'],
|
|
114
|
-
['
|
|
115
|
-
['
|
|
112
|
+
['value'],
|
|
113
|
+
['number_time_atom']
|
|
116
114
|
]);
|
|
117
115
|
|
|
118
116
|
// Export the parser rules for potential external use
|
|
@@ -26,7 +26,7 @@ const AllowedTypeMapping = {
|
|
|
26
26
|
'number': ['number_atom', 'math_expr'],
|
|
27
27
|
'boolean': ['boolean_atom', 'boolean_expr'],
|
|
28
28
|
'time period': ['time_period_atom'],
|
|
29
|
-
'time period ago': ['time_period_ago_atom'],
|
|
29
|
+
'time period ago': ['time_period_ago_atom', 'time_period_atom'],
|
|
30
30
|
'time value': ['time_value_atom', 'tod_atom'],
|
|
31
31
|
'string array': ['string_array'],
|
|
32
32
|
'number array': ['number_array'],
|
|
@@ -93,8 +93,6 @@ appendAlternative('between_tod_only_atom', ['template_value']);
|
|
|
93
93
|
appendAlternative('string_atom', ['template_value']);
|
|
94
94
|
appendAlternative('boolean_atom', ['template_value']);
|
|
95
95
|
appendAlternative('time_value_atom', ['template_value']);
|
|
96
|
-
appendAlternative('time_period_atom', ['template_value']);
|
|
97
|
-
appendAlternative('time_period_ago_atom', ['template_value']);
|
|
98
96
|
appendAlternative('object_atom', ['template_value']);
|
|
99
97
|
appendAlternative('string_array', ['template_value']);
|
|
100
98
|
appendAlternative('number_array', ['template_value']);
|
|
@@ -108,8 +106,8 @@ replaceRule('argument', [
|
|
|
108
106
|
|
|
109
107
|
replaceRule('simple_result', [
|
|
110
108
|
['fcall'],
|
|
111
|
-
['
|
|
112
|
-
['
|
|
109
|
+
['value'],
|
|
110
|
+
['number_time_atom']
|
|
113
111
|
]);
|
|
114
112
|
|
|
115
113
|
// Export the parser rules for potential external use
|