Skip to content

Commit

Permalink
fix: lodash types
Browse files Browse the repository at this point in the history
  • Loading branch information
mbystedt committed Dec 11, 2024
1 parent 5692b92 commit f32caa3
Show file tree
Hide file tree
Showing 11 changed files with 35 additions and 9 deletions.
22 changes: 22 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@
"@types/express-session": "^1.18.1",
"@types/jest": "^29.5.14",
"@types/libsodium-wrappers": "^0.7.14",
"@types/lodash.get": "^4.4.9",
"@types/lodash.merge": "^4.6.9",
"@types/lodash.set": "^4.3.9",
"@types/node": "^22.10.1",
"@types/passport": "^1.0.17",
"@types/passport-http": "^0.3.11",
Expand Down
2 changes: 1 addition & 1 deletion src/auth/auth.service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Injectable } from '@nestjs/common';
import { get } from 'lodash';
import get from 'lodash.get';
import { Request } from 'express';

import { OAUTH2_CLIENT_MAP_GUID } from '../constants';
Expand Down
2 changes: 1 addition & 1 deletion src/auth/broker-oidc-auth.guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
} from '@nestjs/common';
import { Reflector } from '@nestjs/core';
import { AuthGuard } from '@nestjs/passport';
import { get } from 'lodash';
import get from 'lodash.get';
import {
ALLOW_OWNER_METADATA_KEY,
AllowOwnerArgs,
Expand Down
2 changes: 1 addition & 1 deletion src/collection/collection.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import {
} from 'express';
import { ApiBearerAuth, ApiOAuth2, ApiQuery } from '@nestjs/swagger';
import { Observable } from 'rxjs';
import get from 'lodash.get';
import {
OAUTH2_CLIENT_MAP_GUID,
REDIS_PUBSUB,
Expand All @@ -39,7 +40,6 @@ import { UserImportDto } from './dto/user-import.dto';
import { UserRolesDto } from './dto/user-roles.dto';
import { AccountPermission } from '../account-permission.decorator';
import { CollectionSearchQuery } from './dto/collection-search-query.dto';
import { get } from 'lodash';
import { UserCollectionService } from './user-collection.service';
import { CollectionNames } from '../persistence/dto/collection-dto-union.type';
import { PersistenceCacheKey } from '../persistence/persistence-cache-key.decorator';
Expand Down
2 changes: 1 addition & 1 deletion src/collection/dto/user-roles.dto.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { get } from 'lodash';
import get from 'lodash.get';
import { UserImportDto } from './user-import.dto';
import {
OAUTH2_CLIENT_MAP_DOMAIN,
Expand Down
3 changes: 2 additions & 1 deletion src/graph/graph.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import {
import { Request } from 'express';
import ejs from 'ejs';
import { ValidationError, wrap } from '@mikro-orm/core';
import { get, set } from 'lodash';
import get from 'lodash.get';
import set from 'lodash.set';
import { validate } from 'class-validator';

import { GraphRepository } from '../persistence/interfaces/graph.repository';
Expand Down
3 changes: 2 additions & 1 deletion src/graph/intention-sync.service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Injectable } from '@nestjs/common';
import { get, set } from 'lodash';
import get from 'lodash.get';
import set from 'lodash.set';
import deepEqual from 'deep-equal';
import { plainToClass } from 'class-transformer';

Expand Down
2 changes: 1 addition & 1 deletion src/package/package.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
} from '@nestjs/common';
import { ApiQuery } from '@nestjs/swagger';
import { Request as ExpressRequest } from 'express';
import { get } from 'lodash';
import get from 'lodash.get';

import { BrokerOidcAuthGuard } from '../auth/broker-oidc-auth.guard';
import { OAUTH2_CLIENT_MAP_GUID } from '../constants';
Expand Down
2 changes: 1 addition & 1 deletion src/preference/preference.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { OAUTH2_CLIENT_MAP_GUID } from '../constants';
import { PreferenceService } from './preference.service';
import { BrokerOidcAuthGuard } from '../auth/broker-oidc-auth.guard';
import { PreferenceDto } from '../persistence/dto/preference.dto';
import { get } from 'lodash';
import get from 'lodash.get';

@Controller({
path: 'preference',
Expand Down
2 changes: 1 addition & 1 deletion src/util/action.util.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { BadRequestException, Injectable } from '@nestjs/common';
import { get } from 'lodash';
import get from 'lodash.get';
import ejs from 'ejs';
import {
INTENTION_SERVICE_ENVIRONMENT_SEARCH_PATHS,
Expand Down

0 comments on commit f32caa3

Please sign in to comment.