Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PATCH] add commonjs require support for enforce #62

Merged
merged 2 commits into from
Jan 29, 2018

Conversation

ealush
Copy link
Contributor

@ealush ealush commented Jan 28, 2018

Change details

#58 introduced an issue in which using commonjs requires had to require('passable').default due to multiple exports in the same module.

By assigning enforce directly to passable (passable.enforce), we're maintaining both

const passable = require('passable');
const enforce = passable.enforce;

and

import passable, {enforce} from 'passable';

@ealush ealush merged commit c75d9c0 into next Jan 29, 2018
@ealush ealush deleted the add-enforce-backward-compatibility branch May 10, 2019 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant