not-node 6.3.14 → 6.3.16

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.14",
3
+ "version": "6.3.16",
4
4
  "description": "node complimentary part for client side notFramework.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -28,6 +28,7 @@ module.exports = class notAppIdentity {
28
28
  uid: identity.getUserId(),
29
29
  sid: identity.getSessionId(),
30
30
  ip: getIP(req),
31
+ provider: identity.constructor.name,
31
32
  };
32
33
  }
33
34
 
@@ -1,4 +1,4 @@
1
- const notError = require("not-error/src/error.node");
1
+ const { notError } = require("not-error/src");
2
2
 
3
3
  class VersioningExceptionSameOldData extends notError {
4
4
  constructor() {
package/src/types.js CHANGED
@@ -92,6 +92,7 @@
92
92
  * @property {string} uid //user identificator
93
93
  * @property {string} sid //user session identificator
94
94
  * @property {string} ip //request source ip
95
+ * @property {string} provider //provider class name
95
96
  */
96
97
 
97
98
  module.exports = {};
@@ -4,6 +4,7 @@ const {
4
4
  } = require("../../src/exceptions/http");
5
5
 
6
6
  const notAppIdentity = require("../../src/identity/index");
7
+ const IdentityProviderSession = require("../../src/identity/providers/session");
7
8
 
8
9
  module.exports = ({ Auth, expect }) => {
9
10
  describe("Routes", () => {
@@ -71,6 +72,7 @@ module.exports = ({ Auth, expect }) => {
71
72
  auth: false,
72
73
  role: [Auth.DEFAULT_USER_ROLE_FOR_GUEST],
73
74
  primaryRole: Auth.DEFAULT_USER_ROLE_FOR_GUEST,
75
+ provider: IdentityProviderSession.name,
74
76
  uid: null,
75
77
  sid: undefined,
76
78
  ip: "127.0.0.1",