@metamask-previews/notification-services-controller 0.0.0-preview-98d4c2a0 → 0.0.0-preview-23a96ae

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/NotificationServicesController/NotificationServicesController.js +3 -3
  2. package/dist/NotificationServicesController/NotificationServicesController.mjs +2 -2
  3. package/dist/NotificationServicesController/index.js +4 -4
  4. package/dist/NotificationServicesController/index.mjs +3 -3
  5. package/dist/NotificationServicesController/services/onchain-notifications.js +2 -2
  6. package/dist/NotificationServicesController/services/onchain-notifications.mjs +1 -1
  7. package/dist/NotificationServicesPushController/NotificationServicesPushController.js +3 -3
  8. package/dist/NotificationServicesPushController/NotificationServicesPushController.mjs +3 -3
  9. package/dist/NotificationServicesPushController/index.js +5 -5
  10. package/dist/NotificationServicesPushController/index.mjs +4 -4
  11. package/dist/NotificationServicesPushController/services/push/push-web.js +3 -3
  12. package/dist/NotificationServicesPushController/services/push/push-web.mjs +3 -3
  13. package/dist/NotificationServicesPushController/services/services.js +3 -3
  14. package/dist/NotificationServicesPushController/services/services.mjs +3 -3
  15. package/dist/NotificationServicesPushController/utils/get-notification-message.js +3 -3
  16. package/dist/NotificationServicesPushController/utils/get-notification-message.mjs +3 -3
  17. package/dist/NotificationServicesPushController/utils/index.js +3 -3
  18. package/dist/NotificationServicesPushController/utils/index.mjs +3 -3
  19. package/dist/{chunk-DNTK4U5M.js → chunk-53Y2GNFU.js} +1938 -899
  20. package/dist/chunk-53Y2GNFU.js.map +1 -0
  21. package/dist/{chunk-3F4M3OUO.mjs → chunk-6PPEQMF5.mjs} +2 -2
  22. package/dist/{chunk-XNBTOK6G.js → chunk-AXZU6W3P.js} +7 -7
  23. package/dist/{chunk-KTQP5UDT.mjs → chunk-F6TSWKZK.mjs} +1943 -904
  24. package/dist/chunk-F6TSWKZK.mjs.map +1 -0
  25. package/dist/chunk-G2ROCNJN.mjs +965 -0
  26. package/dist/chunk-G2ROCNJN.mjs.map +1 -0
  27. package/dist/{chunk-6B5FOWRH.js → chunk-G5RGQ3AG.js} +3 -3
  28. package/dist/{chunk-5OYPOYXZ.mjs → chunk-KKWCKF5W.mjs} +2 -2
  29. package/dist/chunk-ZDG7PIUJ.js +965 -0
  30. package/dist/chunk-ZDG7PIUJ.js.map +1 -0
  31. package/dist/index.js +5 -5
  32. package/dist/index.mjs +4 -4
  33. package/dist/tsconfig.build.tsbuildinfo +1 -1
  34. package/package.json +2 -4
  35. package/dist/chunk-DNTK4U5M.js.map +0 -1
  36. package/dist/chunk-KTQP5UDT.mjs.map +0 -1
  37. package/dist/chunk-UIRZIKC3.mjs +0 -187
  38. package/dist/chunk-UIRZIKC3.mjs.map +0 -1
  39. package/dist/chunk-VOZ7Y2OO.js +0 -187
  40. package/dist/chunk-VOZ7Y2OO.js.map +0 -1
  41. /package/dist/{chunk-3F4M3OUO.mjs.map → chunk-6PPEQMF5.mjs.map} +0 -0
  42. /package/dist/{chunk-XNBTOK6G.js.map → chunk-AXZU6W3P.js.map} +0 -0
  43. /package/dist/{chunk-6B5FOWRH.js.map → chunk-G5RGQ3AG.js.map} +0 -0
  44. /package/dist/{chunk-5OYPOYXZ.mjs.map → chunk-KKWCKF5W.mjs.map} +0 -0
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-IKWNHNJQ.mjs";
13
13
  import {
14
14
  require_nock
15
- } from "./chunk-KTQP5UDT.mjs";
15
+ } from "./chunk-F6TSWKZK.mjs";
16
16
  import {
17
17
  __export,
18
18
  __toESM
@@ -116,4 +116,4 @@ export {
116
116
  fixtures_exports,
117
117
  NotificationServicesPushController_exports
118
118
  };
119
- //# sourceMappingURL=chunk-3F4M3OUO.mjs.map
119
+ //# sourceMappingURL=chunk-6PPEQMF5.mjs.map
@@ -9,7 +9,7 @@ var _chunkZMNXLHACjs = require('./chunk-ZMNXLHAC.js');
9
9
 
10
10
 
11
11
 
12
- var _chunkVOZ7Y2OOjs = require('./chunk-VOZ7Y2OO.js');
12
+ var _chunk53Y2GNFUjs = require('./chunk-53Y2GNFU.js');
13
13
 
14
14
 
15
15
 
@@ -390,7 +390,7 @@ var NotificationServicesController = class extends _basecontroller.BaseControlle
390
390
  await _chunkV46WVGWNjs.__privateGet.call(void 0, this, _storage).setNotificationStorage(JSON.stringify(userStorage));
391
391
  }
