From eaefd959fe11634f206ca89c95bee649067f4a9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Thu, 20 Jul 2023 10:05:41 +0900 Subject: [PATCH 1/2] fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- twitter-openapi-typescript/src/utils/api.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/twitter-openapi-typescript/src/utils/api.ts b/twitter-openapi-typescript/src/utils/api.ts index 1d5ca15..3d231ee 100644 --- a/twitter-openapi-typescript/src/utils/api.ts +++ b/twitter-openapi-typescript/src/utils/api.ts @@ -7,9 +7,8 @@ export const instructionToEntry = (item: i.InstructionUnion[]): i.TimelineAddEnt return (e as i.TimelineAddEntries).entries; } else if (e.type == i.InstructionType.TimelineReplaceEntry) { return [(e as i.TimelineReplaceEntry).entry]; - } else { - return null; } + return []; }); }; From e39466e9b5c54a29cff49d47165bd98eaad5af11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Thu, 20 Jul 2023 10:05:57 +0900 Subject: [PATCH 2/2] 0.0.12 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- twitter-openapi-typescript/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twitter-openapi-typescript/package.json b/twitter-openapi-typescript/package.json index d924c8e..5c0b3a6 100644 --- a/twitter-openapi-typescript/package.json +++ b/twitter-openapi-typescript/package.json @@ -1,6 +1,6 @@ { "name": "twitter-openapi-typescript", - "version": "0.0.11", + "version": "0.0.12", "description": "Implementation of Twitter internal API in TypeScript", "scripts": { "test": "jest",