@metamask-previews/notification-services-controller 0.21.0-preview-de5d7291 → 0.21.0-preview-9f243081

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 (111) hide show
  1. package/dist/NotificationServicesController/NotificationServicesController.cjs +33 -62
  2. package/dist/NotificationServicesController/NotificationServicesController.cjs.map +1 -1
  3. package/dist/NotificationServicesController/NotificationServicesController.d.cts +3 -15
  4. package/dist/NotificationServicesController/NotificationServicesController.d.cts.map +1 -1
  5. package/dist/NotificationServicesController/NotificationServicesController.d.mts +3 -15
  6. package/dist/NotificationServicesController/NotificationServicesController.d.mts.map +1 -1
  7. package/dist/NotificationServicesController/NotificationServicesController.mjs +33 -62
  8. package/dist/NotificationServicesController/NotificationServicesController.mjs.map +1 -1
  9. package/dist/NotificationServicesController/index.cjs +1 -0
  10. package/dist/NotificationServicesController/index.cjs.map +1 -1
  11. package/dist/NotificationServicesController/index.d.cts +1 -0
  12. package/dist/NotificationServicesController/index.d.cts.map +1 -1
  13. package/dist/NotificationServicesController/index.d.mts +1 -0
  14. package/dist/NotificationServicesController/index.d.mts.map +1 -1
  15. package/dist/NotificationServicesController/index.mjs +1 -0
  16. package/dist/NotificationServicesController/index.mjs.map +1 -1
  17. package/dist/NotificationServicesPushController/NotificationServicesPushController.cjs +54 -44
  18. package/dist/NotificationServicesPushController/NotificationServicesPushController.cjs.map +1 -1
  19. package/dist/NotificationServicesPushController/NotificationServicesPushController.d.cts +26 -17
  20. package/dist/NotificationServicesPushController/NotificationServicesPushController.d.cts.map +1 -1
  21. package/dist/NotificationServicesPushController/NotificationServicesPushController.d.mts +26 -17
  22. package/dist/NotificationServicesPushController/NotificationServicesPushController.d.mts.map +1 -1
  23. package/dist/NotificationServicesPushController/NotificationServicesPushController.mjs +55 -45
  24. package/dist/NotificationServicesPushController/NotificationServicesPushController.mjs.map +1 -1
  25. package/dist/NotificationServicesPushController/__fixtures__/mockMessenger.cjs +14 -0
  26. package/dist/NotificationServicesPushController/__fixtures__/mockMessenger.cjs.map +1 -0
  27. package/dist/NotificationServicesPushController/__fixtures__/mockMessenger.d.cts +3 -0
  28. package/dist/NotificationServicesPushController/__fixtures__/mockMessenger.d.cts.map +1 -0
  29. package/dist/NotificationServicesPushController/__fixtures__/mockMessenger.d.mts +3 -0
  30. package/dist/NotificationServicesPushController/__fixtures__/mockMessenger.d.mts.map +1 -0
  31. package/dist/NotificationServicesPushController/__fixtures__/mockMessenger.mjs +10 -0
  32. package/dist/NotificationServicesPushController/__fixtures__/mockMessenger.mjs.map +1 -0
  33. package/dist/NotificationServicesPushController/services/services.cjs +3 -26
  34. package/dist/NotificationServicesPushController/services/services.cjs.map +1 -1
  35. package/dist/NotificationServicesPushController/services/services.d.cts +1 -15
  36. package/dist/NotificationServicesPushController/services/services.d.cts.map +1 -1
  37. package/dist/NotificationServicesPushController/services/services.d.mts +1 -15
  38. package/dist/NotificationServicesPushController/services/services.d.mts.map +1 -1
  39. package/dist/NotificationServicesPushController/services/services.mjs +2 -24
  40. package/dist/NotificationServicesPushController/services/services.mjs.map +1 -1
  41. package/dist/NotificationServicesPushController/types/index.cjs.map +1 -1
  42. package/dist/NotificationServicesPushController/types/index.d.cts +1 -0
  43. package/dist/NotificationServicesPushController/types/index.d.cts.map +1 -1
  44. package/dist/NotificationServicesPushController/types/index.d.mts +1 -0
  45. package/dist/NotificationServicesPushController/types/index.d.mts.map +1 -1
  46. package/dist/NotificationServicesPushController/types/index.mjs.map +1 -1
  47. package/dist/NotificationServicesPushController/{services/push/index.cjs → types/push-service-interface.cjs} +1 -1
  48. package/dist/NotificationServicesPushController/types/push-service-interface.cjs.map +1 -0
  49. package/dist/NotificationServicesPushController/types/push-service-interface.d.cts +30 -0
  50. package/dist/NotificationServicesPushController/types/push-service-interface.d.cts.map +1 -0
  51. package/dist/NotificationServicesPushController/types/push-service-interface.d.mts +30 -0
  52. package/dist/NotificationServicesPushController/types/push-service-interface.d.mts.map +1 -0
  53. package/dist/NotificationServicesPushController/types/push-service-interface.mjs +2 -0
  54. package/dist/NotificationServicesPushController/types/push-service-interface.mjs.map +1 -0
  55. package/dist/NotificationServicesPushController/utils/get-notification-message.cjs +1 -19
  56. package/dist/NotificationServicesPushController/utils/get-notification-message.cjs.map +1 -1
  57. package/dist/NotificationServicesPushController/utils/get-notification-message.d.cts +0 -7
  58. package/dist/NotificationServicesPushController/utils/get-notification-message.d.cts.map +1 -1
  59. package/dist/NotificationServicesPushController/utils/get-notification-message.d.mts +0 -7
  60. package/dist/NotificationServicesPushController/utils/get-notification-message.d.mts.map +1 -1
  61. package/dist/NotificationServicesPushController/utils/get-notification-message.mjs +0 -17
  62. package/dist/NotificationServicesPushController/utils/get-notification-message.mjs.map +1 -1
  63. package/dist/NotificationServicesPushController/web/index.cjs +8 -0
  64. package/dist/NotificationServicesPushController/web/index.cjs.map +1 -0
  65. package/dist/NotificationServicesPushController/web/index.d.cts +2 -0
  66. package/dist/NotificationServicesPushController/web/index.d.cts.map +1 -0
  67. package/dist/NotificationServicesPushController/web/index.d.mts +2 -0
  68. package/dist/NotificationServicesPushController/web/index.d.mts.map +1 -0
  69. package/dist/NotificationServicesPushController/web/index.mjs +2 -0
  70. package/dist/NotificationServicesPushController/web/index.mjs.map +1 -0
  71. package/dist/NotificationServicesPushController/web/push-utils.cjs +170 -0
  72. package/dist/NotificationServicesPushController/web/push-utils.cjs.map +1 -0
  73. package/dist/NotificationServicesPushController/web/push-utils.d.cts +37 -0
  74. package/dist/NotificationServicesPushController/web/push-utils.d.cts.map +1 -0
  75. package/dist/NotificationServicesPushController/web/push-utils.d.mts +37 -0
  76. package/dist/NotificationServicesPushController/web/push-utils.d.mts.map +1 -0
  77. package/dist/NotificationServicesPushController/web/push-utils.mjs +168 -0
  78. package/dist/NotificationServicesPushController/web/push-utils.mjs.map +1 -0
  79. package/dist/shared/index.cjs +19 -0
  80. package/dist/shared/index.cjs.map +1 -0
  81. package/dist/shared/index.d.cts +3 -0
  82. package/dist/shared/index.d.cts.map +1 -0
  83. package/dist/shared/index.d.mts +3 -0
  84. package/dist/shared/index.d.mts.map +1 -0
  85. package/dist/shared/index.mjs +3 -0
  86. package/dist/shared/index.mjs.map +1 -0
  87. package/dist/shared/is-onchain-notification.cjs +22 -0
  88. package/dist/shared/is-onchain-notification.cjs.map +1 -0
  89. package/dist/shared/is-onchain-notification.d.cts +9 -0
  90. package/dist/shared/is-onchain-notification.d.cts.map +1 -0
  91. package/dist/shared/is-onchain-notification.d.mts +9 -0
  92. package/dist/shared/is-onchain-notification.d.mts.map +1 -0
  93. package/dist/shared/is-onchain-notification.mjs +18 -0
  94. package/dist/shared/is-onchain-notification.mjs.map +1 -0
  95. package/package.json +11 -1
  96. package/push-services/web/package.json +150 -0
  97. package/dist/NotificationServicesPushController/constants.cjs +0 -14
  98. package/dist/NotificationServicesPushController/constants.cjs.map +0 -1
  99. package/dist/NotificationServicesPushController/constants.d.cts +0 -11
  100. package/dist/NotificationServicesPushController/constants.d.cts.map +0 -1
  101. package/dist/NotificationServicesPushController/constants.d.mts +0 -11
  102. package/dist/NotificationServicesPushController/constants.d.mts.map +0 -1
  103. package/dist/NotificationServicesPushController/constants.mjs +0 -11
  104. package/dist/NotificationServicesPushController/constants.mjs.map +0 -1
  105. package/dist/NotificationServicesPushController/services/push/index.cjs.map +0 -1
  106. package/dist/NotificationServicesPushController/services/push/index.d.cts +0 -6
  107. package/dist/NotificationServicesPushController/services/push/index.d.cts.map +0 -1
  108. package/dist/NotificationServicesPushController/services/push/index.d.mts +0 -6
  109. package/dist/NotificationServicesPushController/services/push/index.d.mts.map +0 -1
  110. package/dist/NotificationServicesPushController/services/push/index.mjs +0 -2
  111. package/dist/NotificationServicesPushController/services/push/index.mjs.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":"AAAA,8CAA0C;AAC1C,0CAAsC","sourcesContent":["export * from './is-onchain-notification';\nexport * from './to-raw-notification';\n"]}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isOnChainRawNotification = void 0;
