jscrambler-metro-plugin 8.4.44 → 8.4.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -28,7 +28,7 @@ const jscramblerMetroPlugin = require('jscrambler-metro-plugin')(
28
28
  /* optional */
29
29
  {
30
30
  enable: true,
31
- enabledHermes: false, // set if you are using hermes engine
31
+ enabledHermes: true, // true by default. If you are not using Hermes engine, set to false
32
32
  ignoreFile: resolve(__dirname, '.jscramblerignore'),
33
33
  params: [
34
34
  {
package/lib/index.js CHANGED
@@ -291,7 +291,12 @@ module.exports = function (_config = {}, projectRoot = process.cwd()) {
291
291
  let calledByMetro = false;
292
292
  const fileNames = new Set();
293
293
  const sourceMapFiles = [];
294
- const config = Object.assign({}, jscrambler.config, _config);
294
+ const config = Object.assign(
295
+ {},
296
+ { enabledHermes: true },
297
+ jscrambler.config,
298
+ _config,
299
+ );
295
300
  const instrument = !!config.instrument;
296
301
  let entryPointCode;
297
302
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jscrambler-metro-plugin",
3
- "version": "8.4.44",
3
+ "version": "8.4.45",
4
4
  "description": "A plugin to use metro with Jscrambler Code Integrity",
5
5
  "exports": "./lib/index.js",
6
6
  "peerDependencies": {