{ "name": "@metamask/utils", "version": "12.1.0", "description": "Various JavaScript/TypeScript utilities of wide relevance to the MetaMask codebase", "keywords": [ "Ethereum", "MetaMask" ], "homepage": "https://github.com/MetaMask/core/tree/main/packages/utils#readme", "bugs": { "url": "https://github.com/MetaMask/core/issues" }, "license": "ISC", "repository": { "type": "git", "url": "https://github.com/MetaMask/core.git" }, "files": [ "dist", "dist/" ], "type": "module", "sideEffects": false, "exports": { ".": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }, "./node": { "types": "./dist/node.d.ts", "default": "./dist/node.js" }, "./package.json": "./package.json" }, "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org/" }, "scripts": { "allow-scripts": "yarn workspace @metamask/core-monorepo run allow-scripts", "build": "tsc --project tsconfig.build.json", "build:all": "tsc --build tsconfig.build.json --verbose", "build:clean": "yarn build:only-clean && yarn build", "build:docs": "typedoc", "build:only-clean": "rimraf './dist' './tsconfig.build.tsbuildinfo'", "changelog:update": "../../scripts/update-changelog.sh @metamask/utils", "changelog:validate": "../../scripts/validate-changelog.sh", "lint:tsconfigs": "node --import ../../scripts/resolver/register.ts ../../scripts/lint-tsconfigs/lint-tsconfigs.ts", "lint:tsconfigs:fix": "node --import ../../scripts/resolver/register.ts ../../scripts/lint-tsconfigs/lint-tsconfigs.ts --fix", "since-latest-release": "../../scripts/since-latest-release.sh", "test": "vitest", "test:clean": "vitest --clearCache", "test:coverage": "vitest --coverage", "test:verbose": "vitest --reporter=verbose", "test:watch": "vitest --watch" }, "dependencies": { "@ethereumjs/tx": "^5.4.0", "@metamask/byte-utils": "^0.1.0", "@metamask/error-utils": "^0.1.0", "@metamask/node-utils": "^0.1.0", "@metamask/scure-bip39": "^2.1.1", "@metamask/superstruct": "^3.4.1", "@metamask/type-utils": "^0.1.0", "@noble/hashes": "^1.8.0", "@types/debug": "^4.1.7", "@types/lodash": "^4.17.27", "debug": "^4.4.3", "lodash": "^4.18.1", "semver": "^7.8.6" }, "devDependencies": { "@metamask/auto-changelog": "^7.1.0", "@typescript/native": "npm:typescript@^7.0.2", "rimraf": "^6.1.4", "stdio-mock": "^1.2.0", "typedoc": "^0.28.20", "typedoc-plugin-missing-exports": "^4.1.4", "typescript": "npm:@typescript/typescript6@^6.0.2", "vite": "^8.4.0", "vitest": "5.1.2", "web3": "^4.16.0" }, "engines": { "node": "^22.14.0 || ^24 || ^26" } }