@zauru-sdk/common 1.0.99 → 1.0.109
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 +16 -0
- package/dist/cjs/common.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/package.json +3 -3
- package/src/common.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
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.109](https://github.com/intuitiva/zauru-typescript-sdk/compare/v1.0.108...v1.0.109) (2024-09-18)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @zauru-sdk/common
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [1.0.105](https://github.com/intuitiva/zauru-typescript-sdk/compare/v1.0.104...v1.0.105) (2024-09-18)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @zauru-sdk/common
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [1.0.99](https://github.com/intuitiva/zauru-typescript-sdk/compare/v1.0.98...v1.0.99) (2024-09-13)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @zauru-sdk/common
|
package/dist/cjs/common.js
CHANGED
|
@@ -381,7 +381,7 @@ const formatTimeToTimePicker = (timeString) => {
|
|
|
381
381
|
exports.formatTimeToTimePicker = formatTimeToTimePicker;
|
|
382
382
|
const toFixedIfNeeded = (value) => {
|
|
383
383
|
if (!value) {
|
|
384
|
-
return
|
|
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;
|
package/dist/esm/common.js
CHANGED
|
@@ -381,7 +381,7 @@ const formatTimeToTimePicker = (timeString) => {
|
|
|
381
381
|
exports.formatTimeToTimePicker = formatTimeToTimePicker;
|
|
382
382
|
const toFixedIfNeeded = (value) => {
|
|
383
383
|
if (!value) {
|
|
384
|
-
return
|
|
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.
|
|
3
|
+
"version": "1.0.109",
|
|
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",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@remix-run/node": "^2.8.1",
|
|
24
|
-
"@zauru-sdk/types": "^1.0.
|
|
24
|
+
"@zauru-sdk/types": "^1.0.109",
|
|
25
25
|
"moment": "^2.30.1",
|
|
26
26
|
"moment-timezone": "^0.5.45"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "4ab7975fd17cda15da080998aed10f26ec119c9e"
|
|
29
29
|
}
|