diff --git a/src/server_manager/electron_app/digitalocean_oauth.ts b/src/server_manager/electron_app/digitalocean_oauth.ts index 05d2c570c..2092cc243 100644 --- a/src/server_manager/electron_app/digitalocean_oauth.ts +++ b/src/server_manager/electron_app/digitalocean_oauth.ts @@ -14,10 +14,10 @@ import * as crypto from 'crypto'; import * as electron from 'electron'; -import * as express from 'express'; +import express from 'express'; import * as http from 'http'; import {AddressInfo} from 'net'; -import * as request from 'request'; +import request from 'request'; const REGISTERED_REDIRECTS: Array<{clientId: string; port: number}> = [ {clientId: '7f84935771d49c2331e1cfb60c7827e20eaf128103435d82ad20b3c53253b721', port: 55189}, @@ -25,7 +25,7 @@ const REGISTERED_REDIRECTS: Array<{clientId: string; port: number}> = [ {clientId: '706928a1c91cbd646c4e0d744c8cbdfbf555a944b821ac7812a7314a4649683a', port: 61437}, ]; -const CALLBACK_SERVER_CLOSE_TIMEOUT = 30000; // 30 seconds +const CALLBACK_SERVER_CLOSE_TIMEOUT = 30000; // 30 seconds function randomValueHex(len: number): string { return crypto diff --git a/src/server_manager/electron_app/gcp_oauth.ts b/src/server_manager/electron_app/gcp_oauth.ts index d20df0f19..c824c1ffa 100644 --- a/src/server_manager/electron_app/gcp_oauth.ts +++ b/src/server_manager/electron_app/gcp_oauth.ts @@ -13,7 +13,7 @@ // limitations under the License. import * as electron from 'electron'; -import * as express from 'express'; +import express from 'express'; import {OAuth2Client} from 'google-auth-library'; import {AddressInfo} from 'net'; diff --git a/src/server_manager/electron_app/tsconfig.json b/src/server_manager/electron_app/tsconfig.json index b4dcbff75..212ee0c68 100644 --- a/src/server_manager/electron_app/tsconfig.json +++ b/src/server_manager/electron_app/tsconfig.json @@ -1,8 +1,10 @@ { "compilerOptions": { + "allowSyntheticDefaultImports": true, "target": "es2021", "removeComments": false, - "noImplicitAny": true, + // "noImplicitAny": true, + "esModuleInterop": true, "module": "commonjs", "rootDir": "..", "lib": ["dom", "es2021"] diff --git a/src/server_manager/web_app/management_urls.ts b/src/server_manager/web_app/management_urls.ts index fb0888cec..f86d24cd9 100644 --- a/src/server_manager/web_app/management_urls.ts +++ b/src/server_manager/web_app/management_urls.ts @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -import * as jsonic from 'jsonic'; +import jsonic from 'jsonic'; import {ManualServerConfig} from '../model/server'; diff --git a/tsconfig.json b/tsconfig.json index 4d251a13e..e8ecbbf63 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,8 +1,10 @@ { "compilerOptions": { + "allowSyntheticDefaultImports": true, + "esModuleInterop": true, "target": "es2015", "removeComments": false, - "noImplicitAny": true, + // "noImplicitAny": true, "noImplicitThis": true, "moduleResolution": "Node", "sourceMap": true,