🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

obfuscator-io-metro-plugin

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

obfuscator-io-metro-plugin - npm Package Compare versions

Comparing version

to
2.1.1

4

lib/index.js

@@ -104,3 +104,3 @@ const { emptyDir, mkdirp, readFile, writeFile,remove } = require('fs-extra');

const fileNames = new Set();
const config_EXTS = runConfig?.exts? new RegExp(runConfig?.exts,'i') : EXTS;
process.on('beforeExit', async function (exitCode) {

@@ -135,3 +135,3 @@ try{

!fs.existsSync(_module.path) ||
!path.extname(_module.path).match(config_EXTS)
!path.extname(_module.path).match(EXTS)
) {

@@ -138,0 +138,0 @@ return true;

{
"name": "obfuscator-io-metro-plugin",
"version": "2.1.0",
"version": "2.1.1",
"description": "A metro plugin to use javascript-obfuscator library with react-native ",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -7,2 +7,3 @@ # Obfuscator.io Metro Plugin

This metro plugin obfuscate your **React Native** bundle using [javascript-obfuscator](https://github.com/javascript-obfuscator/javascript-obfuscator) <br/>

@@ -42,3 +43,5 @@ It only obfuscates your code not the code of `node_modules`, you can verify the obfuscated bundle by either extracting the `index.android.bundle` from generated apk

logObfuscatedFiles: true /* optional generated files will be located at ./.jso */,
exts: "/.(j|t)s(x)?$/" /* optional to add json use '(.(j|t)s(x)?$|.json$)' */,
// source Map generated after obfuscation is not useful right now
sourceMapLocation:
"./index.android.bundle.map" /* optional only works if sourceMap: true in obfuscation option */,
}

@@ -60,13 +63,2 @@ );

### runConfig
```
name | description | type | default
:----------------- |:--------------------------------------------- | --------:|:------------------
exts | extension of files to obfuscate | String | '/.(j|t)s(x)?$/'
```
For obfuscation options configuration docs see: [https://github.com/javascript-obfuscator/javascript-obfuscator](https://github.com/javascript-obfuscator/javascript-obfuscator)

Sorry, the diff of this file is not supported yet