@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.
@@ -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
- return await getJson(response);
2816
+ if (account && retJson) {
2817
+ return retJson.summary;
2818
+ }
2819
+ return retJson;
2816
2820
  };
2817
2821
  /**
2818
2822
  * revoke user
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vtecx/vtecxnext",
3
- "version": "2.2.13",
3
+ "version": "2.2.14",
4
4
  "description": "vte.cx Next.js api",
5
5
  "main": "dist/index.js",
6
6
  "files": [