not-node 6.3.11 → 6.3.13

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.3.11",
3
+ "version": "6.3.13",
4
4
  "description": "node complimentary part for client side notFramework.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -0,0 +1,8 @@
1
+ const notAppIdentity = require("../../identity");
2
+
3
+ module.exports = (form, req) => {
4
+ return {
5
+ name: "identity",
6
+ value: notAppIdentity.extractAuthData(req),
7
+ };
8
+ };
@@ -5,11 +5,12 @@
5
5
  module.exports = {
6
6
  ID: require("./ID.js"),
7
7
  targetID: require("./ID.js"),
8
- _id: require("./_id.js"),
9
- targetId: require("./_id.js"),
8
+ _id: require("./targetId.js"),
9
+ targetId: require("./targetId.js"),
10
10
  activeUser: require("./activeUser.js"),
11
11
  activeUserId: require("./activeUserId.js"),
12
12
  ip: require("./ip.js"),
13
13
  modelNameID: require("./modelNameID.js"),
14
14
  query: require("./query.js"),
15
+ identity: require("./identity.js"),
15
16
  };
@@ -6,6 +6,7 @@ const FIELDS = [
6
6
  ["activeUserId", { required: true }, "not-node//objectId"],
7
7
  ["activeUser", "not-node//requiredObject"],
8
8
  ["ip", "not-node//ip"],
9
+ ["identity", "not-node//requiredObject"],
9
10
  ];
10
11
 
11
12
  module.exports = ({ MODULE_NAME, MODEL_NAME, actionName }) => {
@@ -7,6 +7,7 @@ const FIELDS = [
7
7
  ["activeUserId", { required: true }, "not-node//objectId"],
8
8
  ["activeUser", "not-node//requiredObject"],
9
9
  ["ip", "not-node//ip"],
10
+ ["identity", "not-node//requiredObject"],
10
11
  ];
11
12
 
12
13
  module.exports = ({ MODULE_NAME, MODEL_NAME, actionName }) => {
@@ -8,6 +8,7 @@ const FIELDS = [
8
8
  ["activeUserId", { required: true }, "not-node//objectId"],
9
9
  ["activeUser", "not-node//requiredObject"],
10
10
  ["ip", "not-node//ip"],
11
+ ["identity", "not-node//requiredObject"],
11
12
  ];
12
13
 
13
14
  module.exports = ({ MODULE_NAME, MODEL_NAME, actionName }) => {
@@ -8,6 +8,7 @@ const FIELDS = [
8
8
  ["activeUserId", { required: true }, "not-node//objectId"],
9
9
  ["activeUser", "not-node//requiredObject"],
10
10
  ["ip", "not-node//ip"],
11
+ ["identity", "not-node//requiredObject"],
11
12
  ];
12
13
 
13
14
  /**
@@ -8,6 +8,7 @@ const FIELDS = [
8
8
  ["activeUserId", { required: true }, "not-node//objectId"],
9
9
  ["activeUser", "not-node//requiredObject"],
10
10
  ["ip", "not-node//ip"],
11
+ ["identity", "not-node//requiredObject"],
11
12
  ];
12
13
 
13
14
  /**
package/src/types.js CHANGED
@@ -9,6 +9,7 @@
9
9
 
10
10
  /**
11
11
  * @typedef {Object} PreparedData
12
+ * @property {notAppIdentityData} [identity] user identity information
12
13
  * @property {Object} [data]
13
14
  * @property {string} [action]
14
15
  * @property {Query} [query]
File without changes