@platformatic/sql-json-schema-mapper 3.16.0 → 3.17.0

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/index.js +2 -0
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -206,6 +206,8 @@ function renderProperties (
206
206
  .map(v => `"${v}"`)
207
207
  .join(' | ')
208
208
  )
209
+ } else if (fieldDefinitions[name]?.sqlType === 'bytea') {
210
+ writer.write('Buffer')
209
211
  } else {
210
212
  writer.write(JSONSchemaToTsType(type))
211
213
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/sql-json-schema-mapper",
3
- "version": "3.16.0",
3
+ "version": "3.17.0",
4
4
  "description": "Map SQL entity to JSON schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -22,7 +22,7 @@
22
22
  "neostandard": "^0.12.0",
23
23
  "typescript": "^5.5.4",
24
24
  "why-is-node-running": "^2.2.2",
25
- "@platformatic/sql-mapper": "3.16.0"
25
+ "@platformatic/sql-mapper": "3.17.0"
26
26
  },
27
27
  "dependencies": {
28
28
  "code-block-writer": "^13.0.1",