jscrambler-metro-plugin 9.1.0 → 9.1.2

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.
Files changed (2) hide show
  1. package/README.md +9 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # ![Jscrambler](https://media.jscrambler.com/images/logo_500px.png)
2
- # Jscrambler Code Integrity for React-Native and Vega Os
2
+ # Jscrambler Code Integrity for React-Native and Vega OS
3
3
 
4
4
  Jscrambler [Code Integrity](https://jscrambler.com/code-integrity) is a JavaScript protection technology for Web and Mobile Applications. Its main purpose is to enable JavaScript applications to become self-defensive and resilient to tampering and reverse engineering.
5
5
 
@@ -19,7 +19,7 @@ Please make sure you install the right version, otherwise some functionalities m
19
19
 
20
20
  # Usage
21
21
 
22
- This metro plugin protects your [React Native](https://reactnative.dev/) and [Vega](https://developer.amazon.com/apps-and-games/vega) bundle using Jscrambler.
22
+ This plugin uses Jscrambler to protect your [React Native](https://reactnative.dev/) bundles built with Expo or the Community CLI, as well as your [Vega OS](https://developer.amazon.com/apps-and-games/vega) bundles.
23
23
 
24
24
  First install the **jscrambler-metro-plugin** as a development dependency
25
25
 
@@ -30,7 +30,14 @@ npm install -D jscrambler-metro.plugin
30
30
  Then, set up the plugin in your `metro.config.js` by adding the following code:
31
31
 
32
32
  ```js
33
+ // For React-Native Community CLI or Vega OS, import getDefaultConfig and mergeConfig from @react-native/metro-config
33
34
  const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');
35
+
36
+ // For Expo, import getDefaultConfig from expo/metro-config and mergeConfig from @react-native/metro-config
37
+ const { getDefaultConfig } = require("expo/metro-config");
38
+ const { mergeConfig } = require('@react-native/metro-config');
39
+
40
+ // Import Jscrambler Metro Plugin
34
41
  const jscramblerMetroPlugin = require('jscrambler-metro-plugin')();
35
42
 
36
43
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jscrambler-metro-plugin",
3
- "version": "9.1.0",
3
+ "version": "9.1.2",
4
4
  "description": "A plugin to use metro with Jscrambler Code Integrity",
5
5
  "exports": "./lib/index.js",
6
6
  "peerDependencies": {
@@ -11,7 +11,7 @@
11
11
  "dependencies": {
12
12
  "commander": "^2.20.0",
13
13
  "fs-extra": "^8.0.1",
14
- "jscrambler": "8.22.1"
14
+ "jscrambler": "8.22.2"
15
15
  },
16
16
  "keywords": [
17
17
  "jscrambler",