UNPKG

@metamask/snaps-rpc-methods

Version:
91 lines 2.96 kB
{ "name": "@metamask/snaps-rpc-methods", "version": "13.1.0", "description": "MetaMask Snaps JSON-RPC method implementations", "keywords": [ "MetaMask", "Snaps", "Ethereum" ], "homepage": "https://github.com/MetaMask/snaps/tree/main/packages/snaps-rpc-methods#readme", "bugs": { "url": "https://github.com/MetaMask/snaps/issues" }, "repository": { "type": "git", "url": "https://github.com/MetaMask/snaps.git" }, "license": "SEE LICENSE IN LICENSE", "sideEffects": false, "exports": { ".": { "import": { "types": "./dist/index.d.mts", "default": "./dist/index.mjs" }, "require": { "types": "./dist/index.d.cts", "default": "./dist/index.cjs" } }, "./package.json": "./package.json" }, "main": "./dist/index.cjs", "module": "./dist/index.mjs", "types": "./dist/index.d.cts", "files": [ "dist" ], "scripts": { "build": "ts-bridge --project tsconfig.build.json --verbose --clean --no-references", "changelog:update": "../../scripts/update-changelog.sh @metamask/snaps-rpc-methods", "changelog:validate": "../../scripts/validate-changelog.sh @metamask/snaps-rpc-methods", "lint": "yarn lint:eslint && yarn lint:misc --check && yarn changelog:validate && yarn lint:dependencies", "lint:ci": "yarn lint", "lint:dependencies": "depcheck", "lint:eslint": "eslint . --cache", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", "lint:misc": "prettier --no-error-on-unmatched-pattern --log-level warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" --ignore-path ../../.gitignore", "publish:preview": "yarn npm publish --tag preview", "since-latest-release": "../../scripts/since-latest-release.sh", "test": "jest --reporters=jest-silent-reporter", "test:clean": "jest --clearCache", "test:post": "jest-it-up", "test:verbose": "jest --verbose", "test:watch": "jest --watch" }, "dependencies": { "@metamask/key-tree": "^10.1.1", "@metamask/permission-controller": "^11.0.6", "@metamask/rpc-errors": "^7.0.2", "@metamask/snaps-sdk": "^8.1.0", "@metamask/snaps-utils": "^10.1.0", "@metamask/superstruct": "^3.2.1", "@metamask/utils": "^11.4.0", "@noble/hashes": "^1.7.1" }, "devDependencies": { "@lavamoat/allow-scripts": "^3.3.3", "@metamask/auto-changelog": "^5.0.2", "@metamask/json-rpc-engine": "^10.0.2", "@swc/core": "1.11.31", "@swc/jest": "^0.2.38", "@ts-bridge/cli": "^0.6.1", "@types/node": "18.14.2", "deepmerge": "^4.2.2", "depcheck": "^1.4.7", "eslint": "^9.11.0", "jest": "^29.0.2", "jest-it-up": "^2.0.0", "jest-silent-reporter": "^0.6.0", "prettier": "^3.3.3", "typescript": "~5.3.3" }, "engines": { "node": "^20 || >=22" }, "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org/" } }