@develit-io/backend-sdk 12.3.0 → 12.3.1

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.
Files changed (2) hide show
  1. package/dist/index.mjs +1 -0
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -734,6 +734,7 @@ function nullToOptional(obj) {
734
734
  return Object.fromEntries(
735
735
  Object.entries(obj).map(([k, v]) => {
736
736
  if (v === null) return [k, void 0];
737
+ if (typeof v === "string") return [k, v.trim() === "" ? void 0 : v];
737
738
  if (Array.isArray(v))
738
739
  return [
739
740
  k,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@develit-io/backend-sdk",
3
- "version": "12.3.0",
3
+ "version": "12.3.1",
4
4
  "description": "Develit Backend SDK",
5
5
  "author": "Develit.io",
6
6
  "license": "ISC",