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

Fix issue of referencing process object on browser #778

Merged
merged 1 commit into from
Apr 17, 2024
Merged

Conversation

blurfx
Copy link
Member

@blurfx blurfx commented Apr 17, 2024

What this PR does / why we need it?

This PR do type-check first to avoid referencing the process object to prevents type issues when using the yorkie-js-sdk in a web browser via a CDN, etc.

Any background context you want to provide?

What are the relevant tickets?

Fixes #768

Checklist

  • Added relevant tests or not required
  • Didn't break anything

Copy link

codecov bot commented Apr 17, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 81.92%. Comparing base (d02a340) to head (dcd3a6a).

Files Patch % Lines
src/devtools/index.ts 50.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #778      +/-   ##
==========================================
+ Coverage   81.87%   81.92%   +0.05%     
==========================================
  Files          59       59              
  Lines        4337     4338       +1     
  Branches      851      852       +1     
==========================================
+ Hits         3551     3554       +3     
+ Misses        533      532       -1     
+ Partials      253      252       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hackerwins hackerwins self-requested a review April 17, 2024 16:54
Copy link
Member

@hackerwins hackerwins left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution.

@hackerwins hackerwins merged commit e3ebf06 into main Apr 17, 2024
2 checks passed
@hackerwins hackerwins deleted the fix/768 branch April 17, 2024 16:55
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.

process is not defined error occurring when using the CDN source
2 participants