@ts-core/oauth 3.1.8 → 3.1.9
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/cjs/go/GoUser.js +1 -1
- package/cjs/keycloak/KeycloakUser.js +1 -1
- package/cjs/ma/MaUser.js +1 -1
- package/cjs/tg/TgUser.js +1 -1
- package/cjs/vk/VkUser.js +1 -1
- package/cjs/ya/YaUser.js +1 -1
- package/esm/go/GoUser.js +1 -1
- package/esm/keycloak/KeycloakUser.js +1 -1
- package/esm/ma/MaUser.js +1 -1
- package/esm/tg/TgUser.js +1 -1
- package/esm/vk/VkUser.js +1 -1
- package/esm/ya/YaUser.js +1 -1
- package/package.json +1 -1
package/cjs/go/GoUser.js
CHANGED
|
@@ -5,7 +5,7 @@ const OAuthUser_1 = require("../OAuthUser");
|
|
|
5
5
|
const _ = require("lodash");
|
|
6
6
|
class GoUser extends OAuthUser_1.OAuthUser {
|
|
7
7
|
parse(item) {
|
|
8
|
-
this.id = item.sub;
|
|
8
|
+
this.id = item.sub.toString();
|
|
9
9
|
this.name = item.name;
|
|
10
10
|
this.email = item.email;
|
|
11
11
|
this.locale = item.locale;
|
|
@@ -4,7 +4,7 @@ exports.KeycloakUser = void 0;
|
|
|
4
4
|
const OAuthUser_1 = require("../OAuthUser");
|
|
5
5
|
class KeycloakUser extends OAuthUser_1.OAuthUser {
|
|
6
6
|
parse(item) {
|
|
7
|
-
this.id = item.sub;
|
|
7
|
+
this.id = item.sub.toString();
|
|
8
8
|
this.name = item.name;
|
|
9
9
|
this.email = item.email;
|
|
10
10
|
this.isEmailVerified = item.email_verified;
|
package/cjs/ma/MaUser.js
CHANGED
|
@@ -5,7 +5,7 @@ const OAuthUser_1 = require("../OAuthUser");
|
|
|
5
5
|
const _ = require("lodash");
|
|
6
6
|
class MaUser extends OAuthUser_1.OAuthUser {
|
|
7
7
|
parse(item) {
|
|
8
|
-
this.id = item.id;
|
|
8
|
+
this.id = item.id.toString();
|
|
9
9
|
this.name = item.name;
|
|
10
10
|
this.email = item.email;
|
|
11
11
|
this.locale = item.locale;
|
package/cjs/tg/TgUser.js
CHANGED
|
@@ -19,7 +19,7 @@ class TgUser extends OAuthUser_1.OAuthUser {
|
|
|
19
19
|
return Object.keys(raw).sort().filter((k) => raw[k]).filter((k) => !['hash'].includes(k)).map(k => (`${k}=${raw[k]}`)).join('\n');
|
|
20
20
|
}
|
|
21
21
|
parse(item) {
|
|
22
|
-
this.id = item.id;
|
|
22
|
+
this.id = item.id.toString();
|
|
23
23
|
this.hash = item.hash;
|
|
24
24
|
this.name = `${item.first_name} ${item.last_name}`;
|
|
25
25
|
this.date = common_1.DateUtil.getDate(item.auth_date * common_1.DateUtil.MILLISECONDS_SECOND);
|
package/cjs/vk/VkUser.js
CHANGED
|
@@ -5,7 +5,7 @@ const OAuthUser_1 = require("../OAuthUser");
|
|
|
5
5
|
const _ = require("lodash");
|
|
6
6
|
class VkUser extends OAuthUser_1.OAuthUser {
|
|
7
7
|
parse(item) {
|
|
8
|
-
this.id = item.id;
|
|
8
|
+
this.id = item.id.toString();
|
|
9
9
|
this.vk = `https://vk.com/id${item.id}`;
|
|
10
10
|
this.name = `${item.first_name} ${item.last_name}`;
|
|
11
11
|
this.picture = item.photo_200;
|
package/cjs/ya/YaUser.js
CHANGED
|
@@ -5,7 +5,7 @@ const OAuthUser_1 = require("../OAuthUser");
|
|
|
5
5
|
const _ = require("lodash");
|
|
6
6
|
class YaUser extends OAuthUser_1.OAuthUser {
|
|
7
7
|
parse(item) {
|
|
8
|
-
this.id = item.id;
|
|
8
|
+
this.id = item.id.toString();
|
|
9
9
|
this.name = item.display_name;
|
|
10
10
|
this.login = item.login;
|
|
11
11
|
this.psuid = item.psuid;
|
package/esm/go/GoUser.js
CHANGED
package/esm/ma/MaUser.js
CHANGED
package/esm/tg/TgUser.js
CHANGED
|
@@ -16,7 +16,7 @@ export class TgUser extends OAuthUser {
|
|
|
16
16
|
return Object.keys(raw).sort().filter((k) => raw[k]).filter((k) => !['hash'].includes(k)).map(k => (`${k}=${raw[k]}`)).join('\n');
|
|
17
17
|
}
|
|
18
18
|
parse(item) {
|
|
19
|
-
this.id = item.id;
|
|
19
|
+
this.id = item.id.toString();
|
|
20
20
|
this.hash = item.hash;
|
|
21
21
|
this.name = `${item.first_name} ${item.last_name}`;
|
|
22
22
|
this.date = DateUtil.getDate(item.auth_date * DateUtil.MILLISECONDS_SECOND);
|
package/esm/vk/VkUser.js
CHANGED
|
@@ -2,7 +2,7 @@ import { OAuthUser } from "../OAuthUser";
|
|
|
2
2
|
import * as _ from 'lodash';
|
|
3
3
|
export class VkUser extends OAuthUser {
|
|
4
4
|
parse(item) {
|
|
5
|
-
this.id = item.id;
|
|
5
|
+
this.id = item.id.toString();
|
|
6
6
|
this.vk = `https://vk.com/id${item.id}`;
|
|
7
7
|
this.name = `${item.first_name} ${item.last_name}`;
|
|
8
8
|
this.picture = item.photo_200;
|
package/esm/ya/YaUser.js
CHANGED
|
@@ -2,7 +2,7 @@ import { OAuthUser } from "../OAuthUser";
|
|
|
2
2
|
import * as _ from 'lodash';
|
|
3
3
|
export class YaUser extends OAuthUser {
|
|
4
4
|
parse(item) {
|
|
5
|
-
this.id = item.id;
|
|
5
|
+
this.id = item.id.toString();
|
|
6
6
|
this.name = item.display_name;
|
|
7
7
|
this.login = item.login;
|
|
8
8
|
this.psuid = item.psuid;
|