mixi2-js 0.1.2 → 1.0.0
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/README.md +1 -1
- package/package.json +6 -2
package/README.md
CHANGED
|
@@ -145,7 +145,7 @@ const upload = await client.initiatePostMediaUpload({
|
|
|
145
145
|
dataSize: 1024,
|
|
146
146
|
mediaType: MediaUploadType.IMAGE,
|
|
147
147
|
});
|
|
148
|
-
// upload.uploadUrl に
|
|
148
|
+
// upload.uploadUrl に POST でメディアデータを送信
|
|
149
149
|
const status = await client.getPostMediaStatus(upload.mediaId);
|
|
150
150
|
// status.status === MediaUploadStatus.COMPLETED になったら添付可能
|
|
151
151
|
await client.createPost({ text: '画像付き!', mediaIdList: [upload.mediaId] });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mixi2-js",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "TypeScript/JavaScript SDK for mixi2 Application API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -25,7 +25,11 @@
|
|
|
25
25
|
"scripts": {
|
|
26
26
|
"setup": "npm install && node scripts/setup.js",
|
|
27
27
|
"test": "jest",
|
|
28
|
-
"check": "
|
|
28
|
+
"check": "npm run check:types && npm run check:lint && npm run check:format",
|
|
29
|
+
"check:all": "npm run check && npm test && npm run build",
|
|
30
|
+
"check:types": "tsc --noEmit",
|
|
31
|
+
"check:lint": "eslint ./src/",
|
|
32
|
+
"check:format": "prettier --check ./src/",
|
|
29
33
|
"checkversion": "ncu",
|
|
30
34
|
"up": "ncu -u && npm install",
|
|
31
35
|
"lint": "eslint ./src/",
|