Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f65b3d5e72 | |||
| fc325be4c7 | |||
| 87a424a6b7 | |||
| 331cff0550 | |||
| 714edfa147 | |||
| ab701005ec | |||
| 72d7616c16 | |||
| 0e3ce6a58a | |||
| 51a2acd8c3 | |||
| fb218bcbe1 | |||
| 4c508008b2 | |||
| 6371315b71 | |||
| 9ba65ee60a | |||
| d102adcebc |
@@ -5,13 +5,13 @@
|
|||||||
## インストール
|
## インストール
|
||||||
```bash
|
```bash
|
||||||
# npm
|
# npm
|
||||||
npm install git+https://gitea.last2014.com/last2014/better-uwuzu-sdk.git#1.1.0
|
npm install git+https://gitea.last2014.com/last2014/better-uwuzu-sdk.git#1.1.4
|
||||||
|
|
||||||
# yarn
|
# yarn
|
||||||
yarn add git+https://gitea.last2014.com/last2014/better-uwuzu-sdk.git#1.1.0
|
yarn add git+https://gitea.last2014.com/last2014/better-uwuzu-sdk.git#1.1.4
|
||||||
|
|
||||||
# pnpm
|
# pnpm
|
||||||
pnpm add git+https://gitea.last2014.com/last2014/better-uwuzu-sdk.git#1.1.0
|
pnpm add git+https://gitea.last2014.com/last2014/better-uwuzu-sdk.git#1.1.4
|
||||||
```
|
```
|
||||||
> **NOTE**
|
> **NOTE**
|
||||||
> このSDKはnpmリポジトリがありません。Gitリポジトリを使用しています。
|
> このSDKはnpmリポジトリがありません。Gitリポジトリを使用しています。
|
||||||
|
|||||||
+5
-5
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "better-uwuzu-sdk",
|
"name": "better-uwuzu-sdk",
|
||||||
"version": "1.1.0",
|
"version": "1.1.4",
|
||||||
"description": "A better uwuzu SDK.",
|
"description": "A better uwuzu SDK.",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/types/index.d.ts",
|
"types": "dist/types/index.d.ts",
|
||||||
@@ -33,19 +33,19 @@
|
|||||||
"types": "./dist/types/*.d.ts"
|
"types": "./dist/types/*.d.ts"
|
||||||
},
|
},
|
||||||
"./*/*": {
|
"./*/*": {
|
||||||
"import": "./dist/types/*/*.js",
|
"import": "./dist/*/*.js",
|
||||||
"types": "./dist/types/*/*.d.ts"
|
"types": "./dist/types/*/*.d.ts"
|
||||||
},
|
},
|
||||||
"./*/*/*": {
|
"./*/*/*": {
|
||||||
"import": "./dist/types/*/*/*.js",
|
"import": "./dist/*/*/*.js",
|
||||||
"types": "./dist/types/*/*/*.d.ts"
|
"types": "./dist/types/*/*/*.d.ts"
|
||||||
},
|
},
|
||||||
"./*/*/*/*": {
|
"./*/*/*/*": {
|
||||||
"import": "./dist/types/*/*/*/*.js",
|
"import": "./dist/*/*/*/*.js",
|
||||||
"types": "./dist/types/*/*/*/*.d.ts"
|
"types": "./dist/types/*/*/*/*.d.ts"
|
||||||
},
|
},
|
||||||
"./*/*/*/*/*": {
|
"./*/*/*/*/*": {
|
||||||
"import": "./dist/types/*/*/*/*/*.js",
|
"import": "./dist/*/*/*/*/*.js",
|
||||||
"types": "./dist/types/*/*/*/*/*.d.ts"
|
"types": "./dist/types/*/*/*/*/*.d.ts"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Vendored
+1
-1
@@ -2,7 +2,7 @@ import InputError from "../../modules/error/input";
|
|||||||
import { UserDataNotFound } from "../../modules/error/critical";
|
import { UserDataNotFound } from "../../modules/error/critical";
|
||||||
|
|
||||||
export default interface TokenGet {
|
export default interface TokenGet {
|
||||||
"ueuse/get": {
|
"token/get": {
|
||||||
body: {
|
body: {
|
||||||
/** api/authで使用したセッション */
|
/** api/authで使用したセッション */
|
||||||
session: string;
|
session: string;
|
||||||
|
|||||||
Vendored
+2
@@ -31,6 +31,8 @@ export default interface ueuseModule {
|
|||||||
/** Botフラグ(自主設定)かどうか */
|
/** Botフラグ(自主設定)かどうか */
|
||||||
is_bot: boolean;
|
is_bot: boolean;
|
||||||
};
|
};
|
||||||
|
/** 本文 */
|
||||||
|
text: string;
|
||||||
/** いいねしたユーザーID */
|
/** いいねしたユーザーID */
|
||||||
favorite: string[];
|
favorite: string[];
|
||||||
/** メディア */
|
/** メディア */
|
||||||
|
|||||||
+5
-1
@@ -90,8 +90,12 @@ export default class uwuzu<
|
|||||||
|
|
||||||
bodyParsed = {
|
bodyParsed = {
|
||||||
...bodyParsed,
|
...bodyParsed,
|
||||||
token: this._token,
|
token: this._token ?? "",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (bodyParsed.token === "")
|
||||||
|
delete bodyParsed.token;
|
||||||
|
|
||||||
bodyParsed = JSON.stringify(bodyParsed);
|
bodyParsed = JSON.stringify(bodyParsed);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user