Skip to content

Commit 8473946

Browse files
committed
enable esModuleInterop
1 parent 30265e6 commit 8473946

39 files changed

+81
-81
lines changed

lib/app.ts

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
// app
22
// external modules
3-
import * as express from "express";
4-
import * as ejs from "ejs";
5-
import * as passport from "passport";
6-
import * as methodOverride from "method-override";
7-
import * as cookieParser from "cookie-parser";
8-
import * as session from "express-session";
9-
import * as fs from "fs";
10-
import * as path from "path";
11-
import * as morgan from "morgan";
12-
import * as helmet from "helmet";
13-
import * as i18n from "i18n";
14-
import * as flash from "connect-flash";
3+
import fs from "fs";
4+
import path from "path";
5+
6+
import express from "express";
7+
import ejs from "ejs";
8+
import passport from "passport";
9+
import methodOverride from "method-override";
10+
import cookieParser from "cookie-parser";
11+
import session from "express-session";
12+
import morgan from "morgan";
13+
import helmet from "helmet";
14+
import i18n from "i18n";
15+
import flash from "connect-flash";
1516
import {expressMiddleware as expressPrometheusMetricsMiddleware} from "prometheus-api-metrics";
16-
import * as connectSessionSequelize from 'connect-session-sequelize'
17-
import * as passportSocketIo from 'passport.socketio'
18-
import * as SocketIo from 'socket.io'
17+
import connectSessionSequelize from 'connect-session-sequelize'
18+
import passportSocketIo from 'passport.socketio'
19+
import SocketIo from 'socket.io'
1920
import {Server as WsServer} from 'ws'
2021
// core
2122
import * as config from "./config";

lib/auth/bitbucket/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Router} from "express";
2-
import * as passport from "passport";
2+
import passport from "passport";
33
import {Strategy as BitbucketStrategy} from "passport-bitbucket-oauth2";
44

55
import * as config from "../../config";

lib/auth/dropbox/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Router} from "express";
2-
import * as passport from "passport";
2+
import passport from "passport";
33
import {Strategy as DropboxStrategy} from "passport-dropbox-oauth2";
44

55
import * as config from "../../config";

lib/auth/email/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Router} from "express";
2-
import * as passport from "passport";
2+
import passport from "passport";
33
import validator from "validator";
44
import {Strategy as LocalStrategy} from 'passport-local';
55

lib/auth/facebook/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Router} from "express";
2-
import * as passport from "passport";
2+
import passport from "passport";
33
import {Strategy as FacebookStrategy} from "passport-facebook";
44

55
import * as config from "../../config";

lib/auth/github/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Router} from "express";
2-
import * as passport from "passport";
2+
import passport from "passport";
33
import {Strategy as GithubStrategy} from "passport-github";
44
import * as config from "../../config";
55
import * as response from "../../response";

lib/auth/gitlab/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import {Router} from "express";
2-
import * as passport from "passport";
2+
import passport from "passport";
33
import {Strategy as GitlabStrategy} from "passport-gitlab2";
44

55
import * as config from "../../config";
66
import * as response from "../../response";
77
import {passportGeneralCallback, setReturnToFromReferer} from "../utils";
8-
import * as HttpsProxyAgent from "https-proxy-agent";
8+
import HttpsProxyAgent from "https-proxy-agent";
99

1010
const gitlabAuth = Router()
1111
export = gitlabAuth

lib/auth/google/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Router} from "express";
2-
import * as passport from "passport";
2+
import passport from "passport";
33
import {Strategy as GoogleStrategy} from "passport-google-oauth20";
44

55
import * as config from "../../config";

lib/auth/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {Router} from "express";
22

3-
import * as passport from "passport";
3+
import passport from "passport";
44
import * as config from "../config";
55
import * as logger from "../logger";
66
import * as models from "../models";

lib/auth/ldap/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {Router} from "express";
2-
import * as passport from "passport";
3-
import * as LDAPStrategy from "passport-ldapauth";
2+
import passport from "passport";
3+
import LDAPStrategy from "passport-ldapauth";
44

55
import * as config from "../../config";
66
import * as models from "../../models";

0 commit comments

Comments
 (0)