not-node 5.1.35 → 5.1.36

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 +7 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "not-node",
3
- "version": "5.1.35",
3
+ "version": "5.1.36",
4
4
  "description": "node complimentary part for client side notFramework.",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/form/form.js CHANGED
@@ -32,6 +32,7 @@ class Form {
32
32
  **/
33
33
  #FORM_NAME;
34
34
  #MODEL_NAME;
35
+ #MODULE_NAME;
35
36
  #PROTO_FIELDS;
36
37
  #VALIDATOR;
37
38
  #EXTRACTORS = {
@@ -46,12 +47,14 @@ class Form {
46
47
  FIELDS,
47
48
  FORM_NAME,
48
49
  MODEL_NAME,
50
+ MODULE_NAME,
49
51
  app,
50
52
  EXTRACTORS = {},
51
53
  ENV_EXTRACTORS = {},
52
54
  }) {
53
55
  this.#FORM_NAME = FORM_NAME;
54
56
  this.#MODEL_NAME = MODEL_NAME;
57
+ this.#MODULE_NAME = MODULE_NAME;
55
58
  this.#PROTO_FIELDS = FIELDS;
56
59
  this.#createValidationSchema(app);
57
60
  this.#augmentValidationSchema();
@@ -68,6 +71,10 @@ class Form {
68
71
  return undefined;
69
72
  }
70
73
 
74
+ getModuleName() {
75
+ return this.#MODULE_NAME;
76
+ }
77
+
71
78
  /**
72
79
  * Extract data from ExpressRequest object and validates it
73
80
  * returns it or throws