1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/app/scripts/lib
Mark Stacey e8b33fb7c8
Restore state snapshot for Sentry errors (#9028)
The state snapshot that was attached to Sentry errors was removed
recently in #8794 because it had become too large. The snapshot has
now been restored and reduced in size.

A utility function has been written to reduce the state object to just
the requested properties. This seemed safer than filtering out state
that is known to be large or to contain identifiable information.
This is not a great solution, as now knowledge about the state shape
resides in this large constant, but it will suffice for now. I am
hopeful that we can decorate our controllers with this metadata in the
future instead, as part of the upcoming background controller refactor.

A separate `getSentryState` global function has been added to get the
reduced state, so that the old `getCleanAppState` function that we used
to use could remain unchanged. It's still useful to get that full state
copy while debugging, and in e2e tests.
2020-07-17 12:09:38 -03:00
..
ens-ipfs Use string network and chain IDs (#8628) 2020-07-08 14:05:09 -07:00
migrator Move default export declaration to Migrator class (#8407) 2020-04-26 00:02:41 -02:30
account-tracker.js Clear AccountTracker accounts and CachedBalances on createNewVaultAndRestore (#9023) 2020-07-16 19:09:38 -07:00
auto-reload.js Update inpage provider, deprecation warnings (#8854) 2020-06-24 15:21:57 -07:00
backend-metametrics.js Implement asset page (#8696) 2020-06-01 14:54:32 -03:00
buy-eth-url.js Move export defaults statements alongside their objects (#8525) 2020-05-05 19:49:38 -02:30
cleanErrorStack.js Move export defaults statements alongside their objects (#8525) 2020-05-05 19:49:38 -02:30
ComposableObservableStore.js Move export defaults statements alongside their objects (#8525) 2020-05-05 19:49:38 -02:30
createLoggerMiddleware.js Move export defaults statements alongside their objects (#8525) 2020-05-05 19:49:38 -02:30
createOnboardingMiddleware.js Move export defaults statements alongside their objects (#8525) 2020-05-05 19:49:38 -02:30
createOriginMiddleware.js Move export defaults statements alongside their objects (#8525) 2020-05-05 19:49:38 -02:30
createStreamSink.js Move export defaults statements alongside their objects (#8525) 2020-05-05 19:49:38 -02:30
createTabIdMiddleware.js Move export defaults statements alongside their objects (#8525) 2020-05-05 19:49:38 -02:30
decrypt-message-manager.js Return after 'reject' in Promise constructor (#8857) 2020-06-24 16:38:53 -03:00
encryption-public-key-manager.js Return after 'reject' in Promise constructor (#8857) 2020-06-24 16:38:53 -03:00
enums.js Add MESSAGE_TYPE enum (#8743) 2020-06-04 16:22:45 -03:00
extractEthjsErrorMessage.js Move export defaults statements alongside their objects (#8525) 2020-05-05 19:49:38 -02:30
fetch-with-timeout.js Prevent accidental use of globals (#8340) 2020-04-15 14:23:27 -03:00
freezeGlobals.js Consistent jsdoc syntax (#7755) 2020-01-13 14:36:36 -04:00
get-first-preferred-lang-code.js Use eslint@6.8.0 (#8978) 2020-07-14 12:50:41 -02:30
getObjStructure.js Move export defaults statements alongside their objects (#8525) 2020-05-05 19:49:38 -02:30
local-store.js Consistent jsdoc syntax (#7755) 2020-01-13 14:36:36 -04:00
message-manager.js Add MESSAGE_TYPE enum (#8743) 2020-06-04 16:22:45 -03:00
network-store.js Move export defaults statements alongside their objects (#8525) 2020-05-05 19:49:38 -02:30
nodeify.js Consistent jsdoc syntax (#7755) 2020-01-13 14:36:36 -04:00
notification-manager.js Remove unused NotificationManager#closePopup (#8530) 2020-05-05 21:02:29 -02:30
personal-message-manager.js Return after 'reject' in Promise constructor (#8857) 2020-06-24 16:38:53 -03:00
random-id.js Move export defaults statements alongside their objects (#8525) 2020-05-05 19:49:38 -02:30
seed-phrase-verifier.js Consistent jsdoc syntax (#7755) 2020-01-13 14:36:36 -04:00
select-chain-id.js Cleanup network enums (#8627) 2020-05-20 08:57:45 -07:00
setupFetchDebugging.js Move export defaults statements alongside their objects (#8525) 2020-05-05 19:49:38 -02:30
setupSentry.js Restore state snapshot for Sentry errors (#9028) 2020-07-17 12:09:38 -03:00
stream-utils.js Use eslint@6.8.0 (#8978) 2020-07-14 12:50:41 -02:30
typed-message-manager.js Use eslint@6.8.0 (#8978) 2020-07-14 12:50:41 -02:30
util.js Delete unused util functions (#8622) 2020-05-20 10:36:41 -02:30