@vtecx/vtecxnext 2.2.13 → 2.2.14
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/dist/vtecxnext.d.ts +1 -1
- package/dist/vtecxnext.js +5 -1
- package/package.json +1 -1
package/dist/vtecxnext.d.ts
CHANGED
|
@@ -714,7 +714,7 @@ export declare class VtecxNext {
|
|
|
714
714
|
* @param account account
|
|
715
715
|
* @return user status
|
|
716
716
|
*/
|
|
717
|
-
userstatus: (account?: string) => Promise<any>;
|
|
717
|
+
userstatus: (account?: string) => Promise<string | any>;
|
|
718
718
|
/**
|
|
719
719
|
* revoke user
|
|
720
720
|
* @param account account
|
package/dist/vtecxnext.js
CHANGED
|
@@ -2811,8 +2811,12 @@ class VtecxNext {
|
|
|
2811
2811
|
this.setCookie(response);
|
|
2812
2812
|
// レスポンスのエラーチェック
|
|
2813
2813
|
await checkVtecxResponse(response);
|
|
2814
|
+
const retJson = await getJson(response);
|
|
2814
2815
|
// 戻り値
|
|
2815
|
-
|
|
2816
|
+
if (account && retJson) {
|
|
2817
|
+
return retJson.summary;
|
|
2818
|
+
}
|
|
2819
|
+
return retJson;
|
|
2816
2820
|
};
|
|
2817
2821
|
/**
|
|
2818
2822
|
* revoke user
|