update dependencies, fix typescript issues, optimize lodash imports

This commit is contained in:
Amruth Pillai
2023-04-05 09:06:49 +02:00
parent 3a430ad98c
commit 36bf729161
20 changed files with 190 additions and 161 deletions

View File

@ -2,7 +2,7 @@ import { HttpService } from '@nestjs/axios';
import { Injectable } from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
import { Font } from '@reactive-resume/schema';
import { get } from 'lodash';
import get from 'lodash/get';
import { firstValueFrom } from 'rxjs';
import cachedResponse from './assets/cachedResponse.json';

View File

@ -16,7 +16,10 @@ import {
import csv from 'csvtojson';
import dayjs from 'dayjs';
import { readFile, unlink } from 'fs/promises';
import { cloneDeep, get, isEmpty, merge } from 'lodash';
import cloneDeep from 'lodash/cloneDeep';
import get from 'lodash/get';
import isEmpty from 'lodash/isEmpty';
import merge from 'lodash/merge';
import StreamZip from 'node-stream-zip';
import { DeepPartial } from 'typeorm';
import { v4 as uuidv4 } from 'uuid';

View File

@ -4,7 +4,10 @@ import { ConfigService } from '@nestjs/config';
import { InjectRepository } from '@nestjs/typeorm';
import { Resume as ResumeSchema } from '@reactive-resume/schema';
import fs from 'fs/promises';
import { isEmpty, pick, sample, set } from 'lodash';
import isEmpty from 'lodash/isEmpty';
import pick from 'lodash/pick';
import sample from 'lodash/sample';
import set from 'lodash/set';
import { nanoid } from 'nanoid';
import { extname } from 'path';
import { Repository } from 'typeorm';