not-node 6.5.25 → 6.5.26
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/package.json +1 -1
- package/src/logic/logic.js +12 -5
package/package.json
CHANGED
package/src/logic/logic.js
CHANGED
|
@@ -18,7 +18,14 @@ class LogicProxied {
|
|
|
18
18
|
actionRunner = ActionRunner;
|
|
19
19
|
|
|
20
20
|
#populateBuilders = {};
|
|
21
|
+
get populateBuilders() {
|
|
22
|
+
return this.#populateBuilders;
|
|
23
|
+
}
|
|
24
|
+
|
|
21
25
|
#defaultPopulate = [];
|
|
26
|
+
get defaultPopulate() {
|
|
27
|
+
return this.#defaultPopulate;
|
|
28
|
+
}
|
|
22
29
|
|
|
23
30
|
MODEL_NAME;
|
|
24
31
|
MODULE_NAME;
|
|
@@ -135,16 +142,16 @@ class LogicProxied {
|
|
|
135
142
|
|
|
136
143
|
async getPopulate(actionName, prepared) {
|
|
137
144
|
if (
|
|
138
|
-
this
|
|
139
|
-
objHas(this
|
|
140
|
-
isFunc(this
|
|
145
|
+
this.populateBuilders &&
|
|
146
|
+
objHas(this.populateBuilders, actionName) &&
|
|
147
|
+
isFunc(this.populateBuilders[actionName])
|
|
141
148
|
) {
|
|
142
149
|
return await executeFunctionAsAsync(
|
|
143
|
-
this
|
|
150
|
+
this.populateBuilders[actionName],
|
|
144
151
|
[prepared]
|
|
145
152
|
);
|
|
146
153
|
}
|
|
147
|
-
return [...this
|
|
154
|
+
return [...this.defaultPopulate];
|
|
148
155
|
}
|
|
149
156
|
|
|
150
157
|
#getActionRunner(actionName) {
|