Skip to content

Commit

Permalink
Merge pull request #54 from ipfs/fix/undef-as-null
Browse files Browse the repository at this point in the history
cbor: decode undefined as null
  • Loading branch information
Stebalien committed Dec 3, 2018
2 parents 0be8b03 + c306514 commit cb3f4a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion encoding/unmarshaller.go
Expand Up @@ -26,7 +26,7 @@ type Unmarshaller struct {
// NewUnmarshallerAtlased creates a new reusable unmarshaller.
func NewUnmarshallerAtlased(atl atlas.Atlas) *Unmarshaller {
m := new(Unmarshaller)
m.unmarshal = cbor.NewUnmarshallerAtlased(&m.reader, atl)
m.unmarshal = cbor.NewUnmarshallerAtlased(cbor.DecodeOptions{CoerceUndefToNull: true}, &m.reader, atl)
return m
}

Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -39,9 +39,9 @@
},
{
"author": "why",
"hash": "QmfWqohMtbivn5NRJvtrLzCW3EU4QmoLvVNtmvo9vbdtVA",
"hash": "QmNScbpMAm3r2D25kmfQ43JCbQ8QCtai4V4DNz5ebuXUuZ",
"name": "refmt",
"version": "1.1.2"
"version": "1.1.3"
}
],
"gxVersion": "0.10.0",
Expand Down

0 comments on commit cb3f4a5

Please sign in to comment.