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: unable to resolve nodejs document loader in react native environment #1003

Merged

Conversation

karimStekelenburg
Copy link
Contributor

@karimStekelenburg karimStekelenburg commented Sep 1, 2022

Fixes #993 by conditionally importing the XHR and NodeJS document loaders, based on the runtime environment.

@karimStekelenburg karimStekelenburg changed the title 993 unable to resolved https module in react native fix: Unable to resolve NodeJS document loader in react native Sep 1, 2022
@karimStekelenburg karimStekelenburg changed the title fix: Unable to resolve NodeJS document loader in react native fix: unable to resolve nodejs document loader in react native runtime environment Sep 1, 2022
@codecov-commenter
Copy link

codecov-commenter commented Sep 1, 2022

Codecov Report

Merging #1003 (011a9fc) into 0.3.0-pre (dba46c3) will increase coverage by 0.01%.
The diff coverage is 42.85%.

@@              Coverage Diff              @@
##           0.3.0-pre    #1003      +/-   ##
=============================================
+ Coverage      87.82%   87.84%   +0.01%     
=============================================
  Files            615      615              
  Lines          14772    14763       -9     
  Branches        2500     2495       -5     
=============================================
- Hits           12974    12969       -5     
+ Misses          1700     1696       -4     
  Partials          98       98              
Impacted Files Coverage Δ
packages/core/src/modules/vc/libraries/jsonld.ts 100.00% <ø> (ø)
...es/core/src/modules/vc/libraries/documentLoader.ts 33.33% <33.33%> (ø)
...ckages/core/src/modules/vc/W3cCredentialService.ts 83.94% <50.00%> (+2.38%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@TimoGlastra TimoGlastra marked this pull request as ready for review September 8, 2022 14:57
@TimoGlastra TimoGlastra requested a review from a team as a code owner September 8, 2022 14:57
Signed-off-by: Karim Stekelenburg <karim@animo.id>
Signed-off-by: Karim Stekelenburg <karim@animo.id>
Signed-off-by: Karim Stekelenburg <karim@animo.id>
Signed-off-by: Karim Stekelenburg <karim@animo.id>
@karimStekelenburg karimStekelenburg force-pushed the 993-unable-to-resolved-https-module-in-react-native branch from bfd2661 to 011a9fc Compare September 9, 2022 14:26
@karimStekelenburg karimStekelenburg enabled auto-merge (squash) September 9, 2022 14:30
@TimoGlastra TimoGlastra changed the title fix: unable to resolve nodejs document loader in react native runtime environment fix: unable to resolve nodejs document loader in react native environment Sep 9, 2022
@TimoGlastra TimoGlastra merged commit 5cdcfa2 into 0.3.0-pre Sep 9, 2022
@TimoGlastra TimoGlastra deleted the 993-unable-to-resolved-https-module-in-react-native branch September 9, 2022 14:55
genaris pushed a commit to 2060-io/aries-framework-javascript that referenced this pull request Sep 16, 2022
…ment (openwallet-foundation#1003)

Signed-off-by: Karim Stekelenburg <karim@animo.id>
Signed-off-by: Ariel Gentile <gentilester@gmail.com>
Artemkaaas added a commit to sicpa-dlab/aries-framework-javascript that referenced this pull request Sep 29, 2022
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.

4 participants