|
1 | 1 | { |
2 | 2 | "name": "@metamask/eth-json-rpc-middleware", |
3 | 3 | "version": "19.0.1", |
4 | | - "description": "Ethereum-related json-rpc-engine middleware.", |
| 4 | + "description": "Ethereum-related json-rpc-engine middleware", |
| 5 | + "homepage": "https://github.com/MetaMask/eth-json-rpc-middleware#readme", |
| 6 | + "bugs": { |
| 7 | + "url": "https://github.com/MetaMask/eth-json-rpc-middleware/issues" |
| 8 | + }, |
5 | 9 | "repository": { |
6 | 10 | "type": "git", |
7 | 11 | "url": "https://github.com/MetaMask/eth-json-rpc-middleware.git" |
8 | 12 | }, |
9 | 13 | "license": "ISC", |
10 | | - "main": "./dist/index.js", |
11 | | - "browser": { |
12 | | - "btoa": false, |
13 | | - "node-fetch": false |
| 14 | + "sideEffects": false, |
| 15 | + "exports": { |
| 16 | + ".": { |
| 17 | + "import": { |
| 18 | + "types": "./dist/index.d.mts", |
| 19 | + "default": "./dist/index.mjs" |
| 20 | + }, |
| 21 | + "require": { |
| 22 | + "types": "./dist/index.d.cts", |
| 23 | + "default": "./dist/index.cjs" |
| 24 | + } |
| 25 | + }, |
| 26 | + "./package.json": "./package.json" |
14 | 27 | }, |
15 | | - "types": "./dist/index.d.ts", |
| 28 | + "main": "./dist/index.cjs", |
| 29 | + "module": "./dist/index.mjs", |
| 30 | + "types": "./dist/index.d.cts", |
16 | 31 | "files": [ |
17 | | - "dist/" |
| 32 | + "dist" |
18 | 33 | ], |
19 | 34 | "scripts": { |
20 | | - "build": "tsc --project tsconfig.build.json", |
| 35 | + "build": "ts-bridge --project tsconfig.build.json --clean", |
21 | 36 | "build:clean": "rimraf dist && yarn build", |
22 | | - "lint": "yarn lint:eslint && yarn lint:misc --check", |
23 | | - "lint:eslint": "eslint . --cache --ext js,ts", |
24 | | - "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", |
25 | | - "lint:misc": "prettier '**/*.json' '**/*.md' '!CHANGELOG.md' '**/*.yml' '!.yarnrc.yml' --ignore-path .gitignore --no-error-on-unmatched-pattern", |
| 37 | + "build:docs": "typedoc", |
| 38 | + "lint": "yarn lint:eslint && yarn lint:constraints && yarn lint:misc --check && yarn lint:dependencies --check && yarn lint:changelog", |
| 39 | + "lint:changelog": "auto-changelog validate --prettier", |
| 40 | + "lint:constraints": "yarn constraints", |
| 41 | + "lint:dependencies": "depcheck && yarn dedupe --check", |
| 42 | + "lint:dependencies:fix": "depcheck && yarn dedupe", |
| 43 | + "lint:eslint": "eslint . --cache", |
| 44 | + "lint:fix": "yarn lint:eslint --fix && yarn lint:constraints --fix && yarn lint:misc --write && yarn lint:dependencies:fix && yarn lint:changelog", |
| 45 | + "lint:misc": "prettier '**/*.json' '**/*.md' '**/*.yml' '!.yarnrc.yml' --ignore-path .gitignore --no-error-on-unmatched-pattern", |
26 | 46 | "prepack": "./scripts/prepack.sh", |
27 | 47 | "test": "jest && yarn build:clean && yarn test:types", |
28 | | - "test:types": "tsd --files 'src/**/*.test-d.ts'", |
| 48 | + "test:types": "tsd --files 'src/**/*.test-d.ts' && attw --pack", |
29 | 49 | "test:watch": "jest --watch" |
30 | 50 | }, |
31 | 51 | "dependencies": { |
|
36 | 56 | "@metamask/rpc-errors": "^7.0.2", |
37 | 57 | "@metamask/superstruct": "^3.1.0", |
38 | 58 | "@metamask/utils": "^11.7.0", |
39 | | - "@types/bn.js": "^5.1.5", |
40 | | - "bn.js": "^5.2.1", |
41 | 59 | "klona": "^2.0.6", |
42 | 60 | "pify": "^5.0.0", |
43 | 61 | "safe-stable-stringify": "^2.4.3" |
44 | 62 | }, |
45 | 63 | "devDependencies": { |
46 | | - "@jest/globals": "^27.5.1", |
| 64 | + "@arethetypeswrong/cli": "^0.15.3", |
47 | 65 | "@lavamoat/allow-scripts": "^3.0.4", |
48 | | - "@metamask/auto-changelog": "^3.1.0", |
| 66 | + "@metamask/auto-changelog": "^3.4.4", |
49 | 67 | "@metamask/error-reporting-service": "^2.0.0", |
50 | | - "@metamask/eslint-config": "^12.1.0", |
51 | | - "@metamask/eslint-config-jest": "^12.1.0", |
52 | | - "@metamask/eslint-config-nodejs": "^12.1.0", |
53 | | - "@metamask/eslint-config-typescript": "^12.1.0", |
| 68 | + "@metamask/eslint-config": "^14.0.0", |
| 69 | + "@metamask/eslint-config-jest": "^14.0.0", |
| 70 | + "@metamask/eslint-config-nodejs": "^14.0.0", |
| 71 | + "@metamask/eslint-config-typescript": "^14.0.0", |
54 | 72 | "@metamask/network-controller": "^24.2.1", |
55 | | - "@types/btoa": "^1.2.3", |
| 73 | + "@ts-bridge/cli": "^0.6.3", |
56 | 74 | "@types/jest": "^27.4.1", |
57 | | - "@types/node": "^18.16", |
| 75 | + "@types/node": "^18.18", |
58 | 76 | "@types/pify": "^5.0.2", |
59 | | - "@typescript-eslint/eslint-plugin": "^5.42.1", |
60 | | - "@typescript-eslint/parser": "^5.42.1", |
61 | | - "eslint": "^8.44.0", |
62 | | - "eslint-config-prettier": "^8.1.0", |
63 | | - "eslint-plugin-import": "^2.27.5", |
64 | | - "eslint-plugin-jest": "^27.1.5", |
65 | | - "eslint-plugin-jsdoc": "^39.6.2", |
66 | | - "eslint-plugin-n": "^15.7.0", |
67 | | - "eslint-plugin-prettier": "^4.2.1", |
68 | | - "eslint-plugin-promise": "^6.1.1", |
| 77 | + "@yarnpkg/types": "^4.0.1", |
| 78 | + "depcheck": "^1.4.3", |
| 79 | + "eslint": "^9.11.0", |
| 80 | + "eslint-config-prettier": "^9.1.0", |
| 81 | + "eslint-import-resolver-typescript": "^3.6.3", |
| 82 | + "eslint-plugin-import-x": "^4.3.0", |
| 83 | + "eslint-plugin-jest": "^28.8.3", |
| 84 | + "eslint-plugin-jsdoc": "^50.2.4", |
| 85 | + "eslint-plugin-n": "^17.10.3", |
| 86 | + "eslint-plugin-prettier": "^5.2.1", |
| 87 | + "eslint-plugin-promise": "^7.1.0", |
69 | 88 | "jest": "^27.5.1", |
70 | | - "prettier": "^2.2.1", |
71 | | - "prettier-plugin-packagejson": "^2.2.11", |
| 89 | + "prettier": "^3.3.3", |
| 90 | + "prettier-plugin-packagejson": "^2.5.8", |
72 | 91 | "rimraf": "^3.0.2", |
73 | 92 | "ts-jest": "^27.1.4", |
74 | | - "ts-node": "^10.7.0", |
| 93 | + "ts-node": "^10.9.1", |
75 | 94 | "tsd": "^0.31.2", |
76 | | - "typescript": "~4.8.4" |
| 95 | + "typedoc": "^0.24.8", |
| 96 | + "typescript": "~5.2.2", |
| 97 | + "typescript-eslint": "^8.7.0" |
77 | 98 | }, |
78 | | - "packageManager": "yarn@3.2.1", |
| 99 | + "packageManager": "yarn@4.1.1", |
79 | 100 | "engines": { |
80 | 101 | "node": "^18.16 || ^20 || >=22" |
81 | 102 | }, |
|
87 | 108 | "allowScripts": { |
88 | 109 | "@lavamoat/preinstall-always-fail": false, |
89 | 110 | "@metamask/eth-sig-util>ethereumjs-util>ethereum-cryptography>keccak": false, |
90 | | - "@metamask/eth-sig-util>ethereumjs-util>ethereum-cryptography>secp256k1": false |
| 111 | + "@metamask/eth-sig-util>ethereumjs-util>ethereum-cryptography>secp256k1": false, |
| 112 | + "eslint-plugin-import-x>unrs-resolver": false |
91 | 113 | } |
92 | 114 | } |
93 | 115 | } |
0 commit comments