@zauru-sdk/common 1.0.74 → 1.0.75
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 +8 -0
- package/dist/cjs/common.js +3 -0
- package/dist/esm/common.js +3 -0
- package/package.json +2 -2
- package/src/common.ts +2 -0
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.75](https://github.com/intuitiva/zauru-typescript-sdk/compare/v1.0.74...v1.0.75) (2024-06-19)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @zauru-sdk/common
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [1.0.74](https://github.com/intuitiva/zauru-typescript-sdk/compare/v1.0.73...v1.0.74) (2024-06-19)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @zauru-sdk/common
|
package/dist/cjs/common.js
CHANGED
|
@@ -535,6 +535,9 @@ const parsedObject = (obj) => {
|
|
|
535
535
|
if (typeof obj === "bigint") {
|
|
536
536
|
return obj.toString();
|
|
537
537
|
}
|
|
538
|
+
else if (obj instanceof Date) {
|
|
539
|
+
return obj.toISOString();
|
|
540
|
+
}
|
|
538
541
|
else if (Array.isArray(obj)) {
|
|
539
542
|
return obj.map(exports.parsedObject);
|
|
540
543
|
}
|
package/dist/esm/common.js
CHANGED
|
@@ -535,6 +535,9 @@ const parsedObject = (obj) => {
|
|
|
535
535
|
if (typeof obj === "bigint") {
|
|
536
536
|
return obj.toString();
|
|
537
537
|
}
|
|
538
|
+
else if (obj instanceof Date) {
|
|
539
|
+
return obj.toISOString();
|
|
540
|
+
}
|
|
538
541
|
else if (Array.isArray(obj)) {
|
|
539
542
|
return obj.map(exports.parsedObject);
|
|
540
543
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/common",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.75",
|
|
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": "
|
|
28
|
+
"gitHead": "d342a08caf1ba09c8c1a9a5a8ebdcac7b3c984c1"
|
|
29
29
|
}
|
package/src/common.ts
CHANGED
|
@@ -618,6 +618,8 @@ export function createPostgresUrl(
|
|
|
618
618
|
export const parsedObject = (obj: any): any => {
|
|
619
619
|
if (typeof obj === "bigint") {
|
|
620
620
|
return obj.toString();
|
|
621
|
+
} else if (obj instanceof Date) {
|
|
622
|
+
return obj.toISOString();
|
|
621
623
|
} else if (Array.isArray(obj)) {
|
|
622
624
|
return obj.map(parsedObject);
|
|
623
625
|
} else if (obj !== null && typeof obj === "object") {
|