Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
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,013 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.