@platformatic/itc 2.33.0 → 2.35.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/lib/itc.js +2 -3
  2. package/package.json +1 -1
package/lib/itc.js CHANGED
@@ -88,9 +88,8 @@ function sanitize (data) {
88
88
  let sanitized
89
89
 
90
90
  if (Buffer.isBuffer(data)) {
91
- return {
92
- data: Array.from(data.values())
93
- }
91
+ // This will convert as Uint8Array
92
+ return data
94
93
  } else if (Array.isArray(data)) {
95
94
  sanitized = []
96
95
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/itc",
3
- "version": "2.33.0",
3
+ "version": "2.35.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "author": "Platformatic Inc. <oss@platformatic.dev> (https://platformatic.dev)",