@opengis/fastify-table 2.0.58 → 2.0.59

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.
@@ -60,7 +60,7 @@ export default async function dataUpdate({ table, tokenData, referer, id, data,
60
60
  ["string", "number"].includes(typeof data[el])) {
61
61
  Object.assign(data, { [el]: data[el].split(",") });
62
62
  }
63
- return [el, data[el]];
63
+ return [el, data[el] === "" ? null : data[el]]; // ensure '' on number does not throw
64
64
  })
65
65
  .map((el) => typeof el[1] === "object" && types[el[0]]?.includes?.("json") && el[1]
66
66
  ? JSON.stringify(el[1])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengis/fastify-table",
3
- "version": "2.0.58",
3
+ "version": "2.0.59",
4
4
  "type": "module",
5
5
  "description": "core-plugins",
6
6
  "keywords": [