Skip to content

Commit

Permalink
chore: extension audit (#478)
Browse files Browse the repository at this point in the history
Co-authored-by: Sid Vishnoi <[email protected]>
  • Loading branch information
raducristianpopa and sidvishnoi authored Aug 6, 2024
1 parent faea531 commit 1cb1737
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 249 deletions.
9 changes: 5 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,17 @@
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:jsx-a11y/recommended",
"plugin:jest/recommended",
"plugin:@typescript-eslint/recommended"
"plugin:jest/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2020,
"ecmaFeatures": { "jsx": true }
"ecmaFeatures": {
"jsx": true
}
},
"plugins": ["html"],
"plugins": [],
"settings": {
"react": {
"version": "detect"
Expand Down
13 changes: 1 addition & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ The Web Monetization browser extension is an open source implementation of the W
### Prerequisites

- [NVM](https://github.com/nvm-sh/nvm) (Linux, macOS), [NVM Windows](https://github.com/coreybutler/nvm-windows) (Windows) - or another Node Version Manager
- [PNPM](https://pnpm.io/)

## Setup

Expand All @@ -26,20 +25,10 @@ nvm use lts/iron
nvm install lts
nvm use lts

# Install pnpm using Corepack
# Install correct version of pnpm using Corepack (Corepack comes with Node)
corepack enable
```

If you do not have `corepack` installed locally you can use `npm` or `yarn` to install `pnpm`:

```sh
npm install -g pnpm
# or
yarn install -g pnpm
```

For alternative methods of installing `pnpm`, you can refer to the [official `pnpm` documentation](https://pnpm.io/installation).

To install dependencies, execute:

```sh
Expand Down
14 changes: 2 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
"@interledger/open-payments": "^6.13.1",
"@noble/ed25519": "^2.1.0",
"@noble/hashes": "^1.4.0",
"assert": "^2.1.0",
"awilix": "^10.0.2",
"browserify-zlib": "^0.2.0",
"buffer": "^6.0.3",
"class-variance-authority": "^0.7.0",
"constants-browserify": "^1.0.0",
Expand All @@ -38,24 +36,20 @@
"iso8601-duration": "^2.1.2",
"loglevel": "^1.9.1",
"path-browserify": "^1.0.1",
"process": "^0.11.10",
"querystring-es3": "^0.2.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-hook-form": "^7.52.1",
"react-number-format": "^5.4.0",
"react-router-dom": "^6.25.1",
"stream-browserify": "^3.0.0",
"stream-http": "^3.2.0",
"tailwind-merge": "^2.4.0",
"url": "^0.11.3",
"util": "^0.12.5",
"webextension-polyfill": "^0.12.0"
},
"devDependencies": {
"@tailwindcss/forms": "^0.5.7",
"@testing-library/jest-dom": "^6.4.6",
"@testing-library/react": "^16.0.0",
"@types/chrome": "^0.0.268",
"@types/jest": "^29.5.12",
"@types/node": "^20.14.10",
"@types/react": "^18.3.3",
Expand All @@ -67,7 +61,6 @@
"@typescript-eslint/parser": "^7.16.0",
"autoprefixer": "^10.4.19",
"clean-webpack-plugin": "^4.0.0",
"concurrently": "^8.2.2",
"copy-webpack-plugin": "^12.0.2",
"css-loader": "^7.1.2",
"eslint": "^8.57.0",
Expand All @@ -77,7 +70,6 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-react": "^7.35.0",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-webpack-plugin": "^4.0.1",
"html-webpack-plugin": "^5.6.0",
"jest": "^29.7.0",
"jest-chrome": "^0.8.0",
Expand All @@ -87,7 +79,6 @@
"postcss-loader": "^8.1.1",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.5",
"react-router-dom": "^6.25.1",
"style-loader": "^4.0.0",
"tailwindcss": "^3.4.4",
"terser-webpack-plugin": "^5.3.10",
Expand All @@ -99,14 +90,13 @@
"webpack": "^5.93.0",
"webpack-cli": "^5.1.4",
"webpack-ext-reloader-mv3": "^2.1.1",
"webpack-extension-manifest-plugin": "^0.8.0",
"zip-webpack-plugin": "^4.0.1"
},
"engines": {
"pnpm": "^9.6.0",
"npm": "pnpm",
"yarn": "pnpm",
"node": "20.15.1"
"node": "^20.15.1"
},
"packageManager": "[email protected]"
}
Loading

0 comments on commit 1cb1737

Please sign in to comment.