@zauru-sdk/common 1.0.99 → 1.0.105

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.0.105](https://github.com/intuitiva/zauru-typescript-sdk/compare/v1.0.104...v1.0.105) (2024-09-18)
7
+
8
+ **Note:** Version bump only for package @zauru-sdk/common
9
+
10
+
11
+
12
+
13
+
6
14
  ## [1.0.99](https://github.com/intuitiva/zauru-typescript-sdk/compare/v1.0.98...v1.0.99) (2024-09-13)
7
15
 
8
16
  **Note:** Version bump only for package @zauru-sdk/common
@@ -381,7 +381,7 @@ const formatTimeToTimePicker = (timeString) => {
381
381
  exports.formatTimeToTimePicker = formatTimeToTimePicker;
382
382
  const toFixedIfNeeded = (value) => {
383
383
  if (!value) {
384
- return "0";
384
+ return value;
385
385
  }
386
386
  if (Number.isInteger(value)) {
387
387
  return value.toString().replace(".00", "");
package/dist/common.d.ts CHANGED
@@ -100,7 +100,7 @@ export declare function formatDateToUTC(dateString: string): string;
100
100
  export declare const getFormattedDate: (dateString?: string, withHours?: boolean) => string;
101
101
  export declare const formatDateToDatePicker: (date: Date) => string;
102
102
  export declare const formatTimeToTimePicker: (timeString: string) => Date;
103
- export declare const toFixedIfNeeded: (value: number) => string;
103
+ export declare const toFixedIfNeeded: (value: number) => string | number;
104
104
  export declare const isNumeric: (value: any) => boolean;
105
105
  export declare function incrementString(str: string): string;
106
106
  export declare function getParsedIdFromString(inputString: string): number;
@@ -381,7 +381,7 @@ const formatTimeToTimePicker = (timeString) => {
381
381
  exports.formatTimeToTimePicker = formatTimeToTimePicker;
382
382
  const toFixedIfNeeded = (value) => {
383
383
  if (!value) {
384
- return "0";
384
+ return value;
385
385
  }
386
386
  if (Number.isInteger(value)) {
387
387
  return value.toString().replace(".00", "");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/common",
3
- "version": "1.0.99",
3
+ "version": "1.0.105",
4
4
  "description": "Funciones de uso común en el desarrollo de webapps en Zauru",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -25,5 +25,5 @@
25
25
  "moment": "^2.30.1",
26
26
  "moment-timezone": "^0.5.45"
27
27
  },
28
- "gitHead": "ad07b6fa1ffed108a45c2ae3e043e2168664dfb5"
28
+ "gitHead": "57fb17e6d485c1d661432a1517fe8c4e8d354e78"
29
29
  }
package/src/common.ts CHANGED
@@ -429,7 +429,7 @@ export const formatTimeToTimePicker = (timeString: string) => {
429
429
 
430
430
  export const toFixedIfNeeded = (value: number) => {
431
431
  if (!value) {
432
- return "0";
432
+ return value;
433
433
  }
434
434
 
435
435
  if (Number.isInteger(value)) {