Skip to content

Commit 570b0b0

Browse files
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 5.62.0 to 6.2.0 (#45)
* chore(deps-dev): bump @typescript-eslint/eslint-plugin Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.62.0 to 6.2.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.2.0/packages/eslint-plugin) --- updated-dependencies: - dependency-name: "@typescript-eslint/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * chore: update linter --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: dev-bre <anbrandi@gmail.com>
1 parent bb72aac commit 570b0b0

File tree

18 files changed

+6814
-3998
lines changed

18 files changed

+6814
-3998
lines changed

package-lock.json

Lines changed: 6784 additions & 3955 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,17 @@
88
"@types/luxon": "^3.3.0",
99
"@types/mongodb": "^4.0.7",
1010
"@types/node": "^20.3.1",
11-
"@typescript-eslint/eslint-plugin": "^5.62.0",
11+
1212
"eslint": "^8.44.0",
1313
"eslint-plugin-import": "^2.27.5",
1414
"eslint-plugin-n": "^15.7.0",
1515
"eslint-plugin-promise": "^6.1.1",
1616
"eslint-plugin-react": "^7.32.2",
1717
"eslint-plugin-react-hooks": "^4.6.0",
18+
"@typescript-eslint/eslint-plugin": "^6.2.0",
19+
"@typescript-eslint/parser": "^6.2.0",
20+
"eslint-import-resolver-typescript": "^3.5.5",
21+
1822
"lerna": "^7.0.2",
1923
"luxon": "^3.3.0",
2024
"mongodb": "^5.6.0",
@@ -28,5 +32,8 @@
2832
"dev:start-api": "cd ./packages/api && npm run dev:start",
2933
"dev:start-ui": "cd ./packages/ui && npm run start",
3034
"dev:start-tw:watch": "cd ./packages/ui && npm run build:tw:watch"
35+
},
36+
"overrides": {
37+
"typescript": "^5.1.6"
3138
}
32-
}
39+
}

packages/api/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@
4242
"@types/express-session": "^1.17.7",
4343
"@types/multer": "^1.4.7",
4444
"@types/passport": "^1.0.12",
45-
"@types/passport-google-oauth20": "^2.0.11",
46-
"@typescript-eslint/eslint-plugin": "^6.0.0",
47-
"@typescript-eslint/parser": "^6.0.0",
48-
"eslint": "^8.44.0"
45+
"@types/passport-google-oauth20": "^2.0.11"
4946
}
5047
}

packages/api/src/routes/flagsRoutes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const flagRoutesWrapper = (storeManager: Promise<dbManager.DataStoreManag
1717

1818
try {
1919

20-
const flags = await flagsService.getFlags("");
20+
const flags = await flagsService.getFlags();
2121
setSuccessResponse(res, ApiResponseCodes.Success, flags, req);
2222
} catch (error) {
2323
setErrorResponse(res, ApiResponseCodes.GenericError);

packages/api/src/routes/sdkAuthRoutes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const sdkAuthRoutesWrapper = (storeManager: Promise<dbManager.DataStoreMa
1515
apiAuthRoutes.get("/api/sdk/auth/", auth.isAuthenticated, async (req: Request, res: Response) => {
1616

1717
try {
18-
const sdkAuths = await sdkAuthService.getSdkAuths("");
18+
const sdkAuths = await sdkAuthService.getSdkAuths();
1919

2020
// hide the full apikey for security reasons
2121
sdkAuths.forEach(x => {

packages/api/src/routes/sdkRoutes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const sdkRoutesWrapper = (storeManager: Promise<dbManager.DataStoreManage
1717

1818
sdkRoutes.get("/api/sdk/flags", auth.isSdkAuthenticated, async (req: Request, res: Response) => {
1919
try {
20-
const flags = await flagsService.getFlags("");
20+
const flags = await flagsService.getFlags();
2121
setSuccessResponse(res, ApiResponseCodes.Success, flags);
2222
} catch (error) {
2323
setErrorResponse(res, ApiResponseCodes.GenericError);
@@ -73,7 +73,7 @@ export const sdkRoutesWrapper = (storeManager: Promise<dbManager.DataStoreManage
7373

7474
sdkRoutes.get("/api/sdk/segments", auth.isSdkAuthenticated, async (req: Request, res: Response) => {
7575
try {
76-
const segments = await segmentsService.getSegments("");
76+
const segments = await segmentsService.getSegments();
7777
setSuccessResponse(res, ApiResponseCodes.Success, segments);
7878
} catch (error) {
7979
setErrorResponse(res, ApiResponseCodes.GenericError);

packages/api/src/routes/segmentsRoutes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const segmentsRoutesWrapper = (storeManager: Promise<dbManager.DataStoreM
1515
const flagRoutes = Router();
1616
flagRoutes.get("/api/segments/", auth.isAuthenticated, async (req: Request, res: Response) => {
1717
try {
18-
const segments = await segmentsService.getSegments("");
18+
const segments = await segmentsService.getSegments();
1919
setSuccessResponse(res, ApiResponseCodes.Success, segments, req);
2020
} catch (error) {
2121
setErrorResponse(res, ApiResponseCodes.GenericError);

packages/api/src/services/flagsService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ export const setDataStoreManager = (manager: Promise<dbManager.DataStoreManager>
66
manager.then(data => dataStoreManager = data);
77
};
88

9-
export const getFlags = async (userId: string): Promise<FlagModel[]> => {
10-
return await dataStoreManager.getFlags(userId);
9+
export const getFlags = async (): Promise<FlagModel[]> => {
10+
return await dataStoreManager.getFlags();
1111
};
1212

1313
export const getFlag = async (search: { name?: string, id?: string, key?: string }): Promise<FlagModel | null> => {

packages/api/src/services/sdkAuthService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ export const setDataStoreManager = (manager: Promise<dbManager.DataStoreManager>
66
manager.then(data => dataStoreManager = data);
77
};
88

9-
export const getSdkAuths = async (userKey: string): Promise<SdkAuthModel[]> => {
10-
return await dataStoreManager.getSdkAuths(userKey);
9+
export const getSdkAuths = async (): Promise<SdkAuthModel[]> => {
10+
return await dataStoreManager.getSdkAuths();
1111
};
1212

1313
export const getSdkAuth = async (search: { key?: string, apiKey?: string }): Promise<SdkAuthModel | null> => {

packages/api/src/services/segmentsService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ export const setDataStoreManager = (manager: Promise<dbManager.DataStoreManager>
66
manager.then(data => dataStoreManager = data);
77
};
88

9-
export const getSegments = async (segmentId: string): Promise<SegmentModel[]> => {
10-
return await dataStoreManager.getSegments(segmentId);
9+
export const getSegments = async (): Promise<SegmentModel[]> => {
10+
return await dataStoreManager.getSegments();
1111
};
1212

1313
export const getSegment = async (search: { id?: string, key?: string }): Promise<SegmentModel | null> => {

0 commit comments

Comments
 (0)