Skip to content

Commit

Permalink
Fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemcordoba committed Jan 3, 2024
1 parent 91487c2 commit 49b7d47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@holochain-open-dev/utils",
"version": "0.16.3",
"version": "0.16.4",
"description": "Common utilities to build Holochain web applications",
"author": "[email protected]",
"main": "dist/index.js",
Expand Down
3 changes: 2 additions & 1 deletion packages/utils/src/clean-node-decoding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
*/
export function cleanNodeDecoding(object: any): any {
return deepMap(object, (value) => {
if (Buffer.isBuffer(value)) return new Uint8Array(value);
if (typeof Buffer !== "undefined" && Buffer.isBuffer(value))
return new Uint8Array(value);
if (value === null) return undefined;
return value;
});
Expand Down

0 comments on commit 49b7d47

Please sign in to comment.