From 03b67841c1f668b2a7675e073d8a88ae71e256d0 Mon Sep 17 00:00:00 2001 From: Dikshit Moradiya <106728438+ct-dixit@users.noreply.github.com> Date: Thu, 9 Jan 2025 13:01:36 +0530 Subject: [PATCH] fix build issue (#22) * fix build issue * fixes lodash issue --- angular/angular.json | 4 ++-- angular/package.json | 2 +- .../app/theme/shared/filter/data-filter.pipe.ts | 2 +- angular/yarn.lock | 14 +++++++++++++- 4 files changed, 17 insertions(+), 5 deletions(-) diff --git a/angular/angular.json b/angular/angular.json index decdedb..fe1ff1b 100644 --- a/angular/angular.json +++ b/angular/angular.json @@ -33,8 +33,8 @@ "budgets": [ { "type": "initial", - "maximumWarning": "1.7mb", - "maximumError": "1.7mb" + "maximumWarning": "2mb", + "maximumError": "2mb" }, { "type": "anyComponentStyle", diff --git a/angular/package.json b/angular/package.json index 4757d37..5f7e141 100644 --- a/angular/package.json +++ b/angular/package.json @@ -31,7 +31,6 @@ "bootstrap": "5.3.3", "hammerjs": "2.0.8", "jquery": "3.7.1", - "lodash": "4.17.21", "lodash-es": "4.17.21", "mousetrap": "1.6.5", "ng-apexcharts": "1.11.0", @@ -54,6 +53,7 @@ "@eslint/js": "^9.17.0", "@types/jasmine": "~5.1.5", "@types/lodash": "4.17.13", + "@types/lodash-es": "^4.17.12", "@types/node": "22.10.2", "@typescript-eslint/eslint-plugin": "8.18.1", "@typescript-eslint/parser": "8.18.1", diff --git a/angular/src/app/theme/shared/filter/data-filter.pipe.ts b/angular/src/app/theme/shared/filter/data-filter.pipe.ts index 8f979dc..be053c7 100644 --- a/angular/src/app/theme/shared/filter/data-filter.pipe.ts +++ b/angular/src/app/theme/shared/filter/data-filter.pipe.ts @@ -2,7 +2,7 @@ import { Pipe, PipeTransform } from '@angular/core'; // project import -import * as _ from 'lodash'; +import * as _ from 'lodash-es'; @Pipe({ name: 'dataFilter' diff --git a/angular/yarn.lock b/angular/yarn.lock index 177ad9b..c7565ed 100644 --- a/angular/yarn.lock +++ b/angular/yarn.lock @@ -2705,6 +2705,18 @@ resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.15.tgz#596a1747233694d50f6ad8a7869fcb6f56cf5841" integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA== +"@types/lodash-es@^4.17.12": + version "4.17.12" + resolved "https://registry.yarnpkg.com/@types/lodash-es/-/lodash-es-4.17.12.tgz#65f6d1e5f80539aa7cfbfc962de5def0cf4f341b" + integrity sha512-0NgftHUcV4v34VhXm8QBSftKVXtbkBG3ViCjs6+eJ5a6y6Mi/jiFGPc1sC7QK+9BFhWrURE3EOggmWaSxL9OzQ== + dependencies: + "@types/lodash" "*" + +"@types/lodash@*": + version "4.17.14" + resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.17.14.tgz#bafc053533f4cdc5fcc9635af46a963c1f3deaff" + integrity sha512-jsxagdikDiDBeIRaPYtArcT8my4tN1og7MtMRquFT3XNA6axxyHDRUemqDz/taRDdOUn0GnGHRCuff4q48sW9A== + "@types/lodash@4.17.13": version "4.17.13" resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.17.13.tgz#786e2d67cfd95e32862143abe7463a7f90c300eb" @@ -5565,7 +5577,7 @@ lodash.merge@^4.6.2: resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== -lodash@4.17.21, lodash@^4.17.21: +lodash@^4.17.21: version "4.17.21" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==