8 Commits

4 changed files with 10 additions and 6 deletions
+3 -3
View File
@@ -5,13 +5,13 @@
## インストール
```bash
# npm
npm install git+https://gitea.last2014.com/last2014/better-uwuzu-sdk.git#1.1.2
npm install git+https://gitea.last2014.com/last2014/better-uwuzu-sdk.git#1.1.4
# yarn
yarn add git+https://gitea.last2014.com/last2014/better-uwuzu-sdk.git#1.1.2
yarn add git+https://gitea.last2014.com/last2014/better-uwuzu-sdk.git#1.1.4
# pnpm
pnpm add git+https://gitea.last2014.com/last2014/better-uwuzu-sdk.git#1.1.2
pnpm add git+https://gitea.last2014.com/last2014/better-uwuzu-sdk.git#1.1.4
```
> **NOTE**
> このSDKはnpmリポジトリがありません。Gitリポジトリを使用しています。
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "better-uwuzu-sdk",
"version": "1.1.2",
"version": "1.1.4",
"description": "A better uwuzu SDK.",
"main": "dist/index.js",
"types": "dist/types/index.d.ts",
+1 -1
View File
@@ -2,7 +2,7 @@ import InputError from "../../modules/error/input";
import { UserDataNotFound } from "../../modules/error/critical";
export default interface TokenGet {
"ueuse/get": {
"token/get": {
body: {
/** api/authで使用したセッション */
session: string;
+5 -1
View File
@@ -90,8 +90,12 @@ export default class uwuzu<
bodyParsed = {
...bodyParsed,
token: this._token,
token: this._token ?? "",
};
if (bodyParsed.token === "")
delete bodyParsed.token;
bodyParsed = JSON.stringify(bodyParsed);
}