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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/form/form.js +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "not-node",
3
- "version": "5.1.21",
3
+ "version": "5.1.22",
4
4
  "description": "node complimentary part for client side notFramework.",
5
5
  "main": "index.js",
6
6
  "scripts": {
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
- if (isFunc(instruction)) {
232
- results[fieldName] = instruction(req, fieldName);
231
+ const extractor = this.#EXTRACTORS[instruction];
232
+ if (isFunc(extractor)) {
233
+ results[fieldName] = extractor(req, fieldName);
233
234
  }
234
235
  }
235
236
  return results;