@bytehide/react-native-shield
Advanced tools
Comparing version
#!/usr/bin/env node | ||
const shield = require('./index'); | ||
const shield = require('@bytehide/react-native-shield'); | ||
const yargs = require('yargs'); | ||
@@ -37,4 +37,4 @@ | ||
const excludePatterns = argv.exclude ? argv.exclude.split(',') : []; | ||
console.log(`Excluding the following patterns from obfuscation: ${excludePatterns}`); | ||
const excludePatterns = argv.exclude ? argv.exclude.split(',').map(pattern => pattern.trim()) : []; | ||
console.log(`Excluding the following patterns from obfuscation: ${excludePatterns.join(', ')}`); | ||
@@ -60,5 +60,5 @@ if (argv.replace) { | ||
argv.obfuscatedExtension, | ||
excludePatterns | ||
excludePatterns ?? [], | ||
) | ||
.then(() => console.log('Obfuscation completed successfully!')) | ||
.catch((err) => console.error('Error during obfuscation:', err)); |
{ | ||
"name": "@bytehide/react-native-shield", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"description": "React Native plugin for ByteHide Shield obfuscation.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
10739
0.67%