Skip to content

Fix issue of referencing process object on browser#778

Merged
hackerwins merged 1 commit into
mainfrom
fix/768
Apr 17, 2024
Merged

Fix issue of referencing process object on browser#778
hackerwins merged 1 commit into
mainfrom
fix/768

Conversation

@blurfx

@blurfx blurfx commented Apr 17, 2024

Copy link
Copy Markdown
Member

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

@codecov

codecov Bot commented Apr 17, 2024

Copy link
Copy Markdown

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

@hackerwins hackerwins left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for your contribution.

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