4
+ /**
5
+ * Checks if the given value is an OnChainRawNotification object.
6
+ *
7
+ * @param n - The value to check.
8
+ * @returns True if the value is an OnChainRawNotification object, false otherwise.
9
+ */
10
+ function isOnChainRawNotification(n) {
11
+ const assumed = n;
12
+ // We don't have a validation/parsing library to check all possible types of an on chain notification
13
+ // It is safe enough just to check "some" fields, and catch any errors down the line if the shape is bad.
14
+ const isValidEnoughToBeOnChainNotification = [
15
+ assumed?.id,
16
+ assumed?.data,
17
+ assumed?.trigger_id,
18
+ ].every((field) => field !== undefined);
19
+ return isValidEnoughToBeOnChainNotification;
20
+ }
21
+ exports.isOnChainRawNotification = isOnChainRawNotification;
22
+ //# sourceMappingURL=is-onchain-notification.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-onchain-notification.cjs","sourceRoot":"","sources":["../../src/shared/is-onchain-notification.ts"],"names":[],"mappings":";;;AAEA;;;;;GAKG;AACH,SAAgB,wBAAwB,CACtC,CAAU;IAEV,MAAM,OAAO,GAAG,CAA2B,CAAC;IAE5C,qGAAqG;IACrG,yGAAyG;IACzG,MAAM,oCAAoC,GAAG;QAC3C,OAAO,EAAE,EAAE;QACX,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,UAAU;KACpB,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC;IACxC,OAAO,oCAAoC,CAAC;AAC9C,CAAC;AAbD,4DAaC","sourcesContent":["import type { OnChainRawNotification } from '../NotificationServicesController';\n\n/**\n * Checks if the given value is an OnChainRawNotification object.\n *\n * @param n - The value to check.\n * @returns True if the value is an OnChainRawNotification object, false otherwise.\n */\nexport function isOnChainRawNotification(\n n: unknown,\n): n is OnChainRawNotification {\n const assumed = n as OnChainRawNotification;\n\n // We don't have a validation/parsing library to check all possible types of an on chain notification\n // It is safe enough just to check \"some\" fields, and catch any errors down the line if the shape is bad.\n const isValidEnoughToBeOnChainNotification = [\n assumed?.id,\n assumed?.data,\n assumed?.trigger_id,\n ].every((field) => field !== undefined);\n return isValidEnoughToBeOnChainNotification;\n}\n"]}
@@ -0,0 +1,9 @@
1
+ import type { OnChainRawNotification } from "../NotificationServicesController/index.cjs";
2
+ /**
3
+ * Checks if the given value is an OnChainRawNotification object.
4
+ *
5
+ * @param n - The value to check.
6
+ * @returns True if the value is an OnChainRawNotification object, false otherwise.
7
+ */
8
+ export declare function isOnChainRawNotification(n: unknown): n is OnChainRawNotification;
9
+ //# sourceMappingURL=is-onchain-notification.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-onchain-notification.d.cts","sourceRoot":"","sources":["../../src/shared/is-onchain-notification.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,oDAA0C;AAEhF;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACtC,CAAC,EAAE,OAAO,GACT,CAAC,IAAI,sBAAsB,CAW7B"}
@@ -0,0 +1,9 @@
1
+ import type { OnChainRawNotification } from "../NotificationServicesController/index.mjs";
2
+ /**
3
+ * Checks if the given value is an OnChainRawNotification object.
4
+ *
5
+ * @param n - The value to check.
6
+ * @returns True if the value is an OnChainRawNotification object, false otherwise.
7
+ */
8
+ export declare function isOnChainRawNotification(n: unknown): n is OnChainRawNotification;
9
+ //# sourceMappingURL=is-onchain-notification.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-onchain-notification.d.mts","sourceRoot":"","sources":["../../src/shared/is-onchain-notification.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,oDAA0C;AAEhF;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACtC,CAAC,EAAE,OAAO,GACT,CAAC,IAAI,sBAAsB,CAW7B"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Checks if the given value is an OnChainRawNotification object.
3
+ *
4
+ * @param n - The value to check.
5
+ * @returns True if the value is an OnChainRawNotification object, false otherwise.
6
+ */
7
+ export function isOnChainRawNotification(n) {
8
+ const assumed = n;
9
+ // We don't have a validation/parsing library to check all possible types of an on chain notification
10
+ // It is safe enough just to check "some" fields, and catch any errors down the line if the shape is bad.
11
+ const isValidEnoughToBeOnChainNotification = [
12
+ assumed?.id,
13
+ assumed?.data,
14
+ assumed?.trigger_id,
15
+ ].every((field) => field !== undefined);
16
+ return isValidEnoughToBeOnChainNotification;
17
+ }
18
+ //# sourceMappingURL=is-onchain-notification.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-onchain-notification.mjs","sourceRoot":"","sources":["../../src/shared/is-onchain-notification.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,UAAU,wBAAwB,CACtC,CAAU;IAEV,MAAM,OAAO,GAAG,CAA2B,CAAC;IAE5C,qGAAqG;IACrG,yGAAyG;IACzG,MAAM,oCAAoC,GAAG;QAC3C,OAAO,EAAE,EAAE;QACX,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,UAAU;KACpB,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC;IACxC,OAAO,oCAAoC,CAAC;AAC9C,CAAC","sourcesContent":["import type { OnChainRawNotification } from '../NotificationServicesController';\n\n/**\n * Checks if the given value is an OnChainRawNotification object.\n *\n * @param n - The value to check.\n * @returns True if the value is an OnChainRawNotification object, false otherwise.\n */\nexport function isOnChainRawNotification(\n n: unknown,\n): n is OnChainRawNotification {\n const assumed = n as OnChainRawNotification;\n\n // We don't have a validation/parsing library to check all possible types of an on chain notification\n // It is safe enough just to check \"some\" fields, and catch any errors down the line if the shape is bad.\n const isValidEnoughToBeOnChainNotification = [\n assumed?.id,\n assumed?.data,\n assumed?.trigger_id,\n ].every((field) => field !== undefined);\n return isValidEnoughToBeOnChainNotification;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/notification-services-controller",
3
- "version": "0.21.0-preview-de5d7291",
3
+ "version": "0.21.0-preview-9f243081",
4
4
  "description": "Manages New MetaMask decentralized Notification system",
5
5
  "keywords": [
6
6
  "MetaMask",
@@ -67,6 +67,16 @@
67
67
  "default": "./dist/NotificationServicesPushController/index.cjs"
68
68
  }
69
69
  },
70
+ "./push-services/web": {
71
+ "import": {
72
+ "types": "./dist/NotificationServicesPushController/web/index.d.mts",
73
+ "default": "./dist/NotificationServicesPushController/web/index.mjs"
74
+ },
75
+ "require": {
76
+ "types": "./dist/NotificationServicesPushController/web/index.d.cts",
77
+ "default": "./dist/NotificationServicesPushController/web/index.cjs"
78
+ }
79
+ },
70
80
  "./push-services/mocks": {
71
81
  "import": {
72
82
  "types": "./dist/NotificationServicesPushController/__fixtures__/index.d.mts",
@@ -0,0 +1,150 @@
1
+ {
2
+ "name": "@metamask/notification-services-controller",
3
+ "version": "0.18.0",
4
+ "description": "Manages New MetaMask decentralized Notification system",
5
+ "keywords": [
6
+ "MetaMask",
7
+ "Ethereum"
8
+ ],
9
+ "homepage": "https://github.com/MetaMask/core/tree/main/packages/notification-services-controller#readme",
10
+ "bugs": {
11
+ "url": "https://github.com/MetaMask/core/issues"
12
+ },
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "https://github.com/MetaMask/core.git"
16
+ },
17
+ "license": "MIT",
18
+ "sideEffects": false,
19
+ "exports": {
20
+ ".": {
21
+ "import": {
22
+ "types": "./dist/index.d.mts",
23
+ "default": "./dist/index.mjs"
24
+ },
25
+ "require": {
26
+ "types": "./dist/index.d.cts",
27
+ "default": "./dist/index.cjs"
28
+ }
29
+ },
30
+ "./notification-services": {
31
+ "import": {
32
+ "types": "./dist/NotificationServicesController/index.d.mts",
33
+ "default": "./dist/NotificationServicesController/index.mjs"
34
+ },
35
+ "require": {
36
+ "types": "./dist/NotificationServicesController/index.d.cts",
37
+ "default": "./dist/NotificationServicesController/index.cjs"
38
+ }
39
+ },
40
+ "./notification-services/ui": {
41
+ "import": {
42
+ "types": "./dist/NotificationServicesController/ui/index.d.mts",
43
+ "default": "./dist/NotificationServicesController/ui/index.mjs"
44
+ },
45
+ "require": {
46
+ "types": "./dist/NotificationServicesController/ui/index.d.cts",
47
+ "default": "./dist/NotificationServicesController/ui/index.cjs"
48
+ }
49
+ },
50
+ "./notification-services/mocks": {
51
+ "import": {
52
+ "types": "./dist/NotificationServicesController/__fixtures__/index.d.mts",
53
+ "default": "./dist/NotificationServicesController/__fixtures__/index.mjs"
54
+ },
55
+ "require": {
56
+ "types": "./dist/NotificationServicesController/__fixtures__/index.d.cts",
57
+ "default": "./dist/NotificationServicesController/__fixtures__/index.cjs"
58
+ }
59
+ },
60
+ "./push-services": {
61
+ "import": {
62
+ "types": "./dist/NotificationServicesPushController/index.d.mts",
63
+ "default": "./dist/NotificationServicesPushController/index.mjs"
64
+ },
65
+ "require": {
66
+ "types": "./dist/NotificationServicesPushController/index.d.cts",
67
+ "default": "./dist/NotificationServicesPushController/index.cjs"
68
+ }
69
+ },
70
+ "./push-services/web": {
71
+ "import": {
72
+ "types": "./dist/NotificationServicesPushController/web/index.d.mts",
73
+ "default": "./dist/NotificationServicesPushController/web/index.mjs"
74
+ },
75
+ "require": {
76
+ "types": "./dist/NotificationServicesPushController/web/index.d.cts",
77
+ "default": "./dist/NotificationServicesPushController/web/index.cjs"
78
+ }
79
+ },
80
+ "./push-services/mocks": {
81
+ "import": {
82
+ "types": "./dist/NotificationServicesPushController/__fixtures__/index.d.mts",
83
+ "default": "./dist/NotificationServicesPushController/__fixtures__/index.mjs"
84
+ },
85
+ "require": {
86
+ "types": "./dist/NotificationServicesPushController/__fixtures__/index.d.cts",
87
+ "default": "./dist/NotificationServicesPushController/__fixtures__/index.cjs"
88
+ }
89
+ },
90
+ "./package.json": "./package.json"
91
+ },
92
+ "main": "./dist/index.cjs",
93
+ "types": "./dist/index.d.cts",
94
+ "files": [
95
+ "dist/",
96
+ "notification-services/",
97
+ "push-services/"
98
+ ],
99
+ "scripts": {
100
+ "build": "ts-bridge --project tsconfig.build.json --verbose --clean --no-references",
101
+ "build:docs": "typedoc",
102
+ "changelog:update": "../../scripts/update-changelog.sh @metamask/notification-services-controller",
103
+ "changelog:validate": "../../scripts/validate-changelog.sh @metamask/notification-services-controller",
104
+ "publish:preview": "yarn npm publish --tag preview",
105
+ "since-latest-release": "../../scripts/since-latest-release.sh",
106
+ "test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter",
107
+ "test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache",
108
+ "test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose",
109
+ "test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch"
110
+ },
111
+ "dependencies": {
112
+ "@contentful/rich-text-html-renderer": "^16.5.2",
113
+ "@metamask/base-controller": "^7.1.1",
114
+ "@metamask/controller-utils": "^11.4.5",
115
+ "@metamask/utils": "^11.0.1",
116
+ "bignumber.js": "^9.1.2",
117
+ "firebase": "^11.2.0",
118
+ "loglevel": "^1.8.1",
119
+ "uuid": "^8.3.2"
120
+ },
121
+ "devDependencies": {
122
+ "@lavamoat/allow-scripts": "^3.0.4",
123
+ "@lavamoat/preinstall-always-fail": "^2.1.0",
124
+ "@metamask/auto-changelog": "^3.4.4",
125
+ "@metamask/keyring-controller": "^19.0.5",
126
+ "@metamask/profile-sync-controller": "^5.0.0",
127
+ "@types/jest": "^27.4.1",
128
+ "@types/readable-stream": "^2.3.0",
129
+ "contentful": "^10.15.0",
130
+ "deepmerge": "^4.2.2",
131
+ "jest": "^27.5.1",
132
+ "jest-environment-jsdom": "^27.5.1",
133
+ "nock": "^13.3.1",
134
+ "ts-jest": "^27.1.4",
135
+ "typedoc": "^0.24.8",
136
+ "typedoc-plugin-missing-exports": "^2.0.0",
137
+ "typescript": "~5.2.2"
138
+ },
139
+ "peerDependencies": {
140
+ "@metamask/keyring-controller": "^19.0.0",
141
+ "@metamask/profile-sync-controller": "^5.0.0"
142
+ },
143
+ "engines": {
144
+ "node": "^18.18 || >=20"
145
+ },
146
+ "publishConfig": {
147
+ "access": "public",
148
+ "registry": "https://registry.npmjs.org/"
149
+ }
150
+ }
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VAPID_KEY = exports.FIREBASE_MEASUREMENT_ID = exports.FIREBASE_APP_ID = exports.FIREBASE_MESSAGING_SENDER_ID = exports.FIREBASE_PROJECT_ID = exports.FIREBASE_STORAGE_BUCKET = exports.FIREBASE_AUTH_DOMAIN = exports.FIREBASE_API_KEY = exports.PUSH_NOTIFICATIONS_SERVICE_URL = exports.ENABLE_MV3 = void 0;
4
- exports.ENABLE_MV3 = true;
5
- exports.PUSH_NOTIFICATIONS_SERVICE_URL = 'https://push.api.cx.metamask.io';
6
- exports.FIREBASE_API_KEY = '';
7
- exports.FIREBASE_AUTH_DOMAIN = '';
8
- exports.FIREBASE_STORAGE_BUCKET = '';
9
- exports.FIREBASE_PROJECT_ID = '';
10
- exports.FIREBASE_MESSAGING_SENDER_ID = '';
11
- exports.FIREBASE_APP_ID = '';
12
- exports.FIREBASE_MEASUREMENT_ID = '';
13
- exports.VAPID_KEY = '';
14
- //# sourceMappingURL=constants.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.cjs","sourceRoot":"","sources":["../../src/NotificationServicesPushController/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG,IAAI,CAAC;AAClB,QAAA,8BAA8B,GAAG,iCAAiC,CAAC;AAEnE,QAAA,gBAAgB,GAAG,EAAE,CAAC;AACtB,QAAA,oBAAoB,GAAG,EAAE,CAAC;AAC1B,QAAA,uBAAuB,GAAG,EAAE,CAAC;AAC7B,QAAA,mBAAmB,GAAG,EAAE,CAAC;AACzB,QAAA,4BAA4B,GAAG,EAAE,CAAC;AAClC,QAAA,eAAe,GAAG,EAAE,CAAC;AACrB,QAAA,uBAAuB,GAAG,EAAE,CAAC;AAC7B,QAAA,SAAS,GAAG,EAAE,CAAC","sourcesContent":["export const ENABLE_MV3 = true;\nexport const PUSH_NOTIFICATIONS_SERVICE_URL = 'https://push.api.cx.metamask.io';\n\nexport const FIREBASE_API_KEY = '';\nexport const FIREBASE_AUTH_DOMAIN = '';\nexport const FIREBASE_STORAGE_BUCKET = '';\nexport const FIREBASE_PROJECT_ID = '';\nexport const FIREBASE_MESSAGING_SENDER_ID = '';\nexport const FIREBASE_APP_ID = '';\nexport const FIREBASE_MEASUREMENT_ID = '';\nexport const VAPID_KEY = '';\n"]}
@@ -1,11 +0,0 @@
1
- export declare const ENABLE_MV3 = true;
2
- export declare const PUSH_NOTIFICATIONS_SERVICE_URL = "https://push.api.cx.metamask.io";
3
- export declare const FIREBASE_API_KEY = "";
4
- export declare const FIREBASE_AUTH_DOMAIN = "";
5
- export declare const FIREBASE_STORAGE_BUCKET = "";
6
- export declare const FIREBASE_PROJECT_ID = "";
7
- export declare const FIREBASE_MESSAGING_SENDER_ID = "";
8
- export declare const FIREBASE_APP_ID = "";
9
- export declare const FIREBASE_MEASUREMENT_ID = "";
10
- export declare const VAPID_KEY = "";
11
- //# sourceMappingURL=constants.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.cts","sourceRoot":"","sources":["../../src/NotificationServicesPushController/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,8BAA8B,oCAAoC,CAAC;AAEhF,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,eAAO,MAAM,oBAAoB,KAAK,CAAC;AACvC,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAC1C,eAAO,MAAM,mBAAmB,KAAK,CAAC;AACtC,eAAO,MAAM,4BAA4B,KAAK,CAAC;AAC/C,eAAO,MAAM,eAAe,KAAK,CAAC;AAClC,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAC1C,eAAO,MAAM,SAAS,KAAK,CAAC"}
@@ -1,11 +0,0 @@
1
- export declare const ENABLE_MV3 = true;
2
- export declare const PUSH_NOTIFICATIONS_SERVICE_URL = "https://push.api.cx.metamask.io";
3
- export declare const FIREBASE_API_KEY = "";
4
- export declare const FIREBASE_AUTH_DOMAIN = "";
5
- export declare const FIREBASE_STORAGE_BUCKET = "";
6
- export declare const FIREBASE_PROJECT_ID = "";
7
- export declare const FIREBASE_MESSAGING_SENDER_ID = "";
8
- export declare const FIREBASE_APP_ID = "";
9
- export declare const FIREBASE_MEASUREMENT_ID = "";
10
- export declare const VAPID_KEY = "";
11
- //# sourceMappingURL=constants.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.mts","sourceRoot":"","sources":["../../src/NotificationServicesPushController/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,8BAA8B,oCAAoC,CAAC;AAEhF,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,eAAO,MAAM,oBAAoB,KAAK,CAAC;AACvC,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAC1C,eAAO,MAAM,mBAAmB,KAAK,CAAC;AACtC,eAAO,MAAM,4BAA4B,KAAK,CAAC;AAC/C,eAAO,MAAM,eAAe,KAAK,CAAC;AAClC,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAC1C,eAAO,MAAM,SAAS,KAAK,CAAC"}
@@ -1,11 +0,0 @@
1
- export const ENABLE_MV3 = true;
2
- export const PUSH_NOTIFICATIONS_SERVICE_URL = 'https://push.api.cx.metamask.io';
3
- export const FIREBASE_API_KEY = '';
4
- export const FIREBASE_AUTH_DOMAIN = '';
5
- export const FIREBASE_STORAGE_BUCKET = '';
6
- export const FIREBASE_PROJECT_ID = '';
7
- export const FIREBASE_MESSAGING_SENDER_ID = '';
8
- export const FIREBASE_APP_ID = '';
9
- export const FIREBASE_MEASUREMENT_ID = '';
10
- export const VAPID_KEY = '';
11
- //# sourceMappingURL=constants.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.mjs","sourceRoot":"","sources":["../../src/NotificationServicesPushController/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,CAAC;AAC/B,MAAM,CAAC,MAAM,8BAA8B,GAAG,iCAAiC,CAAC;AAEhF,MAAM,CAAC,MAAM,gBAAgB,GAAG,EAAE,CAAC;AACnC,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAAE,CAAC;AACvC,MAAM,CAAC,MAAM,uBAAuB,GAAG,EAAE,CAAC;AAC1C,MAAM,CAAC,MAAM,mBAAmB,GAAG,EAAE,CAAC;AACtC,MAAM,CAAC,MAAM,4BAA4B,GAAG,EAAE,CAAC;AAC/C,MAAM,CAAC,MAAM,eAAe,GAAG,EAAE,CAAC;AAClC,MAAM,CAAC,MAAM,uBAAuB,GAAG,EAAE,CAAC;AAC1C,MAAM,CAAC,MAAM,SAAS,GAAG,EAAE,CAAC","sourcesContent":["export const ENABLE_MV3 = true;\nexport const PUSH_NOTIFICATIONS_SERVICE_URL = 'https://push.api.cx.metamask.io';\n\nexport const FIREBASE_API_KEY = '';\nexport const FIREBASE_AUTH_DOMAIN = '';\nexport const FIREBASE_STORAGE_BUCKET = '';\nexport const FIREBASE_PROJECT_ID = '';\nexport const FIREBASE_MESSAGING_SENDER_ID = '';\nexport const FIREBASE_APP_ID = '';\nexport const FIREBASE_MEASUREMENT_ID = '';\nexport const VAPID_KEY = '';\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../../src/NotificationServicesPushController/services/push/index.ts"],"names":[],"mappings":"","sourcesContent":["import type * as Web from './push-web';\n\nexport type CreateRegToken = typeof Web.createRegToken;\nexport type DeleteRegToken = typeof Web.deleteRegToken;\nexport type ListenToPushNotificationsReceived =\n typeof Web.listenToPushNotificationsReceived;\nexport type ListenToPushNotificationsClicked =\n typeof Web.listenToPushNotificationsClicked;\n"]}
@@ -1,6 +0,0 @@
1
- import type * as Web from "./push-web.cjs";
2
- export type CreateRegToken = typeof Web.createRegToken;
3
- export type DeleteRegToken = typeof Web.deleteRegToken;
4
- export type ListenToPushNotificationsReceived = typeof Web.listenToPushNotificationsReceived;
5
- export type ListenToPushNotificationsClicked = typeof Web.listenToPushNotificationsClicked;
6
- //# sourceMappingURL=index.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../../src/NotificationServicesPushController/services/push/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,GAAG,uBAAmB;AAEvC,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,CAAC,cAAc,CAAC;AACvD,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,CAAC,cAAc,CAAC;AACvD,MAAM,MAAM,iCAAiC,GAC3C,OAAO,GAAG,CAAC,iCAAiC,CAAC;AAC/C,MAAM,MAAM,gCAAgC,GAC1C,OAAO,GAAG,CAAC,gCAAgC,CAAC"}
@@ -1,6 +0,0 @@
1
- import type * as Web from "./push-web.mjs";
2
- export type CreateRegToken = typeof Web.createRegToken;
3
- export type DeleteRegToken = typeof Web.deleteRegToken;
4
- export type ListenToPushNotificationsReceived = typeof Web.listenToPushNotificationsReceived;
5
- export type ListenToPushNotificationsClicked = typeof Web.listenToPushNotificationsClicked;
6
- //# sourceMappingURL=index.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../../src/NotificationServicesPushController/services/push/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,GAAG,uBAAmB;AAEvC,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,CAAC,cAAc,CAAC;AACvD,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,CAAC,cAAc,CAAC;AACvD,MAAM,MAAM,iCAAiC,GAC3C,OAAO,GAAG,CAAC,iCAAiC,CAAC;AAC/C,MAAM,MAAM,gCAAgC,GAC1C,OAAO,GAAG,CAAC,gCAAgC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../../src/NotificationServicesPushController/services/push/index.ts"],"names":[],"mappings":"","sourcesContent":["import type * as Web from './push-web';\n\nexport type CreateRegToken = typeof Web.createRegToken;\nexport type DeleteRegToken = typeof Web.deleteRegToken;\nexport type ListenToPushNotificationsReceived =\n typeof Web.listenToPushNotificationsReceived;\nexport type ListenToPushNotificationsClicked =\n typeof Web.listenToPushNotificationsClicked;\n"]}