-
Notifications
You must be signed in to change notification settings - Fork 570
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR adds notifications from the network access endowment that are sent during fetch. Calling `fetch` will result in `OutboundRequest` upfront and `OutboundResponse` once the promise resolves. Furthermore, once per response object, triggering an async action, e.g. `json()` will also trigger `OutboundRequest` upfront and `OutboundResponse` once the promise resolves. The notifications pause the request processing timer in the same way that requests via `snap.request` and `ethereum.request` pause the timer. This PR also refactors the endowment creation slightly to make it take an options bag and always require an endowment array. Closes #1755
- Loading branch information
1 parent
27fe061
commit 8d3710b
Showing
10 changed files
with
404 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"branches": 80.71, | ||
"functions": 92.02, | ||
"lines": 91.66, | ||
"statements": 91.36 | ||
"branches": 80.28, | ||
"functions": 90.41, | ||
"lines": 91.06, | ||
"statements": 90.65 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.