-
-
Notifications
You must be signed in to change notification settings - Fork 12
fix: reading mapbox styles #462
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
Conversation
marcjansen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only nit-picks, thanks
test.cjs
Outdated
|
|
||
| console.log(''); | ||
| console.log(''); | ||
| console.log(''); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks strange, is it needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This necessary so that we can distinguish the final status of the tests from the status of the last testcase. I just replaced it with a few \n.
src/index.ts
Outdated
| : await promises.readFile(sourceFile, 'utf-8'); | ||
|
|
||
| // If no sourceParser is set, just parse it as JSON - it should already be in geostyler format. | ||
| // LyrxParser expects a JSON object as input, so we need to parse it as an extra step. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment above the if should be updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
KaiVolland
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove the logs as suggested by @marcjansen
|
🎉 This PR is included in version 5.0.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This fixes reading mapbox styles. We have to parse the mapbox style object first, before passing it to the parser.
solves #461