@metamask/snaps-utils
Version:
A collection of utilities for MetaMask Snaps
145 lines • 4.64 kB
JSON
{
"name": "@metamask/snaps-utils",
"version": "9.2.0",
"description": "A collection of utilities for MetaMask Snaps",
"keywords": [
"MetaMask",
"Snaps",
"Ethereum"
],
"homepage": "https://github.com/MetaMask/snaps/tree/main/packages/snaps-utils#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"
}
},
"./node": {
"import": {
"types": "./dist/node.d.mts",
"default": "./dist/node.mjs"
},
"require": {
"types": "./dist/node.d.cts",
"default": "./dist/node.cjs"
}
},
"./test-utils": {
"import": {
"types": "./dist/test-utils/index.d.mts",
"default": "./dist/test-utils/index.mjs"
},
"require": {
"types": "./dist/test-utils/index.d.cts",
"default": "./dist/test-utils/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",
"build:clean": "yarn clean && yarn build",
"changelog:update": "../../scripts/update-changelog.sh @metamask/snaps-utils",
"changelog:validate": "../../scripts/validate-changelog.sh @metamask/snaps-utils",
"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 && yarn test:browser",
"test:browser": "vitest",
"test:browser:firefox": "vitest --config ./vitest.config.firefox.mts",
"test:clean": "jest --clearCache",
"test:post": "ts-node scripts/coverage.ts && rimraf coverage/jest coverage/vite",
"test:verbose": "jest --verbose",
"test:watch": "jest --watch"
},
"dependencies": {
"@babel/core": "^7.23.2",
"@babel/types": "^7.23.0",
"@metamask/base-controller": "^8.0.0",
"@metamask/key-tree": "^10.1.1",
"@metamask/permission-controller": "^11.0.6",
"@metamask/rpc-errors": "^7.0.2",
"@metamask/slip44": "^4.1.0",
"@metamask/snaps-registry": "^3.2.3",
"@metamask/snaps-sdk": "^6.22.0",
"@metamask/superstruct": "^3.2.1",
"@metamask/utils": "^11.2.0",
"@noble/hashes": "^1.7.1",
"@scure/base": "^1.1.1",
"chalk": "^4.1.2",
"cron-parser": "^4.5.0",
"fast-deep-equal": "^3.1.3",
"fast-json-stable-stringify": "^2.1.0",
"fast-xml-parser": "^4.4.1",
"luxon": "^3.5.0",
"marked": "^12.0.1",
"rfdc": "^1.3.0",
"semver": "^7.5.4",
"ses": "^1.1.0",
"validate-npm-package-name": "^5.0.0"
},
"devDependencies": {
"@lavamoat/allow-scripts": "^3.0.4",
"@metamask/auto-changelog": "^5.0.1",
"@metamask/post-message-stream": "^9.0.0",
"@swc/core": "1.3.78",
"@swc/jest": "^0.2.26",
"@ts-bridge/cli": "^0.6.1",
"@types/jest": "^27.5.1",
"@types/luxon": "^3",
"@types/node": "18.14.2",
"@types/semver": "^7.5.0",
"@types/validate-npm-package-name": "^4.0.0",
"@vitest/browser": "^3.0.8",
"@vitest/coverage-istanbul": "3.0.8",
"deepmerge": "^4.2.2",
"depcheck": "^1.4.7",
"eslint": "^9.11.0",
"istanbul-lib-coverage": "^3.2.0",
"istanbul-lib-report": "^3.0.0",
"istanbul-reports": "^3.1.5",
"jest": "^29.0.2",
"jest-silent-reporter": "^0.6.0",
"memfs": "^3.4.13",
"prettier": "^3.3.3",
"rimraf": "^4.1.2",
"ts-node": "^10.9.1",
"typescript": "~5.3.3",
"vite": "^6.2.3",
"vite-plugin-node-polyfills": "^0.23.0",
"vite-tsconfig-paths": "^4.0.5",
"vitest": "^3.0.8"
},
"engines": {
"node": "^18.16 || >=20"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
}
}