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

Use unique placeholders for each match #83

Merged
merged 2 commits into from
May 26, 2020

Conversation

vseventer
Copy link
Contributor

@vseventer vseventer commented Apr 27, 2020

Fixes #54 #57 #80 by generating a new placeholder for each dependency, rather than using a single one for the entire module.

The undefined issue was caused by the module cache returning the previously generated placeholder, but not adding to newDependencies. Hence a mismatch between number of newDependencies and extractedDependencyContent appeared, causing undefined to be returned once we ran out of newDependencies. By using unique placeholders, this is no longer an issue.

@vseventer
Copy link
Contributor Author

@jhnns Any chance of getting this merged?

@jannikkeye jannikkeye merged commit 5f1b1df into peerigon:master May 26, 2020
@jannikkeye
Copy link
Contributor

jannikkeye commented May 26, 2020

Sorry for the late response. I'm going to go ahead an merge this as I didn't see any issues and it seems to be a requested thing.

Thank you for the contribution :)

Released in 3.2.0

github-actions bot pushed a commit that referenced this pull request May 26, 2020
# [5.1.0](v5.0.1...v5.1.0) (2020-05-26)

### Features

* unique placeholders for each match ([#83](#83)) ([5e61f0c](5e61f0c))
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.

Produced URL is "undefined" rather than expected URL.
3 participants