not-node 5.1.21 → 5.1.22
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/form/form.js +3 -2
package/package.json
CHANGED
package/src/form/form.js
CHANGED
|
@@ -228,8 +228,9 @@ class Form {
|
|
|
228
228
|
const results = {};
|
|
229
229
|
for (let fieldName of instructions) {
|
|
230
230
|
const instruction = instructions[fieldName];
|
|
231
|
-
|
|
232
|
-
|
|
231
|
+
const extractor = this.#EXTRACTORS[instruction];
|
|
232
|
+
if (isFunc(extractor)) {
|
|
233
|
+
results[fieldName] = extractor(req, fieldName);
|
|
233
234
|
}
|
|
234
235
|
}
|
|
235
236
|
return results;
|