Skip to content

Commit

Permalink
feat: removed node dependancy from profile-sync-sdk (#4539)
Browse files Browse the repository at this point in the history
## Explanation

Removed NodeJs dependency that was breaking the SDK usage on the client
  • Loading branch information
dovydas55 authored Jul 18, 2024
1 parent 1edd3e8 commit f0530bb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion packages/profile-sync-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
"@metamask/base-controller": "^6.0.1",
"@metamask/snaps-controllers": "^8.1.1",
"@metamask/snaps-sdk": "^4.2.0",
"@metamask/snaps-utils": "^7.4.0",
"@noble/ciphers": "^0.5.2",
"@noble/hashes": "^1.4.0",
"immer": "^9.0.6",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import type { HandleSnapRequest } from '@metamask/snaps-controllers';
import type { SnapId } from '@metamask/snaps-sdk';
import { HandlerType } from '@metamask/snaps-utils';

type SnapRPCRequest = Parameters<HandleSnapRequest['handler']>[0];

Expand All @@ -15,7 +15,7 @@ export function createSnapPublicKeyRequest(): SnapRPCRequest {
return {
snapId,
origin: '',
handler: HandlerType.OnRpcRequest,
handler: 'onRpcRequest' as any,
request: {
method: 'getPublicKey',
},
Expand All @@ -34,7 +34,7 @@ export function createSnapSignMessageRequest(
return {
snapId,
origin: '',
handler: HandlerType.OnRpcRequest,
handler: 'onRpcRequest' as any,
request: {
method: 'signMessage',
params: { message },
Expand Down
1 change: 0 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3527,7 +3527,6 @@ __metadata:
"@metamask/base-controller": "npm:^6.0.1"
"@metamask/snaps-controllers": "npm:^8.1.1"
"@metamask/snaps-sdk": "npm:^4.2.0"
"@metamask/snaps-utils": "npm:^7.4.0"
"@noble/ciphers": "npm:^0.5.2"
"@noble/hashes": "npm:^1.4.0"
"@types/jest": "npm:^27.4.1"
Expand Down

0 comments on commit f0530bb

Please sign in to comment.