Skip to content

callbag-flatten exports default #21

@jorbuedo

Description

@jorbuedo

Following the build it yourself philosophy of this library, I made my own lib of callbags.
Just a package.json with the dependencies I need and an index.js exporting them like the one in this project.

However I noticed callbag-flatten failed to work, because the new version doesn't export the function like the rest of the callbags. Now it needs to be
flatten: require('callbag-flatten').default,
instead of the previous
flatten: require('callbag-flatten')

I wonder, shouldn't all calbags export the same way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions