not-node 6.4.3 → 6.4.4

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "not-node",
3
- "version": "6.4.3",
3
+ "version": "6.4.4",
4
4
  "description": "node complimentary part for client side notFramework.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -15,14 +15,5 @@ module.exports = ({ MODULE_NAME, MODEL_NAME, actionName, FIELDS = [] }) => {
15
15
  FIELDS: [...STANDART_FIELDS, ...FIELDS],
16
16
  });
17
17
  }
18
-
19
- async extract(req) {
20
- return this.afterExtract(
21
- {
22
- ...this.extractRequestEnvs(req),
23
- },
24
- req
25
- );
26
- }
27
18
  };
28
19
  };
@@ -10,18 +10,15 @@ const FIELDS = [
10
10
  module.exports = ({ MODULE_NAME, MODEL_NAME, actionName = "getByID" }) => {
11
11
  return class extends Form {
12
12
  constructor(params) {
13
- super({ ...params, MODULE_NAME, MODEL_NAME,actionName, FIELDS });
13
+ super({ ...params, MODULE_NAME, MODEL_NAME, actionName, FIELDS });
14
14
  }
15
15
 
16
16
  async extract(req) {
17
17
  const envs = this.extractRequestEnvs(req);
18
- return this.afterExtract(
19
- {
20
- ...envs,
21
- targetId: envs.modelNameID,
22
- },
23
- req
24
- );
18
+ return {
19
+ ...envs,
20
+ targetId: envs.modelNameID,
21
+ };
25
22
  }
26
23
  };
27
24
  };
@@ -12,15 +12,5 @@ module.exports = ({ MODULE_NAME, MODEL_NAME, actionName = "getById" }) => {
12
12
  constructor(params) {
13
13
  super({ ...params, MODULE_NAME, MODEL_NAME, actionName, FIELDS });
14
14
  }
15
-
16
- async extract(req) {
17
- const envs = this.extractRequestEnvs(req);
18
- return this.afterExtract(
19
- {
20
- ...envs,
21
- },
22
- req
23
- );
24
- }
25
15
  };
26
16
  };
@@ -47,12 +47,9 @@ const FactoryFormList = ({ MODULE_NAME, MODEL_NAME, actionName = "list" }) => {
47
47
  );
48
48
  }
49
49
 
50
- return this.afterExtract(
51
- {
52
- ...envs,
53
- },
54
- req
55
- );
50
+ return {
51
+ ...envs,
52
+ };
56
53
  }
57
54
  };
58
55
  };
@@ -22,8 +22,6 @@ const FactoryFormListAndCount = ({
22
22
  MODEL_NAME,
23
23
  actionName = "listAndCount",
24
24
  }) => {
25
-
26
-
27
25
  return class extends Form {
28
26
  constructor(params) {
29
27
  super({
@@ -31,7 +29,7 @@ const FactoryFormListAndCount = ({
31
29
  FIELDS,
32
30
  MODULE_NAME,
33
31
  MODEL_NAME,
34
- actionName
32
+ actionName,
35
33
  });
36
34
  }
37
35
 
@@ -52,12 +50,9 @@ const FactoryFormListAndCount = ({
52
50
  }
53
51
  );
54
52
  }
55
- return this.afterExtract(
56
- {
57
- ...envs,
58
- },
59
- req
60
- );
53
+ return {
54
+ ...envs,
55
+ };
61
56
  }
62
57
  };
63
58
  };