1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 01:47:00 +01:00

Use separate versions for Flask and Stable snaps (#18875)

* Use separate versions for Flask and Stable snaps

* Update LM policy override

* Add deps to depcheck

* Improve import
This commit is contained in:
Frederik Bolding 2023-05-03 15:16:43 +02:00 committed by GitHub
parent 1d80029691
commit 910b9e713f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 358 additions and 60 deletions

View File

@ -10,6 +10,14 @@ ignores:
- '@fortawesome/fontawesome-free' - '@fortawesome/fontawesome-free'
- 'punycode' - 'punycode'
#
# snaps flask deps
#
- '@metamask/rpc-methods-flask'
- '@metamask/snaps-controllers-flask'
- '@metamask/snaps-ui-flask'
- '@metamask/snaps-utils-flask'
# #
# dev deps # dev deps
# #

View File

@ -1,5 +1,5 @@
///: BEGIN:ONLY_INCLUDE_IN(snaps) ///: BEGIN:ONLY_INCLUDE_IN(snaps)
import { handlers as permittedSnapMethods } from '@metamask/rpc-methods/dist/permitted'; import { permittedMethods as permittedSnapMethods } from '@metamask/rpc-methods';
///: END:ONLY_INCLUDE_IN ///: END:ONLY_INCLUDE_IN
import { permissionRpcMethods } from '@metamask/permission-controller'; import { permissionRpcMethods } from '@metamask/permission-controller';
import { selectHooks } from '@metamask/rpc-methods/dist/utils'; import { selectHooks } from '@metamask/rpc-methods/dist/utils';

View File

@ -27,6 +27,7 @@ const Sqrl = require('squirrelly');
const lavapack = require('@lavamoat/lavapack'); const lavapack = require('@lavamoat/lavapack');
const lavamoatBrowserify = require('lavamoat-browserify'); const lavamoatBrowserify = require('lavamoat-browserify');
const terser = require('terser'); const terser = require('terser');
const moduleResolver = require('babel-plugin-module-resolver');
const bifyModuleGroups = require('bify-module-groups'); const bifyModuleGroups = require('bify-module-groups');
@ -922,6 +923,9 @@ function setupBundlerDefaults(
const { bundlerOpts } = buildConfiguration; const { bundlerOpts } = buildConfiguration;
const extensions = ['.js', '.ts', '.tsx']; const extensions = ['.js', '.ts', '.tsx'];
const isSnapsFlask =
features.active.has('snaps') && features.active.has('build-flask');
Object.assign(bundlerOpts, { Object.assign(bundlerOpts, {
// Source transforms // Source transforms
transform: [ transform: [
@ -931,7 +935,25 @@ function setupBundlerDefaults(
[ [
babelify, babelify,
// Run TypeScript files through Babel // Run TypeScript files through Babel
{ extensions }, {
extensions,
plugins: isSnapsFlask
? [
[
moduleResolver,
{
alias: {
'@metamask/snaps-controllers':
'@metamask/snaps-controllers-flask',
'@metamask/snaps-ui': '@metamask/snaps-ui-flask',
'@metamask/snaps-utils': '@metamask/snaps-utils-flask',
'@metamask/rpc-methods': '@metamask/rpc-methods-flask',
},
},
],
]
: [],
},
], ],
// Inline `fs.readFileSync` files // Inline `fs.readFileSync` files
brfs, brfs,

View File

@ -783,11 +783,6 @@
"browserify>insert-module-globals>is-buffer": true "browserify>insert-module-globals>is-buffer": true
} }
}, },
"@metamask/controllers>nanoid": {
"globals": {
"crypto.getRandomValues": true
}
},
"@metamask/controllers>web3": { "@metamask/controllers>web3": {
"globals": { "globals": {
"XMLHttpRequest": true "XMLHttpRequest": true
@ -1320,6 +1315,11 @@
"superstruct": true "superstruct": true
} }
}, },
"@metamask/rpc-methods-flask>nanoid": {
"globals": {
"crypto.getRandomValues": true
}
},
"@metamask/rpc-methods>@metamask/browser-passworder": { "@metamask/rpc-methods>@metamask/browser-passworder": {
"globals": { "globals": {
"btoa": true, "btoa": true,
@ -1427,6 +1427,11 @@
"setTimeout": true "setTimeout": true
} }
}, },
"@metamask/snaps-controllers-flask>nanoid": {
"globals": {
"crypto.getRandomValues": true
}
},
"@metamask/snaps-controllers>nanoid": { "@metamask/snaps-controllers>nanoid": {
"globals": { "globals": {
"crypto.getRandomValues": true "crypto.getRandomValues": true

View File

@ -783,11 +783,6 @@
"browserify>insert-module-globals>is-buffer": true "browserify>insert-module-globals>is-buffer": true
} }
}, },
"@metamask/controllers>nanoid": {
"globals": {
"crypto.getRandomValues": true
}
},
"@metamask/controllers>web3": { "@metamask/controllers>web3": {
"globals": { "globals": {
"XMLHttpRequest": true "XMLHttpRequest": true
@ -1482,6 +1477,25 @@
"superstruct": true "superstruct": true
} }
}, },
"@metamask/rpc-methods-flask": {
"packages": {
"@metamask/key-tree": true,
"@metamask/key-tree>@noble/hashes": true,
"@metamask/permission-controller": true,
"@metamask/rpc-methods-flask>nanoid": true,
"@metamask/rpc-methods>@metamask/browser-passworder": true,
"@metamask/snaps-ui": true,
"@metamask/snaps-utils": true,
"@metamask/utils": true,
"eth-rpc-errors": true,
"superstruct": true
}
},
"@metamask/rpc-methods-flask>nanoid": {
"globals": {
"crypto.getRandomValues": true
}
},
"@metamask/rpc-methods>@metamask/browser-passworder": { "@metamask/rpc-methods>@metamask/browser-passworder": {
"globals": { "globals": {
"btoa": true, "btoa": true,
@ -1589,7 +1603,7 @@
"setTimeout": true "setTimeout": true
} }
}, },
"@metamask/snaps-controllers": { "@metamask/snaps-controllers-flask": {
"globals": { "globals": {
"URL": true, "URL": true,
"chrome.offscreen.createDocument": true, "chrome.offscreen.createDocument": true,
@ -1605,10 +1619,10 @@
"@metamask/post-message-stream": true, "@metamask/post-message-stream": true,
"@metamask/providers>@metamask/object-multiplex": true, "@metamask/providers>@metamask/object-multiplex": true,
"@metamask/rpc-methods": true, "@metamask/rpc-methods": true,
"@metamask/snaps-controllers-flask>concat-stream": true,
"@metamask/snaps-controllers-flask>nanoid": true,
"@metamask/snaps-controllers>@xstate/fsm": true, "@metamask/snaps-controllers>@xstate/fsm": true,
"@metamask/snaps-controllers>concat-stream": true,
"@metamask/snaps-controllers>gunzip-maybe": true, "@metamask/snaps-controllers>gunzip-maybe": true,
"@metamask/snaps-controllers>nanoid": true,
"@metamask/snaps-controllers>readable-web-to-node-stream": true, "@metamask/snaps-controllers>readable-web-to-node-stream": true,
"@metamask/snaps-controllers>tar-stream": true, "@metamask/snaps-controllers>tar-stream": true,
"@metamask/snaps-utils": true, "@metamask/snaps-utils": true,
@ -1621,14 +1635,14 @@
"pump": true "pump": true
} }
}, },
"@metamask/snaps-controllers>concat-stream": { "@metamask/snaps-controllers-flask>concat-stream": {
"packages": { "packages": {
"@metamask/snaps-controllers>concat-stream>readable-stream": true, "@metamask/snaps-controllers-flask>concat-stream>readable-stream": true,
"browserify>buffer": true, "browserify>buffer": true,
"pumpify>inherits": true "pumpify>inherits": true
} }
}, },
"@metamask/snaps-controllers>concat-stream>readable-stream": { "@metamask/snaps-controllers-flask>concat-stream>readable-stream": {
"packages": { "packages": {
"@storybook/api>util-deprecate": true, "@storybook/api>util-deprecate": true,
"browserify>browser-resolve": true, "browserify>browser-resolve": true,
@ -1639,6 +1653,11 @@
"pumpify>inherits": true "pumpify>inherits": true
} }
}, },
"@metamask/snaps-controllers-flask>nanoid": {
"globals": {
"crypto.getRandomValues": true
}
},
"@metamask/snaps-controllers>gunzip-maybe": { "@metamask/snaps-controllers>gunzip-maybe": {
"packages": { "packages": {
"@metamask/snaps-controllers>gunzip-maybe>browserify-zlib": true, "@metamask/snaps-controllers>gunzip-maybe>browserify-zlib": true,
@ -1773,6 +1792,12 @@
"superstruct": true "superstruct": true
} }
}, },
"@metamask/snaps-ui-flask": {
"packages": {
"@metamask/utils": true,
"superstruct": true
}
},
"@metamask/snaps-utils": { "@metamask/snaps-utils": {
"globals": { "globals": {
"TextDecoder": true, "TextDecoder": true,
@ -1795,6 +1820,28 @@
"superstruct": true "superstruct": true
} }
}, },
"@metamask/snaps-utils-flask": {
"globals": {
"TextDecoder": true,
"URL": true,
"console.error": true,
"console.log": true,
"console.warn": true,
"document.body.appendChild": true,
"document.createElement": true
},
"packages": {
"@metamask/key-tree>@noble/hashes": true,
"@metamask/key-tree>@scure/base": true,
"@metamask/snaps-utils>cron-parser": true,
"@metamask/snaps-utils>fast-json-stable-stringify": true,
"@metamask/snaps-utils>rfdc": true,
"@metamask/snaps-utils>validate-npm-package-name": true,
"@metamask/utils": true,
"semver": true,
"superstruct": true
}
},
"@metamask/snaps-utils>@metamask/snaps-registry": { "@metamask/snaps-utils>@metamask/snaps-registry": {
"packages": { "packages": {
"@metamask/key-tree>@noble/secp256k1": true, "@metamask/key-tree>@noble/secp256k1": true,

View File

@ -783,11 +783,6 @@
"browserify>insert-module-globals>is-buffer": true "browserify>insert-module-globals>is-buffer": true
} }
}, },
"@metamask/controllers>nanoid": {
"globals": {
"crypto.getRandomValues": true
}
},
"@metamask/controllers>web3": { "@metamask/controllers>web3": {
"globals": { "globals": {
"XMLHttpRequest": true "XMLHttpRequest": true
@ -1482,6 +1477,25 @@
"superstruct": true "superstruct": true
} }
}, },
"@metamask/rpc-methods-flask": {
"packages": {
"@metamask/key-tree": true,
"@metamask/key-tree>@noble/hashes": true,
"@metamask/permission-controller": true,
"@metamask/rpc-methods-flask>nanoid": true,
"@metamask/rpc-methods>@metamask/browser-passworder": true,
"@metamask/snaps-ui": true,
"@metamask/snaps-utils": true,
"@metamask/utils": true,
"eth-rpc-errors": true,
"superstruct": true
}
},
"@metamask/rpc-methods-flask>nanoid": {
"globals": {
"crypto.getRandomValues": true
}
},
"@metamask/rpc-methods>@metamask/browser-passworder": { "@metamask/rpc-methods>@metamask/browser-passworder": {
"globals": { "globals": {
"btoa": true, "btoa": true,
@ -1589,7 +1603,7 @@
"setTimeout": true "setTimeout": true
} }
}, },
"@metamask/snaps-controllers": { "@metamask/snaps-controllers-flask": {
"globals": { "globals": {
"URL": true, "URL": true,
"chrome.offscreen.createDocument": true, "chrome.offscreen.createDocument": true,
@ -1605,10 +1619,10 @@
"@metamask/post-message-stream": true, "@metamask/post-message-stream": true,
"@metamask/providers>@metamask/object-multiplex": true, "@metamask/providers>@metamask/object-multiplex": true,
"@metamask/rpc-methods": true, "@metamask/rpc-methods": true,
"@metamask/snaps-controllers-flask>concat-stream": true,
"@metamask/snaps-controllers-flask>nanoid": true,
"@metamask/snaps-controllers>@xstate/fsm": true, "@metamask/snaps-controllers>@xstate/fsm": true,
"@metamask/snaps-controllers>concat-stream": true,
"@metamask/snaps-controllers>gunzip-maybe": true, "@metamask/snaps-controllers>gunzip-maybe": true,
"@metamask/snaps-controllers>nanoid": true,
"@metamask/snaps-controllers>readable-web-to-node-stream": true, "@metamask/snaps-controllers>readable-web-to-node-stream": true,
"@metamask/snaps-controllers>tar-stream": true, "@metamask/snaps-controllers>tar-stream": true,
"@metamask/snaps-utils": true, "@metamask/snaps-utils": true,
@ -1621,14 +1635,14 @@
"pump": true "pump": true
} }
}, },
"@metamask/snaps-controllers>concat-stream": { "@metamask/snaps-controllers-flask>concat-stream": {
"packages": { "packages": {
"@metamask/snaps-controllers>concat-stream>readable-stream": true, "@metamask/snaps-controllers-flask>concat-stream>readable-stream": true,
"browserify>buffer": true, "browserify>buffer": true,
"pumpify>inherits": true "pumpify>inherits": true
} }
}, },
"@metamask/snaps-controllers>concat-stream>readable-stream": { "@metamask/snaps-controllers-flask>concat-stream>readable-stream": {
"packages": { "packages": {
"@storybook/api>util-deprecate": true, "@storybook/api>util-deprecate": true,
"browserify>browser-resolve": true, "browserify>browser-resolve": true,
@ -1639,6 +1653,11 @@
"pumpify>inherits": true "pumpify>inherits": true
} }
}, },
"@metamask/snaps-controllers-flask>nanoid": {
"globals": {
"crypto.getRandomValues": true
}
},
"@metamask/snaps-controllers>gunzip-maybe": { "@metamask/snaps-controllers>gunzip-maybe": {
"packages": { "packages": {
"@metamask/snaps-controllers>gunzip-maybe>browserify-zlib": true, "@metamask/snaps-controllers>gunzip-maybe>browserify-zlib": true,
@ -1773,6 +1792,12 @@
"superstruct": true "superstruct": true
} }
}, },
"@metamask/snaps-ui-flask": {
"packages": {
"@metamask/utils": true,
"superstruct": true
}
},
"@metamask/snaps-utils": { "@metamask/snaps-utils": {
"globals": { "globals": {
"TextDecoder": true, "TextDecoder": true,
@ -1795,6 +1820,28 @@
"superstruct": true "superstruct": true
} }
}, },
"@metamask/snaps-utils-flask": {
"globals": {
"TextDecoder": true,
"URL": true,
"console.error": true,
"console.log": true,
"console.warn": true,
"document.body.appendChild": true,
"document.createElement": true
},
"packages": {
"@metamask/key-tree>@noble/hashes": true,
"@metamask/key-tree>@scure/base": true,
"@metamask/snaps-utils>cron-parser": true,
"@metamask/snaps-utils>fast-json-stable-stringify": true,
"@metamask/snaps-utils>rfdc": true,
"@metamask/snaps-utils>validate-npm-package-name": true,
"@metamask/utils": true,
"semver": true,
"superstruct": true
}
},
"@metamask/snaps-utils>@metamask/snaps-registry": { "@metamask/snaps-utils>@metamask/snaps-registry": {
"packages": { "packages": {
"@metamask/key-tree>@noble/secp256k1": true, "@metamask/key-tree>@noble/secp256k1": true,

View File

@ -783,11 +783,6 @@
"browserify>insert-module-globals>is-buffer": true "browserify>insert-module-globals>is-buffer": true
} }
}, },
"@metamask/controllers>nanoid": {
"globals": {
"crypto.getRandomValues": true
}
},
"@metamask/controllers>web3": { "@metamask/controllers>web3": {
"globals": { "globals": {
"XMLHttpRequest": true "XMLHttpRequest": true
@ -1320,6 +1315,11 @@
"superstruct": true "superstruct": true
} }
}, },
"@metamask/rpc-methods-flask>nanoid": {
"globals": {
"crypto.getRandomValues": true
}
},
"@metamask/rpc-methods>@metamask/browser-passworder": { "@metamask/rpc-methods>@metamask/browser-passworder": {
"globals": { "globals": {
"btoa": true, "btoa": true,
@ -1427,6 +1427,11 @@
"setTimeout": true "setTimeout": true
} }
}, },
"@metamask/snaps-controllers-flask>nanoid": {
"globals": {
"crypto.getRandomValues": true
}
},
"@metamask/snaps-controllers>nanoid": { "@metamask/snaps-controllers>nanoid": {
"globals": { "globals": {
"crypto.getRandomValues": true "crypto.getRandomValues": true

View File

@ -123,12 +123,17 @@
"crypto.getRandomValues": true "crypto.getRandomValues": true
} }
}, },
"@metamask/snaps-controllers-flask>nanoid": {
"globals": {
"crypto.getRandomValues": true
}
},
"@metamask/rpc-methods>nanoid": { "@metamask/rpc-methods>nanoid": {
"globals": { "globals": {
"crypto.getRandomValues": true "crypto.getRandomValues": true
} }
}, },
"@metamask/controllers>nanoid": { "@metamask/rpc-methods-flask>nanoid": {
"globals": { "globals": {
"crypto.getRandomValues": true "crypto.getRandomValues": true
} }

View File

@ -1301,6 +1301,122 @@
"gulp-sass>picocolors": true "gulp-sass>picocolors": true
} }
}, },
"babel-plugin-module-resolver": {
"builtin": {
"fs": true,
"path": true
},
"globals": {
"console.warn": true,
"process.cwd": true,
"process.env.NODE_ENV": true
},
"packages": {
"babel-plugin-module-resolver>find-babel-config": true,
"babel-plugin-module-resolver>glob": true,
"babel-plugin-module-resolver>pkg-up": true,
"babel-plugin-module-resolver>reselect": true,
"brfs>resolve": true
}
},
"babel-plugin-module-resolver>find-babel-config": {
"builtin": {
"fs.readFile": true,
"fs.readFileSync": true,
"path.dirname": true,
"path.isAbsolute": true,
"path.join": true
},
"globals": {
"process.cwd": true
},
"packages": {
"depcheck>json5": true,
"nyc>find-up>path-exists": true
}
},
"babel-plugin-module-resolver>glob": {
"builtin": {
"assert": true,
"events.EventEmitter": true,
"fs": true,
"path.isAbsolute": true,
"path.join": true,
"path.resolve": true,
"util": true
},
"globals": {
"console.error": true,
"process.cwd": true,
"process.nextTick": true,
"process.platform": true
},
"packages": {
"babel-plugin-module-resolver>glob>minimatch": true,
"nyc>glob>fs.realpath": true,
"nyc>glob>inflight": true,
"pump>once": true,
"pumpify>inherits": true
}
},
"babel-plugin-module-resolver>glob>minimatch": {
"globals": {
"console.error": true,
"process": true
},
"packages": {
"babel-plugin-module-resolver>glob>minimatch>brace-expansion": true
}
},
"babel-plugin-module-resolver>glob>minimatch>brace-expansion": {
"packages": {
"stylelint>balanced-match": true
}
},
"babel-plugin-module-resolver>pkg-up": {
"packages": {
"babel-plugin-module-resolver>pkg-up>find-up": true
}
},
"babel-plugin-module-resolver>pkg-up>find-up": {
"builtin": {
"path.dirname": true,
"path.join": true,
"path.parse": true,
"path.resolve": true
},
"packages": {
"babel-plugin-module-resolver>pkg-up>find-up>locate-path": true
}
},
"babel-plugin-module-resolver>pkg-up>find-up>locate-path": {
"builtin": {
"path.resolve": true
},
"globals": {
"process.cwd": true
},
"packages": {
"babel-plugin-module-resolver>pkg-up>find-up>locate-path>p-locate": true,
"babel-plugin-module-resolver>pkg-up>find-up>locate-path>path-exists": true
}
},
"babel-plugin-module-resolver>pkg-up>find-up>locate-path>p-locate": {
"packages": {
"babel-plugin-module-resolver>pkg-up>find-up>locate-path>p-locate>p-limit": true
}
},
"babel-plugin-module-resolver>pkg-up>find-up>locate-path>p-locate>p-limit": {
"packages": {
"nyc>find-up>locate-path>p-locate>p-limit>p-try": true
}
},
"babel-plugin-module-resolver>pkg-up>find-up>locate-path>path-exists": {
"builtin": {
"fs.access": true,
"fs.accessSync": true
}
},
"babelify": { "babelify": {
"builtin": { "builtin": {
"path.extname": true, "path.extname": true,
@ -1419,7 +1535,7 @@
"process.getuid": true, "process.getuid": true,
"process.nextTick": true, "process.nextTick": true,
"process.platform": true, "process.platform": true,
"process.versions": true "process.versions.pnp": true
}, },
"packages": { "packages": {
"brfs>resolve>path-parse": true, "brfs>resolve>path-parse": true,

View File

@ -256,13 +256,17 @@
"@metamask/providers": "^10.2.1", "@metamask/providers": "^10.2.1",
"@metamask/rate-limit-controller": "^2.0.0", "@metamask/rate-limit-controller": "^2.0.0",
"@metamask/rpc-methods": "^0.32.2", "@metamask/rpc-methods": "^0.32.2",
"@metamask/rpc-methods-flask": "npm:@metamask/rpc-methods@0.32.2",
"@metamask/safe-event-emitter": "^2.0.0", "@metamask/safe-event-emitter": "^2.0.0",
"@metamask/scure-bip39": "^2.0.3", "@metamask/scure-bip39": "^2.0.3",
"@metamask/slip44": "^3.0.0", "@metamask/slip44": "^3.0.0",
"@metamask/smart-transactions-controller": "^3.1.0", "@metamask/smart-transactions-controller": "^3.1.0",
"@metamask/snaps-controllers": "^0.32.2", "@metamask/snaps-controllers": "^0.32.2",
"@metamask/snaps-controllers-flask": "npm:@metamask/snaps-controllers@0.32.2",
"@metamask/snaps-ui": "^0.32.2", "@metamask/snaps-ui": "^0.32.2",
"@metamask/snaps-ui-flask": "npm:@metamask/snaps-ui@0.32.2",
"@metamask/snaps-utils": "^0.32.2", "@metamask/snaps-utils": "^0.32.2",
"@metamask/snaps-utils-flask": "npm:@metamask/snaps-utils@0.32.2",
"@metamask/subject-metadata-controller": "^2.0.0", "@metamask/subject-metadata-controller": "^2.0.0",
"@metamask/swappable-obj-proxy": "^2.1.0", "@metamask/swappable-obj-proxy": "^2.1.0",
"@metamask/utils": "^5.0.0", "@metamask/utils": "^5.0.0",
@ -429,6 +433,7 @@
"@typescript-eslint/parser": "^5.30.7", "@typescript-eslint/parser": "^5.30.7",
"@whitespace/storybook-addon-html": "^5.1.1", "@whitespace/storybook-addon-html": "^5.1.1",
"addons-linter": "^5.2.0", "addons-linter": "^5.2.0",
"babel-plugin-module-resolver": "^5.0.0",
"babelify": "^10.0.0", "babelify": "^10.0.0",
"bify-module-groups": "^2.0.0", "bify-module-groups": "^2.0.0",
"brfs": "^2.0.2", "brfs": "^2.0.2",

View File

@ -4272,7 +4272,7 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@metamask/rpc-methods@npm:^0.32.2": "@metamask/rpc-methods-flask@npm:@metamask/rpc-methods@0.32.2, @metamask/rpc-methods@npm:^0.32.2":
version: 0.32.2 version: 0.32.2
resolution: "@metamask/rpc-methods@npm:0.32.2" resolution: "@metamask/rpc-methods@npm:0.32.2"
dependencies: dependencies:
@ -4334,7 +4334,7 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@metamask/snaps-controllers@npm:^0.32.2": "@metamask/snaps-controllers-flask@npm:@metamask/snaps-controllers@0.32.2, @metamask/snaps-controllers@npm:^0.32.2":
version: 0.32.2 version: 0.32.2
resolution: "@metamask/snaps-controllers@npm:0.32.2" resolution: "@metamask/snaps-controllers@npm:0.32.2"
dependencies: dependencies:
@ -4396,7 +4396,7 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@metamask/snaps-ui@npm:^0.32.2": "@metamask/snaps-ui-flask@npm:@metamask/snaps-ui@0.32.2, @metamask/snaps-ui@npm:^0.32.2":
version: 0.32.2 version: 0.32.2
resolution: "@metamask/snaps-ui@npm:0.32.2" resolution: "@metamask/snaps-ui@npm:0.32.2"
dependencies: dependencies:
@ -4406,7 +4406,7 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@metamask/snaps-utils@npm:^0.32.2": "@metamask/snaps-utils-flask@npm:@metamask/snaps-utils@0.32.2, @metamask/snaps-utils@npm:^0.32.2":
version: 0.32.2 version: 0.32.2
resolution: "@metamask/snaps-utils@npm:0.32.2" resolution: "@metamask/snaps-utils@npm:0.32.2"
dependencies: dependencies:
@ -9941,6 +9941,19 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"babel-plugin-module-resolver@npm:^5.0.0":
version: 5.0.0
resolution: "babel-plugin-module-resolver@npm:5.0.0"
dependencies:
find-babel-config: ^2.0.0
glob: ^8.0.3
pkg-up: ^3.1.0
reselect: ^4.1.7
resolve: ^1.22.1
checksum: d6880e49fc8e7bac509a2c183b4303ee054a47a80032a59a6f7844bb468ebe5e333b5dc5378443afdab5839e2da2b31a6c8d9a985a0047cd076b82bb9161cc78
languageName: node
linkType: hard
"babel-plugin-named-exports-order@npm:^0.0.2": "babel-plugin-named-exports-order@npm:^0.0.2":
version: 0.0.2 version: 0.0.2
resolution: "babel-plugin-named-exports-order@npm:0.0.2" resolution: "babel-plugin-named-exports-order@npm:0.0.2"
@ -16848,6 +16861,16 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"find-babel-config@npm:^2.0.0":
version: 2.0.0
resolution: "find-babel-config@npm:2.0.0"
dependencies:
json5: ^2.1.1
path-exists: ^4.0.0
checksum: d110308b02fe6a6411a0cfb7fd50af6740fbf5093eada3d6ddacf99b07fc8eea4aa3475356484710a0032433029a21ce733bb3ef88fda1d6e35c29a3e4983014
languageName: node
linkType: hard
"find-cache-dir@npm:^2.0.0, find-cache-dir@npm:^2.1.0": "find-cache-dir@npm:^2.0.0, find-cache-dir@npm:^2.1.0":
version: 2.1.0 version: 2.1.0
resolution: "find-cache-dir@npm:2.1.0" resolution: "find-cache-dir@npm:2.1.0"
@ -17899,7 +17922,7 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"glob@npm:^8.0.1, glob@npm:^8.1.0": "glob@npm:^8.0.1, glob@npm:^8.0.3, glob@npm:^8.1.0":
version: 8.1.0 version: 8.1.0
resolution: "glob@npm:8.1.0" resolution: "glob@npm:8.1.0"
dependencies: dependencies:
@ -19788,12 +19811,12 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"is-core-module@npm:^2.4.0, is-core-module@npm:^2.8.1, is-core-module@npm:^2.9.0": "is-core-module@npm:^2.12.0, is-core-module@npm:^2.4.0, is-core-module@npm:^2.8.1, is-core-module@npm:^2.9.0":
version: 2.9.0 version: 2.12.0
resolution: "is-core-module@npm:2.9.0" resolution: "is-core-module@npm:2.12.0"
dependencies: dependencies:
has: ^1.0.3 has: ^1.0.3
checksum: b27034318b4b462f1c8f1dfb1b32baecd651d891a4e2d1922135daeff4141dfced2b82b07aef83ef54275c4a3526aa38da859223664d0868ca24182badb784ce checksum: f7f7eb2ab71fd769ee9fb2385c095d503aa4b5ce0028c04557de03f1e67a87c85e5bac1f215945fc3c955867a139a415a3ec4c4234a0bffdf715232660f440a6
languageName: node languageName: node
linkType: hard linkType: hard
@ -22165,7 +22188,7 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"json5@npm:^2.1.2, json5@npm:^2.1.3, json5@npm:^2.2.2, json5@npm:^2.2.3": "json5@npm:^2.1.1, json5@npm:^2.1.2, json5@npm:^2.1.3, json5@npm:^2.2.2, json5@npm:^2.2.3":
version: 2.2.3 version: 2.2.3
resolution: "json5@npm:2.2.3" resolution: "json5@npm:2.2.3"
bin: bin:
@ -23967,13 +23990,17 @@ __metadata:
"@metamask/providers": ^10.2.1 "@metamask/providers": ^10.2.1
"@metamask/rate-limit-controller": ^2.0.0 "@metamask/rate-limit-controller": ^2.0.0
"@metamask/rpc-methods": ^0.32.2 "@metamask/rpc-methods": ^0.32.2
"@metamask/rpc-methods-flask": "npm:@metamask/rpc-methods@0.32.2"
"@metamask/safe-event-emitter": ^2.0.0 "@metamask/safe-event-emitter": ^2.0.0
"@metamask/scure-bip39": ^2.0.3 "@metamask/scure-bip39": ^2.0.3
"@metamask/slip44": ^3.0.0 "@metamask/slip44": ^3.0.0
"@metamask/smart-transactions-controller": ^3.1.0 "@metamask/smart-transactions-controller": ^3.1.0
"@metamask/snaps-controllers": ^0.32.2 "@metamask/snaps-controllers": ^0.32.2
"@metamask/snaps-controllers-flask": "npm:@metamask/snaps-controllers@0.32.2"
"@metamask/snaps-ui": ^0.32.2 "@metamask/snaps-ui": ^0.32.2
"@metamask/snaps-ui-flask": "npm:@metamask/snaps-ui@0.32.2"
"@metamask/snaps-utils": ^0.32.2 "@metamask/snaps-utils": ^0.32.2
"@metamask/snaps-utils-flask": "npm:@metamask/snaps-utils@0.32.2"
"@metamask/subject-metadata-controller": ^2.0.0 "@metamask/subject-metadata-controller": ^2.0.0
"@metamask/swappable-obj-proxy": ^2.1.0 "@metamask/swappable-obj-proxy": ^2.1.0
"@metamask/test-dapp": ^6.0.0 "@metamask/test-dapp": ^6.0.0
@ -24041,6 +24068,7 @@ __metadata:
"@zxing/library": 0.8.0 "@zxing/library": 0.8.0
addons-linter: ^5.2.0 addons-linter: ^5.2.0
await-semaphore: ^0.1.1 await-semaphore: ^0.1.1
babel-plugin-module-resolver: ^5.0.0
babelify: ^10.0.0 babelify: ^10.0.0
base32-encode: ^1.2.0 base32-encode: ^1.2.0
base64-js: ^1.5.1 base64-js: ^1.5.1
@ -26984,6 +27012,15 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"pkg-up@npm:^3.1.0":
version: 3.1.0
resolution: "pkg-up@npm:3.1.0"
dependencies:
find-up: ^3.0.0
checksum: 5bac346b7c7c903613c057ae3ab722f320716199d753f4a7d053d38f2b5955460f3e6ab73b4762c62fd3e947f58e04f1343e92089e7bb6091c90877406fcd8c8
languageName: node
linkType: hard
"playwright-core@npm:1.29.2, playwright-core@npm:>=1.2.0": "playwright-core@npm:1.29.2, playwright-core@npm:>=1.2.0":
version: 1.29.2 version: 1.29.2
resolution: "playwright-core@npm:1.29.2" resolution: "playwright-core@npm:1.29.2"
@ -29555,10 +29592,10 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"reselect@npm:^4.0.0": "reselect@npm:^4.0.0, reselect@npm:^4.1.7":
version: 4.0.0 version: 4.1.8
resolution: "reselect@npm:4.0.0" resolution: "reselect@npm:4.1.8"
checksum: ac7dfc9ef2cdb42b6fc87a856f3ce904c2e4363a2bc1e6fb7eea5f78902a6f506e4388e6509752984877c6dbfe501100c076671d334799eb5a1bfe9936cb2c12 checksum: a4ac87cedab198769a29be92bc221c32da76cfdad6911eda67b4d3e7136dca86208c3b210e31632eae31ebd2cded18596f0dd230d3ccc9e978df22f233b5583e
languageName: node languageName: node
linkType: hard linkType: hard
@ -29674,16 +29711,16 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"resolve@npm:^1.1.4, resolve@npm:^1.1.5, resolve@npm:^1.1.6, resolve@npm:^1.1.7, resolve@npm:^1.10.0, resolve@npm:^1.10.1, resolve@npm:^1.11.1, resolve@npm:^1.12.0, resolve@npm:^1.14.2, resolve@npm:^1.15.1, resolve@npm:^1.17.0, resolve@npm:^1.18.1, resolve@npm:^1.19.0, resolve@npm:^1.20.0, resolve@npm:^1.21.0, resolve@npm:^1.22.0, resolve@npm:^1.3.2, resolve@npm:^1.4.0": "resolve@npm:^1.1.4, resolve@npm:^1.1.5, resolve@npm:^1.1.6, resolve@npm:^1.1.7, resolve@npm:^1.10.0, resolve@npm:^1.10.1, resolve@npm:^1.11.1, resolve@npm:^1.12.0, resolve@npm:^1.14.2, resolve@npm:^1.15.1, resolve@npm:^1.17.0, resolve@npm:^1.18.1, resolve@npm:^1.19.0, resolve@npm:^1.20.0, resolve@npm:^1.21.0, resolve@npm:^1.22.0, resolve@npm:^1.22.1, resolve@npm:^1.3.2, resolve@npm:^1.4.0":
version: 1.22.1 version: 1.22.3
resolution: "resolve@npm:1.22.1" resolution: "resolve@npm:1.22.3"
dependencies: dependencies:
is-core-module: ^2.9.0 is-core-module: ^2.12.0
path-parse: ^1.0.7 path-parse: ^1.0.7
supports-preserve-symlinks-flag: ^1.0.0 supports-preserve-symlinks-flag: ^1.0.0
bin: bin:
resolve: bin/resolve resolve: bin/resolve
checksum: 07af5fc1e81aa1d866cbc9e9460fbb67318a10fa3c4deadc35c3ad8a898ee9a71a86a65e4755ac3195e0ea0cfbe201eb323ebe655ce90526fd61917313a34e4e checksum: fb834b81348428cb545ff1b828a72ea28feb5a97c026a1cf40aa1008352c72811ff4d4e71f2035273dc536dcfcae20c13604ba6283c612d70fa0b6e44519c374
languageName: node languageName: node
linkType: hard linkType: hard
@ -29707,16 +29744,17 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"resolve@patch:resolve@^1.1.4#~builtin<compat/resolve>, resolve@patch:resolve@^1.1.5#~builtin<compat/resolve>, resolve@patch:resolve@^1.1.6#~builtin<compat/resolve>, resolve@patch:resolve@^1.1.7#~builtin<compat/resolve>, resolve@patch:resolve@^1.10.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.10.1#~builtin<compat/resolve>, resolve@patch:resolve@^1.11.1#~builtin<compat/resolve>, resolve@patch:resolve@^1.12.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.14.2#~builtin<compat/resolve>, resolve@patch:resolve@^1.15.1#~builtin<compat/resolve>, resolve@patch:resolve@^1.17.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.18.1#~builtin<compat/resolve>, resolve@patch:resolve@^1.19.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.20.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.21.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.22.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.3.2#~builtin<compat/resolve>, resolve@patch:resolve@^1.4.0#~builtin<compat/resolve>": ? "resolve@patch:resolve@^1.1.4#~builtin<compat/resolve>, resolve@patch:resolve@^1.1.5#~builtin<compat/resolve>, resolve@patch:resolve@^1.1.6#~builtin<compat/resolve>, resolve@patch:resolve@^1.1.7#~builtin<compat/resolve>, resolve@patch:resolve@^1.10.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.10.1#~builtin<compat/resolve>, resolve@patch:resolve@^1.11.1#~builtin<compat/resolve>, resolve@patch:resolve@^1.12.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.14.2#~builtin<compat/resolve>, resolve@patch:resolve@^1.15.1#~builtin<compat/resolve>, resolve@patch:resolve@^1.17.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.18.1#~builtin<compat/resolve>, resolve@patch:resolve@^1.19.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.20.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.21.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.22.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.22.1#~builtin<compat/resolve>, resolve@patch:resolve@^1.3.2#~builtin<compat/resolve>, resolve@patch:resolve@^1.4.0#~builtin<compat/resolve>"
version: 1.22.1 :
resolution: "resolve@patch:resolve@npm%3A1.22.1#~builtin<compat/resolve>::version=1.22.1&hash=07638b" version: 1.22.3
resolution: "resolve@patch:resolve@npm%3A1.22.3#~builtin<compat/resolve>::version=1.22.3&hash=07638b"
dependencies: dependencies:
is-core-module: ^2.9.0 is-core-module: ^2.12.0
path-parse: ^1.0.7 path-parse: ^1.0.7
supports-preserve-symlinks-flag: ^1.0.0 supports-preserve-symlinks-flag: ^1.0.0
bin: bin:
resolve: bin/resolve resolve: bin/resolve
checksum: 5656f4d0bedcf8eb52685c1abdf8fbe73a1603bb1160a24d716e27a57f6cecbe2432ff9c89c2bd57542c3a7b9d14b1882b73bfe2e9d7849c9a4c0b8b39f02b8b checksum: ad59734723b596d0891321c951592ed9015a77ce84907f89c9d9307dd0c06e11a67906a3e628c4cae143d3e44898603478af0ddeb2bba3f229a9373efe342665
languageName: node languageName: node
linkType: hard linkType: hard