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

Is applyPatches() exposed in the API? #73

Closed
davidparsson opened this issue Sep 8, 2015 · 2 comments
Closed

Is applyPatches() exposed in the API? #73

davidparsson opened this issue Sep 8, 2015 · 2 comments

Comments

@davidparsson
Copy link

I'm trying to use JsDiff.applyPatches() on v2.1.0 of your npm package, but i get the error

TypeError: Object #<Object> has no method 'applyPatches'
    // ...

A quick look at index.js indicates that only applyPatch is exposed, as I don't see applyPatches there:

import {applyPatch} from './patch/apply';
@kpdecker
Copy link
Owner

kpdecker commented Sep 9, 2015

Thanks for the report. This is an omission. I'll get a release out with this. In the mean time you might be able to link to this using something like require('diff/lib/patches').applyPatches depending on module loader you are using.

@kpdecker
Copy link
Owner

kpdecker commented Sep 9, 2015

Released in 2.1.1

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

No branches or pull requests

2 participants