Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@venikx
Copy link
Contributor

@venikx venikx commented Oct 31, 2023

Exposes switches and parameters of the src-block, so we can reference these later in the pipeline.

Reason?
I depend on :exports none to prep some data behind the scenes, that I don't want to expose to the reader.

@changeset-bot
Copy link

changeset-bot bot commented Oct 31, 2023

🦋 Changeset detected

Latest commit: 041eb97

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
uniorg-parse Minor
@uniorgjs/orgx Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codecov
Copy link

codecov bot commented Oct 31, 2023

Codecov Report

Merging #91 (041eb97) into master (c47bbd1) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master      #91   +/-   ##
=======================================
  Coverage   96.31%   96.32%           
=======================================
  Files          15       15           
  Lines        1820     1822    +2     
  Branches      599      601    +2     
=======================================
+ Hits         1753     1755    +2     
  Misses         66       66           
  Partials        1        1           
Files Coverage Δ
packages/uniorg-parse/src/parser.ts 95.64% <100.00%> (+<0.01%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

affiliated,
language,
switches: switches?.trim(),
parameters: parameters !== '' ? parameters?.trim() : undefined,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure if this is the API that you want, but otherwise this impacts all the other tests, as parameters is an empty string when no parameters are found.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe unified requires all data to be json-serializable, which means undefined values are not allowed. It's better to return null even if it means updating old tests

@rasendubi
Copy link
Owner

Thanks for your pull request!

@github-actions github-actions bot mentioned this pull request Nov 2, 2023
@rasendubi
Copy link
Owner

This is now released as [email protected]

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.

2 participants