@platformatic/itc 3.0.0-alpha.6 → 3.0.0-alpha.7

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/index.js +1 -1
  2. package/package.json +2 -2
package/lib/index.js CHANGED
@@ -99,7 +99,7 @@ export function sanitize (data, transferList) {
99
99
 
100
100
  let sanitized
101
101
 
102
- if (Buffer.isBuffer(data)) {
102
+ if (Buffer.isBuffer(data) || data instanceof Uint8Array) {
103
103
  // This will convert as Uint8Array
104
104
  return data
105
105
  } else if (Array.isArray(data)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/itc",
3
- "version": "3.0.0-alpha.6",
3
+ "version": "3.0.0-alpha.7",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",
@@ -20,7 +20,7 @@
20
20
  "cleaner-spec-reporter": "^0.5.0",
21
21
  "eslint": "9",
22
22
  "neostandard": "^0.12.0",
23
- "tsd": "^0.32.0",
23
+ "tsd": "^0.33.0",
24
24
  "typescript": "^5.5.4"
25
25
  },
26
26
  "dependencies": {