@autofleet/zehut 1.1.1 → 1.1.2
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/lib/user/ApiUser.js +2 -2
- package/package.json +2 -2
package/lib/user/ApiUser.js
CHANGED
|
@@ -20,7 +20,7 @@ class ApiUser {
|
|
|
20
20
|
if (this.privatePermissions) {
|
|
21
21
|
return this.privatePermissions;
|
|
22
22
|
}
|
|
23
|
-
const { data } = yield services_1.IdentityNetwork(`/api/v1/users/${this.id}/authorization-payload`);
|
|
23
|
+
const { data } = yield services_1.IdentityNetwork.get(`/api/v1/users/${this.id}/authorization-payload`);
|
|
24
24
|
this.privatePermissions = data;
|
|
25
25
|
return this.privatePermissions;
|
|
26
26
|
});
|
|
@@ -36,7 +36,7 @@ class ApiUser {
|
|
|
36
36
|
if (this.privatePermissionsLegacy) {
|
|
37
37
|
return this.privatePermissionsLegacy;
|
|
38
38
|
}
|
|
39
|
-
const { data } = yield services_1.IdentityNetwork(`/api/v1/users/${this.id}/authorization-payload-legacy`);
|
|
39
|
+
const { data } = yield services_1.IdentityNetwork.get(`/api/v1/users/${this.id}/authorization-payload-legacy`);
|
|
40
40
|
this.privatePermissionsLegacy = data;
|
|
41
41
|
return this.privatePermissionsLegacy;
|
|
42
42
|
});
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autofleet/zehut",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "manage user's identity",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"build": "tsc",
|
|
8
|
+
"build": "rm -rf lib && tsc",
|
|
9
9
|
"coverage": "jest --coverage --forceExit --runInBand",
|
|
10
10
|
"test": "jest --forceExit --runInBand",
|
|
11
11
|
"test-auto": "jest --watch --runInBand",
|