mirror of
https://github.com/neynarxyz/create-farcaster-mini-app.git
synced 2025-11-15 15:48:56 -05:00
fix: update @neynar/react version and add overrides for qix vulnerable packages
This commit is contained in:
parent
09ef2e374e
commit
be7d6b76ae
23
bin/init.js
23
bin/init.js
@ -515,7 +515,7 @@ export async function init(
|
||||
'@farcaster/miniapp-wagmi-connector': '^1.0.0',
|
||||
'@farcaster/mini-app-solana': '>=0.0.17 <1.0.0',
|
||||
'@farcaster/quick-auth': '>=0.0.7 <1.0.0',
|
||||
'@neynar/react': '^1.2.9',
|
||||
'@neynar/react': '^1.2.11',
|
||||
'@radix-ui/react-label': '^2.1.1',
|
||||
'@solana/wallet-adapter-react': '^0.15.38',
|
||||
'@tanstack/react-query': '^5.61.0',
|
||||
@ -564,6 +564,27 @@ export async function init(
|
||||
packageJson.dependencies['next-auth'] = '^4.24.11';
|
||||
}
|
||||
|
||||
// Add security overrides for vulnerable packages
|
||||
packageJson.overrides = {
|
||||
"backslash": "0.2.0",
|
||||
"chalk-template": "1.1.0",
|
||||
"supports-hyperlinks": "4.1.0",
|
||||
"has-ansi": "6.0.0",
|
||||
"simple-swizzle": "0.2.2",
|
||||
"color-string": "2.1.0",
|
||||
"error-ex": "1.3.2",
|
||||
"color-name": "2.0.0",
|
||||
"is-arrayish": "0.3.2",
|
||||
"slice-ansi": "7.1.0",
|
||||
"color-convert": "3.1.0",
|
||||
"wrap-ansi": "9.0.0",
|
||||
"ansi-regex": "6.2.0",
|
||||
"supports-color": "10.2.0",
|
||||
"strip-ansi": "7.1.0",
|
||||
"chalk": "5.6.0",
|
||||
"ansi-styles": "6.2.1"
|
||||
};
|
||||
|
||||
fs.writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2));
|
||||
|
||||
// Handle .env file
|
||||
|
||||
1125
package-lock.json
generated
1125
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
14
package.json
14
package.json
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@neynar/create-farcaster-mini-app",
|
||||
"version": "1.8.7",
|
||||
"version": "1.8.8",
|
||||
"type": "module",
|
||||
"private": false,
|
||||
"access": "public",
|
||||
@ -51,5 +51,17 @@
|
||||
"@neynar/nodejs-sdk": "^2.19.0",
|
||||
"@types/node": "^22.13.10",
|
||||
"typescript": "^5.6.3"
|
||||
},
|
||||
"overrides": {
|
||||
"chalk": "5.3.0",
|
||||
"strip-ansi": "6.0.1",
|
||||
"wrap-ansi": "8.1.0",
|
||||
"ansi-styles": "6.2.3",
|
||||
"color-convert": "2.0.1",
|
||||
"color-name": "1.1.4",
|
||||
"is-core-module": "2.13.1",
|
||||
"error-ex": "1.3.2",
|
||||
"simple-swizzle": "0.2.2",
|
||||
"has-ansi": "5.0.1"
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user