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: remove dependency on global types #327

Merged

Conversation

TimoGlastra
Copy link
Contributor

We hadn't restricted the types we could used in the tsconfig, meaning we were using both NodeJS globals and DOM globals.

I've restricted the usage of both. This means some @ts-ignore for now, but that will be fixed when #322 is merged.

@TimoGlastra TimoGlastra requested a review from a team as a code owner June 17, 2021 10:44
@codecov-commenter
Copy link

codecov-commenter commented Jun 17, 2021

Codecov Report

Merging #327 (b0a97f2) into main (d083029) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #327   +/-   ##
=======================================
  Coverage   87.99%   87.99%           
=======================================
  Files         226      226           
  Lines        4223     4223           
  Branches      520      520           
=======================================
  Hits         3716     3716           
  Misses        507      507           
Impacted Files Coverage Δ
src/types.ts 100.00% <ø> (ø)
src/utils/environment.ts 75.00% <ø> (ø)
src/utils/fetch.ts 47.05% <ø> (ø)
src/utils/ws.ts 62.50% <ø> (ø)
src/agent/EnvelopeService.ts 100.00% <100.00%> (ø)
src/agent/MessageReceiver.ts 89.23% <100.00%> (ø)
src/modules/routing/messages/ForwardMessage.ts 100.00% <100.00%> (ø)
src/utils/buffer.ts 100.00% <100.00%> (ø)
src/wallet/IndyWallet.ts 74.82% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d083029...b0a97f2. Read the comment docs.

@TimoGlastra
Copy link
Contributor Author

TimoGlastra commented Jun 17, 2021

dependant on DefinitelyTyped/DefinitelyTyped#53890 -> which is in turn waiting on microsoft/DefinitelyTyped-tools#281

package.json Outdated Show resolved Hide resolved
@TimoGlastra TimoGlastra marked this pull request as draft July 5, 2021 07:55
Signed-off-by: Timo Glastra <timo@animo.id>
Signed-off-by: Timo Glastra <timo@animo.id>
Signed-off-by: Timo Glastra <timo@animo.id>
Signed-off-by: Timo Glastra <timo@animo.id>
Signed-off-by: Timo Glastra <timo@animo.id>
Signed-off-by: Timo Glastra <timo@animo.id>
Signed-off-by: Timo Glastra <timo@animo.id>
Signed-off-by: Timo Glastra <timo@animo.id>
Signed-off-by: Timo Glastra <timo@animo.id>
Signed-off-by: Timo Glastra <timo@animo.id>
Signed-off-by: Timo Glastra <timo@animo.id>
Signed-off-by: Timo Glastra <timo@animo.id>
Signed-off-by: Timo Glastra <timo@animo.id>
Signed-off-by: Timo Glastra <timo@animo.id>
This reverts commit d0cab71.

We should always import the buffer package.

Signed-off-by: Timo Glastra <timo@animo.id>
Signed-off-by: Timo Glastra <timo@animo.id>
@TimoGlastra TimoGlastra marked this pull request as ready for review July 12, 2021 00:13
@TimoGlastra TimoGlastra merged commit fb28935 into openwallet-foundation:main Jul 12, 2021
@TimoGlastra TimoGlastra deleted the fix/remove-jsonwebkey branch July 12, 2021 07:24
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.

3 participants