theprogrammablemind_4wp 9.6.3-beta.18 → 9.6.3-beta.19
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/client.js +1 -1
- package/package.json +1 -1
- package/src/config.js +4 -0
- package/src/flatten.js +4 -4
package/client.js
CHANGED
|
@@ -1339,7 +1339,7 @@ const knowledgeModuleImpl = async ({
|
|
|
1339
1339
|
parser.add_argument('-q', '--query', { help: 'Run the specified query' })
|
|
1340
1340
|
parser.add_argument('-f', '--filter', { help: 'for -pd only the data for the knowledge modules that start with this string will be shown' })
|
|
1341
1341
|
parser.add_argument('-ip ', '--server', { help: 'Server to run against' })
|
|
1342
|
-
parser.add_argument('--trace', { help: 'Trace the semantics and generator calls.' })
|
|
1342
|
+
parser.add_argument('--trace', { action: 'store_true', help: 'Trace the semantics and generator calls.' })
|
|
1343
1343
|
parser.add_argument('-qp ', '--queryParams', { help: 'Query params for the server call' })
|
|
1344
1344
|
parser.add_argument('-dt', '--deleteTest', { help: 'Delete the specified query from the tests file.' })
|
|
1345
1345
|
parser.add_argument('--parenthesized', { action: 'store_true', help: 'Show the generated phrases with parenthesis.' })
|
package/package.json
CHANGED
package/src/config.js
CHANGED
|
@@ -115,6 +115,10 @@ const debugOperator = (operator) => {
|
|
|
115
115
|
// debug operator hit
|
|
116
116
|
debugger // eslint-disable-line no-debugger
|
|
117
117
|
}
|
|
118
|
+
if ((`${operator.pattern || operator}`).includes(global.entodictonDebugOperator)) {
|
|
119
|
+
// debug operator hit
|
|
120
|
+
debugger // eslint-disable-line no-debugger
|
|
121
|
+
}
|
|
118
122
|
}
|
|
119
123
|
}
|
|
120
124
|
|
package/src/flatten.js
CHANGED
|
@@ -109,7 +109,7 @@ const flatten = (markers, value) => {
|
|
|
109
109
|
const keys = []
|
|
110
110
|
const valuess = []
|
|
111
111
|
const unchanged = {}
|
|
112
|
-
DEBUG('properties', JSON.stringify(properties, null, 2))
|
|
112
|
+
DEBUG('properties', () => JSON.stringify(properties, null, 2))
|
|
113
113
|
for (const key in properties) {
|
|
114
114
|
let wf = false
|
|
115
115
|
let values
|
|
@@ -133,11 +133,11 @@ const flatten = (markers, value) => {
|
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
const propertiess = []
|
|
136
|
-
DEBUG('-----------> valuess', JSON.stringify(valuess))
|
|
137
|
-
DEBUG('-----------> cartesian(valuess)', JSON.stringify(cartesian(valuess)))
|
|
136
|
+
DEBUG('-----------> valuess', () => JSON.stringify(valuess))
|
|
137
|
+
DEBUG('-----------> cartesian(valuess)', () => JSON.stringify(cartesian(valuess)))
|
|
138
138
|
// for (let values of itertools.product(*valuess)) {
|
|
139
139
|
const cp = cartesian(...valuess)
|
|
140
|
-
DEBUG('-----------> cp', JSON.stringify(cp))
|
|
140
|
+
DEBUG('-----------> cp', () => JSON.stringify(cp))
|
|
141
141
|
for (const values of cartesian(...valuess)) {
|
|
142
142
|
// properties = copy.deepcopy(unchanged)
|
|
143
143
|
properties = _.cloneDeep(unchanged)
|