From c115cdedac4b7a2bfeac98d4d54abf4b96447201 Mon Sep 17 00:00:00 2001 From: Lucas Vieira Date: Tue, 9 Jan 2024 08:54:30 -0300 Subject: [PATCH] fix: request default import error --- src/index.ts | 2 +- tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 7300234..17796e6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,4 @@ -import request from 'request'; +import * as request from 'request'; import { TRouteConfigs, parseRequestOptions } from './api_handler/parse_request_options'; import { handleRequest } from './api_handler/requests_handler'; import { INITIAL_CONFIGS, TAuthData, TRequestConfigs, TTicktickConfigs } from './configs'; diff --git a/tsconfig.json b/tsconfig.json index dc37865..0dcb8f4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,7 +6,7 @@ "strict": true, "skipLibCheck": true, "declaration": true, - "allowSyntheticDefaultImports": true + "esModuleInterop": true }, "include": ["src"] }