Skip to content

Commit

Permalink
Remove console.warn and warn (#1083)
Browse files Browse the repository at this point in the history
  • Loading branch information
forgetso authored Mar 6, 2024
1 parent 4c36e0f commit a40e980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"lint:fix": "npm --workspaces run lint:fix && npm run lint:fix:workspace",
"lint:fix:contracts": "npm -w @prosopo/captcha-contract -w @prosopo/common-contract -w @prosopo/proxy-contract run lint:fix",
"lint:fix:workspace": "npm run eslint:fix:workspace && npm run prettier:fix:workspace",
"removePolkadotJSWarnings": "sed -i 's/warn\\(.*\\);//g' ./node_modules/@polkadot/util/versionDetect.js 2>/dev/null && sed -i 's/warn\\(.*\\);//g' ./node_modules/@polkadot/util/cjs/versionDetect.js 2>/dev/null || true",
"removePolkadotJSWarnings": "sed -i 's/(console\\.)*warn\\(.*\\);//g' ./node_modules/@polkadot/util/versionDetect.js 2>/dev/null && sed -i 's/warn\\(.*\\);//g' ./node_modules/@polkadot/util/cjs/versionDetect.js 2>/dev/null || true",
"postinstall": "npm run removePolkadotJSWarnings",
"docs": "typedoc --plugin typedoc-plugin-missing-exports --plugin typedoc-plugin-mdn-links --plugin typedoc-plugin-zod 2>&1 | grep -v \"Serialized project contained a reflection\""
},
Expand Down

0 comments on commit a40e980

Please sign in to comment.