From b94d38c43ab1f19265ad868dd499602796172830 Mon Sep 17 00:00:00 2001 From: Sokratis Vidros Date: Tue, 3 Dec 2024 00:11:02 +0200 Subject: [PATCH] fix(js): Make Eslint happy. Note that the global monorepo eslint runs on each package. --- packages/js/src/api/http-client.ts | 1 + packages/js/tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/js/src/api/http-client.ts b/packages/js/src/api/http-client.ts index ef3f093c08b..b0cb50566ee 100644 --- a/packages/js/src/api/http-client.ts +++ b/packages/js/src/api/http-client.ts @@ -109,6 +109,7 @@ export class HttpClient { } const res = await response.json(); + return (unwrapEnvelope ? res.data : res) as Promise; } } diff --git a/packages/js/tsconfig.json b/packages/js/tsconfig.json index 0e5d3b81e19..4a83a390ddf 100644 --- a/packages/js/tsconfig.json +++ b/packages/js/tsconfig.json @@ -19,5 +19,5 @@ "removeComments": false }, "include": ["src/**/*", "src/**/*.d.ts"], - "exclude": ["src/**/*.test.ts", "src/*.test.ts", "node_modules", "**/node_modules/*"] + "exclude": ["node_modules", "**/node_modules/*"] }