@metamask/sdk-react
Version:
A react component and react hooks to connect and use MetaMask
146 lines • 5.01 kB
JSON
{
"name": "@metamask/sdk-react",
"version": "0.33.0",
"description": "A react component and react hooks to connect and use MetaMask",
"homepage": "https://github.com/MetaMask/metamask-sdk",
"bugs": {
"url": "https://github.com/MetaMask/metamask-sdk/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/MetaMask/metamask-sdk",
"directory": "packages/sdk-react"
},
"keywords": [
"react",
"typescript",
"rollup",
"metamask"
],
"author": "MetaMask",
"module": "dist/esm/index.js",
"main": "dist/cjs/index.js",
"react-native": "dist/react-native/es/metamask-sdk-react.js",
"types": "dist/esm/src/index.d.ts",
"files": [
"dist",
"package.json",
"README.md"
],
"scripts": {
"prebuild": "rimraf dist",
"build": "yarn prebuild && rollup -c --bundleConfigAsCjs",
"build:tsc": "tsc",
"build:post-tsc": "echo 'N/A'",
"build:pre-tsc": "echo 'N/A'",
"clean": "rimraf dist",
"dev": "rollup -c -w --bundleConfigAsCjs",
"lint": "yarn lint:eslint && yarn lint:misc --check",
"lint:changelog": "../../scripts/validate-changelog.sh @metamask/sdk-react",
"lint:eslint": "eslint . --cache --ext js,ts",
"lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write",
"lint:misc": "prettier '**/*.json' '**/*.md' '!CHANGELOG.md' --ignore-path ../../.gitignore",
"reset": "yarn clean && rimraf ./node_modules/",
"test": "jest",
"test:coverage": "jest --coverage",
"test:ci": "jest --coverage --passWithNoTests --setupFilesAfterEnv ./jest-preload.js"
},
"dependencies": {
"@metamask/sdk": "^0.33.0",
"debug": "^4.3.4",
"eth-rpc-errors": "^4.0.3",
"rollup-plugin-node-builtins": "^2.1.2",
"rollup-plugin-node-globals": "^1.4.0"
},
"devDependencies": {
"@babel/core": "^7.23.6",
"@babel/preset-env": "^7.23.6",
"@babel/preset-react": "^7.23.3",
"@babel/preset-typescript": "^7.23.3",
"@lavamoat/allow-scripts": "^2.3.1",
"@metamask/auto-changelog": "^3.1.0",
"@metamask/eslint-config": "^6.0.0",
"@metamask/eslint-config-nodejs": "^6.0.0",
"@metamask/eslint-config-typescript": "^6.0.0",
"@react-native-async-storage/async-storage": "^1.19.6",
"@rollup/plugin-commonjs": "^22.0.1",
"@rollup/plugin-json": "^6.0.1",
"@rollup/plugin-node-resolve": "^13.3.0",
"@rollup/plugin-typescript": "^8.3.3",
"@testing-library/jest-dom": "^6.1.4",
"@testing-library/react": "^14.1.2",
"@testing-library/react-hooks": "^8.0.1",
"@types/jest": "^29.5.1",
"@types/mersenne-twister": "^1.1.2",
"@types/react": "^18.2.38",
"@types/react-copy-to-clipboard": "^5.0.4",
"@types/rebass": "^4.0.10",
"@typescript-eslint/eslint-plugin": "^4.26.0",
"@typescript-eslint/parser": "^4.26.0",
"autoprefixer": "^10.4.4",
"babel-jest": "^29.7.0",
"babel-loader": "^8.3.0",
"eslint": "^7.30.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-jest": "^24.4.0",
"eslint-plugin-jsdoc": "^36.1.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.4.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"postcss": "^8.4.12",
"prettier": "^2.3.0",
"react-native": "^0.72.4",
"react-native-web": "^0.19.9",
"rimraf": "^5.0.0",
"rollup": "^3.21.8",
"rollup-plugin-dts": "^4.2.2",
"rollup-plugin-jscc": "^2.0.0",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-polyfill-node": "^0.13.0",
"rollup-plugin-postcss": "^4.0.2",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.36.0",
"tailwindcss": "^3.1.4",
"typescript": "^4.7.4"
},
"peerDependencies": {
"@react-native-async-storage/async-storage": "^1.19.6",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-native": "*"
},
"peerDependenciesMeta": {
"@react-native-async-storage/async-storage": {
"optional": true
},
"react": {
"optional": false
},
"react-dom": {
"optional": false
},
"react-native": {
"optional": true
}
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"lavamoat": {
"allowScripts": {
"@metamask/sdk>eciesjs>secp256k1": false,
"@metamask/sdk>react-native>react-devtools-core>ws>bufferutil": false,
"@metamask/sdk>react-native>react-devtools-core>ws>utf-8-validate": false,
"@metamask/sdk>@metamask/sdk-communication-layer>bufferutil": false,
"@metamask/sdk>@metamask/sdk-communication-layer>eciesjs>secp256k1": false,
"@metamask/sdk>@metamask/sdk-communication-layer>utf-8-validate": false,
"@metamask/sdk-communication-layer>bufferutil": false,
"@metamask/sdk-communication-layer>eciesjs>secp256k1": false,
"@metamask/sdk-communication-layer>utf-8-validate": false,
"jest-environment-jsdom>jsdom>ws>bufferutil": false
}
}
}