Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix vuln as of 2024-12-12 #334

Merged
merged 5 commits into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions example/capacitor/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions example/reactnative/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@ Yarn Classic is our package manager. It does not support `audit fix`.
I tried to switch to npm, but then `npm start` will result in error `cannot find package @authgear/react-native`.
So a React Native project cannot really use npm as package manager.

To automate the fixing of vulnerabilities in packages. We can use the following workaround
To automate the fixing of vulnerabilities in packages. We can use the following workaround:

> You can just `npm run yarnauditfix`. It does the following for you.

- `rm yarn.lock`
- `npm i` to generate `package-lock.json`.
- `npm audit fix` to fix vulnerabilities.
- `git checkout -- yarn.lock` to bring back `yarn.lock`.
- `npm i` to ask npm to update `yarn.lock` based on `package-lock.json`.
- `yarn i` to ask Yarn to update `yarn.lock` according to its own flavor.
- `yarn install` to ask Yarn to update `yarn.lock` according to its own flavor.
- `rm package-lock.json` to remove residue.

# Initial setup
Expand Down
3 changes: 2 additions & 1 deletion example/reactnative/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"start": "react-native start",
"test": "jest",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"typecheck": "tsc --noEmit"
"typecheck": "tsc --noEmit",
"yarnauditfix": "rm yarn.lock && npm install && npm audit fix && git checkout -- yarn.lock && npm install && yarn install && rm package-lock.json"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

},
"dependencies": {
"@authgear/react-native": "../../packages/authgear-react-native",
Expand Down
6 changes: 3 additions & 3 deletions example/reactnative/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2735,9 +2735,9 @@ create-jest@^29.7.0:
prompts "^2.0.1"

cross-spawn@^7.0.2, cross-spawn@^7.0.3:
version "7.0.3"
resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz"
integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==
version "7.0.6"
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.6.tgz#8a58fe78f00dcd70c370451759dfbfaf03e8ee9f"
integrity sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==
dependencies:
path-key "^3.1.0"
shebang-command "^2.0.0"
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 17 additions & 13 deletions website/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.