392
392
  const triggers = _chunkPIZCE3JDjs.traverseUserStorageTriggers.call(void 0, userStorage);
393
- await _chunkVOZ7Y2OOjs.createOnChainTriggers.call(void 0,
393
+ await _chunk53Y2GNFUjs.createOnChainTriggers.call(void 0,
394
394
  userStorage,
395
395
  storageKey,
396
396
  bearerToken,
@@ -484,7 +484,7 @@ var NotificationServicesController = class extends _basecontroller.BaseControlle
484
484
  if (UUIDs.length === 0) {
485
485
  return userStorage;
486
486
  }
487
- await _chunkVOZ7Y2OOjs.deleteOnChainTriggers.call(void 0,
487
+ await _chunk53Y2GNFUjs.deleteOnChainTriggers.call(void 0,
488
488
  userStorage,
489
489
  storageKey,
490
490
  bearerToken,
@@ -540,7 +540,7 @@ var NotificationServicesController = class extends _basecontroller.BaseControlle
540
540
  return void 0;
541
541
  }
542
542
  });
543
- await _chunkVOZ7Y2OOjs.createOnChainTriggers.call(void 0,
543
+ await _chunk53Y2GNFUjs.createOnChainTriggers.call(void 0,
544
544
  userStorage,
545
545
  storageKey,
546
546
  bearerToken,
@@ -576,7 +576,7 @@ var NotificationServicesController = class extends _basecontroller.BaseControlle
576
576
  const userStorage = await _chunkV46WVGWNjs.__privateGet.call(void 0, this, _storage).getNotificationStorage().then((s) => s && JSON.parse(s)).catch(() => null);
577
577
  const bearerToken = await _chunkV46WVGWNjs.__privateGet.call(void 0, this, _auth).getBearerToken().catch(() => null);
578
578
  if (userStorage && bearerToken) {
579
- const notifications = await _chunkVOZ7Y2OOjs.getOnChainNotifications.call(void 0,
579
+ const notifications = await _chunk53Y2GNFUjs.getOnChainNotifications.call(void 0,
580
580
  userStorage,
581
581
  bearerToken
582
582
  ).catch(() => []);
@@ -629,7 +629,7 @@ var NotificationServicesController = class extends _basecontroller.BaseControlle
629
629
  onchainNotificationIds = onChainNotifications.map(
630
630
  (notification) => notification.id
631
631
  );
632
- await _chunkVOZ7Y2OOjs.markNotificationsAsRead.call(void 0,
632
+ await _chunk53Y2GNFUjs.markNotificationsAsRead.call(void 0,
633
633
  bearerToken,
634
634
  onchainNotificationIds
635
635
  ).catch(() => {
@@ -799,4 +799,4 @@ clearUpdatingAccountsState_fn = function(accounts) {
799
799
 
800
800
 
801
801
  exports.defaultState = defaultState; exports.NotificationServicesController = NotificationServicesController;
802
- //# sourceMappingURL=chunk-XNBTOK6G.js.map
802
+ //# sourceMappingURL=chunk-AXZU6W3P.js.map