@metamask-previews/profile-sync-controller 11.0.0-preview-9d7b1fa6 → 11.0.0-preview-0a8680e7
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 +0 -4
- package/dist/controllers/authentication/auth-snap-requests.cjs +2 -2
- package/dist/controllers/authentication/auth-snap-requests.cjs.map +1 -1
- package/dist/controllers/authentication/auth-snap-requests.mjs +2 -2
- package/dist/controllers/authentication/auth-snap-requests.mjs.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,10 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
-
### Fixed
|
|
11
|
-
|
|
12
|
-
- Update origin used for `SnapController:handleRequest` ([#5616](https://github.com/MetaMask/core/pull/5616))
|
|
13
|
-
|
|
14
10
|
## [11.0.0]
|
|
15
11
|
|
|
16
12
|
### Changed
|
|
@@ -10,7 +10,7 @@ const snapId = 'npm:@metamask/message-signing-snap';
|
|
|
10
10
|
function createSnapPublicKeyRequest() {
|
|
11
11
|
return {
|
|
12
12
|
snapId,
|
|
13
|
-
origin: '
|
|
13
|
+
origin: '',
|
|
14
14
|
handler: 'onRpcRequest',
|
|
15
15
|
request: {
|
|
16
16
|
method: 'getPublicKey',
|
|
@@ -27,7 +27,7 @@ exports.createSnapPublicKeyRequest = createSnapPublicKeyRequest;
|
|
|
27
27
|
function createSnapSignMessageRequest(message) {
|
|
28
28
|
return {
|
|
29
29
|
snapId,
|
|
30
|
-
origin: '
|
|
30
|
+
origin: '',
|
|
31
31
|
handler: 'onRpcRequest',
|
|
32
32
|
request: {
|
|
33
33
|
method: 'signMessage',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-snap-requests.cjs","sourceRoot":"","sources":["../../../src/controllers/authentication/auth-snap-requests.ts"],"names":[],"mappings":";;;AAMA,MAAM,MAAM,GAAG,oCAA8C,CAAC;AAE9D;;;;GAIG;AACH,SAAgB,0BAA0B;IACxC,OAAO;QACL,MAAM;QACN,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"auth-snap-requests.cjs","sourceRoot":"","sources":["../../../src/controllers/authentication/auth-snap-requests.ts"],"names":[],"mappings":";;;AAMA,MAAM,MAAM,GAAG,oCAA8C,CAAC;AAE9D;;;;GAIG;AACH,SAAgB,0BAA0B;IACxC,OAAO;QACL,MAAM;QACN,MAAM,EAAE,EAAE;QACV,OAAO,EAAE,cAAqB;QAC9B,OAAO,EAAE;YACP,MAAM,EAAE,cAAc;SACvB;KACF,CAAC;AACJ,CAAC;AATD,gEASC;AAED;;;;;GAKG;AACH,SAAgB,4BAA4B,CAC1C,OAA6B;IAE7B,OAAO;QACL,MAAM;QACN,MAAM,EAAE,EAAE;QACV,OAAO,EAAE,cAAqB;QAC9B,OAAO,EAAE;YACP,MAAM,EAAE,aAAa;YACrB,MAAM,EAAE,EAAE,OAAO,EAAE;SACpB;KACF,CAAC;AACJ,CAAC;AAZD,oEAYC","sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport type { HandleSnapRequest } from '@metamask/snaps-controllers';\nimport type { SnapId } from '@metamask/snaps-sdk';\n\ntype SnapRPCRequest = Parameters<HandleSnapRequest['handler']>[0];\n\nconst snapId = 'npm:@metamask/message-signing-snap' as SnapId;\n\n/**\n * Constructs Request to Message Signing Snap to get Public Key\n *\n * @returns Snap Public Key Request\n */\nexport function createSnapPublicKeyRequest(): SnapRPCRequest {\n return {\n snapId,\n origin: '',\n handler: 'onRpcRequest' as any,\n request: {\n method: 'getPublicKey',\n },\n };\n}\n\n/**\n * Constructs Request to get Message Signing Snap to sign a message.\n *\n * @param message - message to sign\n * @returns Snap Sign Message Request\n */\nexport function createSnapSignMessageRequest(\n message: `metamask:${string}`,\n): SnapRPCRequest {\n return {\n snapId,\n origin: '',\n handler: 'onRpcRequest' as any,\n request: {\n method: 'signMessage',\n params: { message },\n },\n };\n}\n"]}
|
|
@@ -7,7 +7,7 @@ const snapId = 'npm:@metamask/message-signing-snap';
|
|
|
7
7
|
export function createSnapPublicKeyRequest() {
|
|
8
8
|
return {
|
|
9
9
|
snapId,
|
|
10
|
-
origin: '
|
|
10
|
+
origin: '',
|
|
11
11
|
handler: 'onRpcRequest',
|
|
12
12
|
request: {
|
|
13
13
|
method: 'getPublicKey',
|
|
@@ -23,7 +23,7 @@ export function createSnapPublicKeyRequest() {
|
|
|
23
23
|
export function createSnapSignMessageRequest(message) {
|
|
24
24
|
return {
|
|
25
25
|
snapId,
|
|
26
|
-
origin: '
|
|
26
|
+
origin: '',
|
|
27
27
|
handler: 'onRpcRequest',
|
|
28
28
|
request: {
|
|
29
29
|
method: 'signMessage',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-snap-requests.mjs","sourceRoot":"","sources":["../../../src/controllers/authentication/auth-snap-requests.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,GAAG,oCAA8C,CAAC;AAE9D;;;;GAIG;AACH,MAAM,UAAU,0BAA0B;IACxC,OAAO;QACL,MAAM;QACN,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"auth-snap-requests.mjs","sourceRoot":"","sources":["../../../src/controllers/authentication/auth-snap-requests.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,GAAG,oCAA8C,CAAC;AAE9D;;;;GAIG;AACH,MAAM,UAAU,0BAA0B;IACxC,OAAO;QACL,MAAM;QACN,MAAM,EAAE,EAAE;QACV,OAAO,EAAE,cAAqB;QAC9B,OAAO,EAAE;YACP,MAAM,EAAE,cAAc;SACvB;KACF,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,4BAA4B,CAC1C,OAA6B;IAE7B,OAAO;QACL,MAAM;QACN,MAAM,EAAE,EAAE;QACV,OAAO,EAAE,cAAqB;QAC9B,OAAO,EAAE;YACP,MAAM,EAAE,aAAa;YACrB,MAAM,EAAE,EAAE,OAAO,EAAE;SACpB;KACF,CAAC;AACJ,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport type { HandleSnapRequest } from '@metamask/snaps-controllers';\nimport type { SnapId } from '@metamask/snaps-sdk';\n\ntype SnapRPCRequest = Parameters<HandleSnapRequest['handler']>[0];\n\nconst snapId = 'npm:@metamask/message-signing-snap' as SnapId;\n\n/**\n * Constructs Request to Message Signing Snap to get Public Key\n *\n * @returns Snap Public Key Request\n */\nexport function createSnapPublicKeyRequest(): SnapRPCRequest {\n return {\n snapId,\n origin: '',\n handler: 'onRpcRequest' as any,\n request: {\n method: 'getPublicKey',\n },\n };\n}\n\n/**\n * Constructs Request to get Message Signing Snap to sign a message.\n *\n * @param message - message to sign\n * @returns Snap Sign Message Request\n */\nexport function createSnapSignMessageRequest(\n message: `metamask:${string}`,\n): SnapRPCRequest {\n return {\n snapId,\n origin: '',\n handler: 'onRpcRequest' as any,\n request: {\n method: 'signMessage',\n params: { message },\n },\n };\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask-previews/profile-sync-controller",
|
|
3
|
-
"version": "11.0.0-preview-
|
|
3
|
+
"version": "11.0.0-preview-0a8680e7",
|
|
4
4
|
"description": "The profile sync helps developers synchronize data across multiple clients and devices in a privacy-preserving way. All data saved in the user storage database is encrypted client-side to preserve privacy. The user storage provides a modular design, giving developers the flexibility to construct and manage their storage spaces in a way that best suits their needs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"MetaMask",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"@lavamoat/preinstall-always-fail": "^2.1.0",
|
|
116
116
|
"@metamask/accounts-controller": "^27.0.0",
|
|
117
117
|
"@metamask/auto-changelog": "^3.4.4",
|
|
118
|
-
"@metamask/keyring-controller": "^21.0.
|
|
118
|
+
"@metamask/keyring-controller": "^21.0.1",
|
|
119
119
|
"@metamask/keyring-internal-api": "^6.0.1",
|
|
120
120
|
"@metamask/network-controller": "^23.2.0",
|
|
121
121
|
"@metamask/providers": "^18.1.1",
|