File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " ipos" ,
3- "version" : " 0.2.2 " ,
3+ "version" : " 0.2.3 " ,
44 "description" : " Share objects across different Node.js processes. Write and read on both sides." ,
55 "license" : " MIT" ,
66 "main" : " lib/main.js" ,
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ export function serialize(value: any): any | void {
3232 return value
3333 } else if ( Array . isArray ( value ) ) {
3434 return value . map ( v => serialize ( v ) )
35- } else if ( value . constructor === { } . constructor || value . valueOf ( ) ?. constructor === { } . constructor ) {
35+ } else if ( value . constructor === { } . constructor || value . __original ?. constructor === { } . constructor ) {
3636 return Object . fromEntries (
3737 Array . from ( Object . entries ( value ) )
3838 . map ( ( [ key , value ] ) => [ key , serialize ( value ) ] )
You can’t perform that action at this time.
0 commit comments