Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
babel-plugin-ignite-ignore-reactotron
Advanced tools
Strip `Reactotron` from production builds for Ignite-based apps (using `ignite-ir-boilerplate`).
Strip Reactotron
from production builds for Ignite-based apps (using ignite-ir-boilerplate
).
This is beta software.
Please give it a try and lemme know if it doesn't work for you. It should work on any ignite-ir-boilerplate
-based Ignite app. If you have any problems, let me know. I'd love to create a generic babel plugin for any Reactotron
-based app, not just Ignite.
I recommend you don't ship with Reactotron
since it's a debugging tool. The problem is, you've already installed it as a dev dependency and peppered a bunch of console.tron statements everywhere.
So rather than go any deeper with if statements, this babel plugin will transform your code to ditch Reactotron
in production.
# via npm
npm i --save-dev babel-plugin-ignite-ignore-reactotron
# via yarn
yard add -D babel-plugin-ignite-ignore-reactotron
Modify your .babelrc
in your home directory to add this plugin.
{
"presets": ["react-native"],
"env": {
"production": {
"plugins": ["ignite-ignore-reactotron"]
}
}
}
console.tron.log()
or .display
or .error
(etc) will be deleted.console.tron
by itself, it will become false
.import './App/Config/ReactotronConfig'
will be removed from index.ios.js
and index.android.js
.import
or require
with the word reactotron
will be removed.console.tron.overlay(App)
will become App
in App/Containers/App.js
console.tron.createSagaMonitor()
will become null
in App/Redux/CreateStore.js
console.tron.createStore
will become createStore
in App/Redux/CreateStore.js
To give this a trial-run in production mode:
react-native run-ios --configuration Release
console.tron.log()
calls with a noop to play nice inside catch blocks. (@skellock)FAQs
Strip `Reactotron` from production builds for Ignite-based apps (using `ignite-ir-boilerplate`).
The npm package babel-plugin-ignite-ignore-reactotron receives a total of 2,292 weekly downloads. As such, babel-plugin-ignite-ignore-reactotron popularity was classified as popular.
We found that babel-plugin-ignite-ignore-reactotron demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.