UNPKG

@metamask/snaps-sdk

Version:

A library containing the core functionality for building MetaMask Snaps

124 lines 3.75 kB
{ "name": "@metamask/snaps-sdk", "version": "6.22.0", "description": "A library containing the core functionality for building MetaMask Snaps", "keywords": [ "MetaMask", "Snaps", "Ethereum" ], "homepage": "https://github.com/MetaMask/snaps/tree/main/packages/snaps-sdk#readme", "bugs": { "url": "https://github.com/MetaMask/snaps/issues" }, "repository": { "type": "git", "url": "https://github.com/MetaMask/snaps.git" }, "license": "ISC", "sideEffects": false, "exports": { ".": { "import": { "types": "./dist/index.d.mts", "default": "./dist/index.mjs" }, "require": { "types": "./dist/index.d.cts", "default": "./dist/index.cjs" } }, "./jsx": { "import": { "types": "./dist/jsx/index.d.mts", "default": "./dist/jsx/index.mjs" }, "require": { "types": "./dist/jsx/index.d.cts", "default": "./dist/jsx/index.cjs" } }, "./jsx-runtime": { "import": { "types": "./dist/jsx/jsx-runtime.d.mts", "default": "./dist/jsx/jsx-runtime.mjs" }, "require": { "types": "./dist/jsx/jsx-runtime.d.cts", "default": "./dist/jsx/jsx-runtime.cjs" } }, "./jsx-dev-runtime": { "import": { "types": "./dist/jsx/jsx-dev-runtime.d.mts", "default": "./dist/jsx/jsx-dev-runtime.mjs" }, "require": { "types": "./dist/jsx/jsx-dev-runtime.d.cts", "default": "./dist/jsx/jsx-dev-runtime.cjs" } }, "./package.json": "./package.json" }, "main": "./dist/index.cjs", "module": "./dist/index.mjs", "types": "./dist/index.d.cts", "files": [ "dist", "jsx.js", "jsx-dev-runtime.js", "jsx-runtime.js", "jsx.d.ts", "jsx-dev-runtime.d.ts", "jsx-runtime.d.ts" ], "scripts": { "build": "ts-bridge --project tsconfig.build.json --verbose --clean --no-references", "changelog:update": "../../scripts/update-changelog.sh @metamask/snaps-sdk", "changelog:validate": "../../scripts/validate-changelog.sh @metamask/snaps-sdk", "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/providers": "^21.0.0", "@metamask/rpc-errors": "^7.0.2", "@metamask/superstruct": "^3.2.1", "@metamask/utils": "^11.2.0" }, "devDependencies": { "@lavamoat/allow-scripts": "^3.0.4", "@metamask/auto-changelog": "^5.0.1", "@ts-bridge/cli": "^0.6.1", "@types/jest": "^27.5.1", "deepmerge": "^4.2.2", "depcheck": "^1.4.7", "eslint": "^9.11.0", "expect-type": "^0.17.3", "jest": "^29.0.2", "jest-fetch-mock": "^3.0.3", "jest-it-up": "^2.0.0", "jest-silent-reporter": "^0.6.0", "prettier": "^3.3.3", "ts-jest": "^29.1.1", "typescript": "~5.3.3" }, "engines": { "node": "^18.16 || >=20" }, "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org/" } }