Skip to content

Bug encoding mixed-format arrays #202

@bradvogel

Description

@bradvogel

In the example below, why aren't b:1 and d:23 written to the output?

$ npm ls @toon-format/toon
@toon-format/[email protected] /private/tmp/toon
└── @toon-format/[email protected]
$ node
Welcome to Node.js v22.21.1.
Type ".help" for more information.
> const { encode } = require('@toon-format/toon')
> console.log(encode(['test', { a: 1, b: { c: 2 } }, [{ b: 1 }, { d: 23 }]]))
[3]:
  - test
  - a: 1
    b:
      c: 2
>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions