@metamask-previews/core-backend 2.1.0-preview-33a7c987 → 2.1.0-preview-8e6c5423
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.
- package/CHANGELOG.md +7 -26
- package/dist/AccountActivityService.cjs +10 -23
- package/dist/AccountActivityService.cjs.map +1 -1
- package/dist/AccountActivityService.d.cts +4 -6
- package/dist/AccountActivityService.d.cts.map +1 -1
- package/dist/AccountActivityService.d.mts +4 -6
- package/dist/AccountActivityService.d.mts.map +1 -1
- package/dist/AccountActivityService.mjs +9 -22
- package/dist/AccountActivityService.mjs.map +1 -1
- package/dist/BackendWebSocketService-method-action-types.cjs.map +1 -1
- package/dist/BackendWebSocketService-method-action-types.d.cts +1 -21
- package/dist/BackendWebSocketService-method-action-types.d.cts.map +1 -1
- package/dist/BackendWebSocketService-method-action-types.d.mts +1 -21
- package/dist/BackendWebSocketService-method-action-types.d.mts.map +1 -1
- package/dist/BackendWebSocketService-method-action-types.mjs.map +1 -1
- package/dist/BackendWebSocketService.cjs +22 -94
- package/dist/BackendWebSocketService.cjs.map +1 -1
- package/dist/BackendWebSocketService.d.cts +6 -21
- package/dist/BackendWebSocketService.d.cts.map +1 -1
- package/dist/BackendWebSocketService.d.mts +6 -21
- package/dist/BackendWebSocketService.d.mts.map +1 -1
- package/dist/BackendWebSocketService.mjs +22 -94
- package/dist/BackendWebSocketService.mjs.map +1 -1
- package/dist/index.cjs +2 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -3
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +2 -3
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +0 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;
|
|
1
|
+
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAyBH,yEAAoE;AAA3D,kIAAA,uBAAuB,OAAA;AAchC,uEAAkE;AAAzD,gIAAA,sBAAsB,OAAA","sourcesContent":["/**\n * @file Backend platform services for MetaMask.\n */\n\n// Transaction and balance update types\nexport type {\n Transaction,\n Asset,\n Balance,\n Transfer,\n BalanceUpdate,\n AccountActivityMessage,\n} from './types';\n\n// WebSocket Service - following MetaMask Data Services pattern\nexport type {\n BackendWebSocketServiceOptions,\n WebSocketMessage,\n WebSocketConnectionInfo,\n WebSocketSubscription,\n BackendWebSocketServiceActions,\n BackendWebSocketServiceMessenger,\n BackendWebSocketServiceEvents,\n BackendWebSocketServiceConnectionStateChangedEvent,\n WebSocketState,\n WebSocketEventType,\n} from './BackendWebSocketService';\nexport { BackendWebSocketService } from './BackendWebSocketService';\n\n// Account Activity Service\nexport type {\n SubscriptionOptions,\n AccountActivityServiceOptions,\n AccountActivityServiceActions,\n AccountActivityServiceTransactionUpdatedEvent,\n AccountActivityServiceBalanceUpdatedEvent,\n AccountActivityServiceSubscriptionErrorEvent,\n AccountActivityServiceStatusChangedEvent,\n AccountActivityServiceEvents,\n AccountActivityServiceMessenger,\n} from './AccountActivityService';\nexport { AccountActivityService } from './AccountActivityService';\n"]}
|
package/dist/index.d.cts
CHANGED
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
* @file Backend platform services for MetaMask.
|
|
3
3
|
*/
|
|
4
4
|
export type { Transaction, Asset, Balance, Transfer, BalanceUpdate, AccountActivityMessage, } from "./types.cjs";
|
|
5
|
-
export type { BackendWebSocketServiceOptions, WebSocketMessage, WebSocketConnectionInfo, WebSocketSubscription, BackendWebSocketServiceActions,
|
|
5
|
+
export type { BackendWebSocketServiceOptions, WebSocketMessage, WebSocketConnectionInfo, WebSocketSubscription, BackendWebSocketServiceActions, BackendWebSocketServiceMessenger, BackendWebSocketServiceEvents, BackendWebSocketServiceConnectionStateChangedEvent, WebSocketState, WebSocketEventType, } from "./BackendWebSocketService.cjs";
|
|
6
6
|
export { BackendWebSocketService } from "./BackendWebSocketService.cjs";
|
|
7
|
-
export type { SubscriptionOptions, AccountActivityServiceOptions, AccountActivityServiceActions,
|
|
8
|
-
export { ACCOUNT_ACTIVITY_SERVICE_ALLOWED_ACTIONS, ACCOUNT_ACTIVITY_SERVICE_ALLOWED_EVENTS, } from "./AccountActivityService.cjs";
|
|
7
|
+
export type { SubscriptionOptions, AccountActivityServiceOptions, AccountActivityServiceActions, AccountActivityServiceTransactionUpdatedEvent, AccountActivityServiceBalanceUpdatedEvent, AccountActivityServiceSubscriptionErrorEvent, AccountActivityServiceStatusChangedEvent, AccountActivityServiceEvents, AccountActivityServiceMessenger, } from "./AccountActivityService.cjs";
|
|
9
8
|
export { AccountActivityService } from "./AccountActivityService.cjs";
|
|
10
9
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,YAAY,EACV,WAAW,EACX,KAAK,EACL,OAAO,EACP,QAAQ,EACR,aAAa,EACb,sBAAsB,GACvB,oBAAgB;AAGjB,YAAY,EACV,8BAA8B,EAC9B,gBAAgB,EAChB,uBAAuB,EACvB,qBAAqB,EACrB,8BAA8B,EAC9B,
|
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,YAAY,EACV,WAAW,EACX,KAAK,EACL,OAAO,EACP,QAAQ,EACR,aAAa,EACb,sBAAsB,GACvB,oBAAgB;AAGjB,YAAY,EACV,8BAA8B,EAC9B,gBAAgB,EAChB,uBAAuB,EACvB,qBAAqB,EACrB,8BAA8B,EAC9B,gCAAgC,EAChC,6BAA6B,EAC7B,kDAAkD,EAClD,cAAc,EACd,kBAAkB,GACnB,sCAAkC;AACnC,OAAO,EAAE,uBAAuB,EAAE,sCAAkC;AAGpE,YAAY,EACV,mBAAmB,EACnB,6BAA6B,EAC7B,6BAA6B,EAC7B,6CAA6C,EAC7C,yCAAyC,EACzC,4CAA4C,EAC5C,wCAAwC,EACxC,4BAA4B,EAC5B,+BAA+B,GAChC,qCAAiC;AAClC,OAAO,EAAE,sBAAsB,EAAE,qCAAiC"}
|
package/dist/index.d.mts
CHANGED
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
* @file Backend platform services for MetaMask.
|
|
3
3
|
*/
|
|
4
4
|
export type { Transaction, Asset, Balance, Transfer, BalanceUpdate, AccountActivityMessage, } from "./types.mjs";
|
|
5
|
-
export type { BackendWebSocketServiceOptions, WebSocketMessage, WebSocketConnectionInfo, WebSocketSubscription, BackendWebSocketServiceActions,
|
|
5
|
+
export type { BackendWebSocketServiceOptions, WebSocketMessage, WebSocketConnectionInfo, WebSocketSubscription, BackendWebSocketServiceActions, BackendWebSocketServiceMessenger, BackendWebSocketServiceEvents, BackendWebSocketServiceConnectionStateChangedEvent, WebSocketState, WebSocketEventType, } from "./BackendWebSocketService.mjs";
|
|
6
6
|
export { BackendWebSocketService } from "./BackendWebSocketService.mjs";
|
|
7
|
-
export type { SubscriptionOptions, AccountActivityServiceOptions, AccountActivityServiceActions,
|
|
8
|
-
export { ACCOUNT_ACTIVITY_SERVICE_ALLOWED_ACTIONS, ACCOUNT_ACTIVITY_SERVICE_ALLOWED_EVENTS, } from "./AccountActivityService.mjs";
|
|
7
|
+
export type { SubscriptionOptions, AccountActivityServiceOptions, AccountActivityServiceActions, AccountActivityServiceTransactionUpdatedEvent, AccountActivityServiceBalanceUpdatedEvent, AccountActivityServiceSubscriptionErrorEvent, AccountActivityServiceStatusChangedEvent, AccountActivityServiceEvents, AccountActivityServiceMessenger, } from "./AccountActivityService.mjs";
|
|
9
8
|
export { AccountActivityService } from "./AccountActivityService.mjs";
|
|
10
9
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,YAAY,EACV,WAAW,EACX,KAAK,EACL,OAAO,EACP,QAAQ,EACR,aAAa,EACb,sBAAsB,GACvB,oBAAgB;AAGjB,YAAY,EACV,8BAA8B,EAC9B,gBAAgB,EAChB,uBAAuB,EACvB,qBAAqB,EACrB,8BAA8B,EAC9B,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,YAAY,EACV,WAAW,EACX,KAAK,EACL,OAAO,EACP,QAAQ,EACR,aAAa,EACb,sBAAsB,GACvB,oBAAgB;AAGjB,YAAY,EACV,8BAA8B,EAC9B,gBAAgB,EAChB,uBAAuB,EACvB,qBAAqB,EACrB,8BAA8B,EAC9B,gCAAgC,EAChC,6BAA6B,EAC7B,kDAAkD,EAClD,cAAc,EACd,kBAAkB,GACnB,sCAAkC;AACnC,OAAO,EAAE,uBAAuB,EAAE,sCAAkC;AAGpE,YAAY,EACV,mBAAmB,EACnB,6BAA6B,EAC7B,6BAA6B,EAC7B,6CAA6C,EAC7C,yCAAyC,EACzC,4CAA4C,EAC5C,wCAAwC,EACxC,4BAA4B,EAC5B,+BAA+B,GAChC,qCAAiC;AAClC,OAAO,EAAE,sBAAsB,EAAE,qCAAiC"}
|
package/dist/index.mjs
CHANGED
|
@@ -2,6 +2,5 @@
|
|
|
2
2
|
* @file Backend platform services for MetaMask.
|
|
3
3
|
*/
|
|
4
4
|
export { BackendWebSocketService } from "./BackendWebSocketService.mjs";
|
|
5
|
-
export { ACCOUNT_ACTIVITY_SERVICE_ALLOWED_ACTIONS, ACCOUNT_ACTIVITY_SERVICE_ALLOWED_EVENTS } from "./AccountActivityService.mjs";
|
|
6
5
|
export { AccountActivityService } from "./AccountActivityService.mjs";
|
|
7
6
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAyBH,OAAO,EAAE,uBAAuB,EAAE,sCAAkC;AAcpE,OAAO,EAAE,sBAAsB,EAAE,qCAAiC","sourcesContent":["/**\n * @file Backend platform services for MetaMask.\n */\n\n// Transaction and balance update types\nexport type {\n Transaction,\n Asset,\n Balance,\n Transfer,\n BalanceUpdate,\n AccountActivityMessage,\n} from './types';\n\n// WebSocket Service - following MetaMask Data Services pattern\nexport type {\n BackendWebSocketServiceOptions,\n WebSocketMessage,\n WebSocketConnectionInfo,\n WebSocketSubscription,\n BackendWebSocketServiceActions,\n BackendWebSocketServiceMessenger,\n BackendWebSocketServiceEvents,\n BackendWebSocketServiceConnectionStateChangedEvent,\n WebSocketState,\n WebSocketEventType,\n} from './BackendWebSocketService';\nexport { BackendWebSocketService } from './BackendWebSocketService';\n\n// Account Activity Service\nexport type {\n SubscriptionOptions,\n AccountActivityServiceOptions,\n AccountActivityServiceActions,\n AccountActivityServiceTransactionUpdatedEvent,\n AccountActivityServiceBalanceUpdatedEvent,\n AccountActivityServiceSubscriptionErrorEvent,\n AccountActivityServiceStatusChangedEvent,\n AccountActivityServiceEvents,\n AccountActivityServiceMessenger,\n} from './AccountActivityService';\nexport { AccountActivityService } from './AccountActivityService';\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask-previews/core-backend",
|
|
3
|
-
"version": "2.1.0-preview-
|
|
3
|
+
"version": "2.1.0-preview-8e6c5423",
|
|
4
4
|
"description": "Core backend services for MetaMask",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"MetaMask",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@metamask/base-controller": "^8.4.2",
|
|
51
50
|
"@metamask/controller-utils": "^11.14.1",
|
|
51
|
+
"@metamask/messenger": "^0.3.0",
|
|
52
52
|
"@metamask/profile-sync-controller": "^25.1.1",
|
|
53
53
|
"@metamask/utils": "^11.8.1",
|
|
54
54
|
"uuid": "^8.3.2"
|