Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion jest.config.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
* https://jestjs.io/docs/configuration
*/

const ESM_DEPENDENCIES_TO_TRANSPILE = ['@metamask/utils'];
const ESM_DEPENDENCIES_TO_TRANSPILE = [
'@metamask/cryptography',
'@metamask/utils',
];

module.exports = {
// All imported modules in your tests should be mocked automatically
Expand Down Expand Up @@ -114,6 +117,7 @@ module.exports = {
],
'^@metamask/utils$': ['@metamask/utils'],
'^@metamask/utils/node$': ['@metamask/utils/node'],
'^@metamask/cryptography/(.+)$': ['@metamask/cryptography/$1'],
'^@metamask/(.+)/node$': ['<rootDir>/../$1/src/node'],
'^@metamask/(.+)/jsx': ['<rootDir>/../$1/src/jsx'],
'^@metamask/(.+)$': [
Expand Down
1 change: 1 addition & 0 deletions packages/snaps-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
"dependencies": {
"@babel/core": "^7.23.2",
"@babel/types": "^7.23.0",
"@metamask/cryptography": "^1.1.2",
"@metamask/key-tree": "^10.1.1",
"@metamask/messenger": "^2.0.0",
"@metamask/permission-controller": "^13.1.1",
Expand Down
3 changes: 2 additions & 1 deletion packages/snaps-utils/src/checksum.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { assert, concatBytes, sha256 } from '@metamask/utils';
import { sha256 } from '@metamask/cryptography/sha';
import { assert, concatBytes } from '@metamask/utils';

import { getBytes } from './bytes';
import type { VirtualFile } from './virtual-file';
Expand Down
8 changes: 8 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3394,6 +3394,13 @@ __metadata:
languageName: unknown
linkType: soft

"@metamask/cryptography@npm:^1.1.2":
version: 1.1.2
resolution: "@metamask/cryptography@npm:1.1.2"
checksum: 10/567ab4d7a27bbf1be129a120bd0d6d1dfc1677ddc36c2e81c259bebd7824b493fbb67127b585d57f94d98463daa7f7a43296db8ff2d9ed85f440ecc7e9c83dc9
languageName: node
linkType: hard

"@metamask/dialog-example-snap@workspace:^, @metamask/dialog-example-snap@workspace:packages/examples/packages/dialogs":
version: 0.0.0-use.local
resolution: "@metamask/dialog-example-snap@workspace:packages/examples/packages/dialogs"
Expand Down Expand Up @@ -4842,6 +4849,7 @@ __metadata:
"@babel/types": "npm:^7.23.0"
"@lavamoat/allow-scripts": "npm:^4.0.0"
"@metamask/auto-changelog": "npm:^6.2.1"
"@metamask/cryptography": "npm:^1.1.2"
"@metamask/key-tree": "npm:^10.1.1"
"@metamask/messenger": "npm:^2.0.0"
"@metamask/permission-controller": "npm:^13.1.1"
Expand Down
Loading