Skip to content

Commit

Permalink
fix: moves isJSON utility to @gauzy/utils package
Browse files Browse the repository at this point in the history
Moves the `isJSON` utility function from `desktop-lib` to the shared `@gauzy/utils` package to avoid code duplication and promote reusability.

Removes the now redundant `util.ts` file from `desktop-lib`.
  • Loading branch information
adkif committed Jan 17, 2025
1 parent ba286ee commit 07303b5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { AppError } from '../../error-handler';
import { IUserService } from '../../interfaces';
import { isJSON } from '../../utilities/util';
import { isJSON } from '@gauzy/utils';
import { UserDAO } from '../dao';
import { UserTO } from '../dto';
import { User } from '../models';
Expand Down
1 change: 1 addition & 0 deletions packages/utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ export * from './lib/boolean-mapper';
export * from './lib/parse-to-boolean';
export * from './lib/trim-if-not-empty';
export * from './lib/uc-first';
export * from './lib/is-json';
File renamed without changes.

0 comments on commit 07303b5

Please sign in to comment.