jscrambler-metro-plugin 9.1.1 → 9.1.3
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/lib/index.js +2 -1
- package/package.json +7 -2
package/lib/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
const {copy, emptyDir, mkdirp, readFile, writeFile} = require('fs-extra');
|
|
2
2
|
const { getDefaultConfig } = require('@react-native/metro-config');
|
|
3
|
-
const { getDefaultConfig: getDefaultExpoConfig } = require('expo/metro-config');
|
|
4
3
|
const jscrambler = require('jscrambler').default;
|
|
5
4
|
const fs = require('fs');
|
|
6
5
|
const path = require('path');
|
|
@@ -358,6 +357,8 @@ function setupViaSaveHook({
|
|
|
358
357
|
};
|
|
359
358
|
|
|
360
359
|
if (isExpoBuild()) {
|
|
360
|
+
// required lazily so that vanilla React Native projects don't need expo installed
|
|
361
|
+
const { getDefaultConfig: getDefaultExpoConfig } = require('expo/metro-config');
|
|
361
362
|
const getDefaultprocessModuleFilter = getDefaultExpoConfig(projectRoot)?.serializer?.processModuleFilter;
|
|
362
363
|
return {
|
|
363
364
|
serializer: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jscrambler-metro-plugin",
|
|
3
|
-
"version": "9.1.
|
|
3
|
+
"version": "9.1.3",
|
|
4
4
|
"description": "A plugin to use metro with Jscrambler Code Integrity",
|
|
5
5
|
"exports": "./lib/index.js",
|
|
6
6
|
"peerDependencies": {
|
|
@@ -8,10 +8,15 @@
|
|
|
8
8
|
"@react-native/metro-config": "*",
|
|
9
9
|
"expo": "*"
|
|
10
10
|
},
|
|
11
|
+
"peerDependenciesMeta": {
|
|
12
|
+
"expo": {
|
|
13
|
+
"optional": true
|
|
14
|
+
}
|
|
15
|
+
},
|
|
11
16
|
"dependencies": {
|
|
12
17
|
"commander": "^2.20.0",
|
|
13
18
|
"fs-extra": "^8.0.1",
|
|
14
|
-
"jscrambler": "8.22.
|
|
19
|
+
"jscrambler": "8.22.2"
|
|
15
20
|
},
|
|
16
21
|
"keywords": [
|
|
17
22
|
"jscrambler",
|