Skip to content

Commit 5910432

Browse files
committed
chore: release 0.2.1
1 parent a69b3ff commit 5910432

File tree

7 files changed

+68
-59
lines changed

7 files changed

+68
-59
lines changed

package.json

Lines changed: 34 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-decompiler",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"description": "react native decompile apk and ipa(soon)",
55
"main": "./out/index.js",
66
"author": "richardfuca",
@@ -14,42 +14,44 @@
1414
],
1515
"scripts": {
1616
"build": "tsc",
17+
"start": "npm i && ts-node ./src/main.ts",
1718
"lint": "eslint ./src",
18-
"postinstall_": "patch-package"
19+
"postinstall": "patch-package"
1920
},
2021
"dependencies": {
21-
"@babel/generator": "^7.12.11",
22-
"@babel/parser": "^7.12.11",
23-
"@babel/traverse": "^7.12.12",
24-
"@babel/types": "^7.12.11",
25-
"chalk": "^4.1.0",
26-
"cli-progress": "^3.8.2",
27-
"command-line-args": "^5.0.2",
28-
"debug": "^4.3.1",
29-
"eslint": "^7.16.0",
30-
"eslint-plugin-react": "^7.21.5",
31-
"fs-extra": "^10.0.0",
32-
"prettier": "^2.2.1"
22+
"@babel/generator": "7.12.11",
23+
"@babel/parser": "7.12.11",
24+
"@babel/traverse": "7.12.12",
25+
"@babel/types": "7.12.11",
26+
"chalk": "4.1.0",
27+
"cli-progress": "3.8.2",
28+
"command-line-args": "5.0.2",
29+
"debug": "4.3.1",
30+
"eslint": "7.18.0",
31+
"eslint-plugin-react": "7.21.5",
32+
"fs-extra": "9.0.1",
33+
"prettier": "2.2.1"
3334
},
3435
"devDependencies": {
35-
"@types/babel__generator": "^7.6.2",
36-
"@types/babel__traverse": "^7.11.0",
37-
"@types/cli-progress": "^3.8.0",
38-
"@types/command-line-args": "^5.0.0",
39-
"@types/debug": "^4.1.5",
40-
"@types/eslint": "^7.2.6",
41-
"@types/fs-extra": "^9.0.6",
42-
"@types/prettier": "^2.1.6",
43-
"@typescript-eslint/eslint-plugin": "^4.11.0",
44-
"@typescript-eslint/parser": "^4.11.0",
45-
"eslint-config-airbnb-typescript": "^12.0.0",
46-
"eslint-plugin-import": "^2.22.1",
47-
"eslint-plugin-jsx-a11y": "^6.4.1",
48-
"eslint-plugin-node": "^11.1.0",
49-
"eslint-plugin-react-hooks": "^4.2.0",
50-
"jest": "^27.0.4",
51-
"patch-package": "^6.0.5",
52-
"typescript": "^4.1.3"
36+
"@types/babel__generator": "7.6.2",
37+
"@types/babel__traverse": "7.11.0",
38+
"@types/cli-progress": "3.8.0",
39+
"@types/command-line-args": "5.0.0",
40+
"@types/debug": "4.1.5",
41+
"@types/eslint": "7.2.6",
42+
"@types/fs-extra": "9.0.6",
43+
"@types/prettier": "2.1.6",
44+
"@typescript-eslint/eslint-plugin": "4.11.0",
45+
"@typescript-eslint/parser": "4.11.0",
46+
"eslint-config-airbnb-typescript": "12.0.0",
47+
"eslint-plugin-import": "2.22.1",
48+
"eslint-plugin-jsx-a11y": "6.4.1",
49+
"eslint-plugin-node": "11.1.0",
50+
"eslint-plugin-react-hooks": "4.2.0",
51+
"jest": "26.6.3",
52+
"patch-package": "^6.4.7",
53+
"ts-node": "10.4.0",
54+
"typescript": "4.1.3"
5355
},
5456
"bugs": {
5557
"url": "https://github.com/nomi9995/react-native-decompiler/issues"

patches/@types+babel__traverse+7.0.15.patch renamed to patches/@types+babel__traverse+7.11.0.patch

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/node_modules/@types/babel__traverse/index.d.ts b/node_modules/@types/babel__traverse/index.d.ts
2-
index 827bae1..1101116 100644
2+
index ab63f9d..11bed48 100644
33
--- a/node_modules/@types/babel__traverse/index.d.ts
44
+++ b/node_modules/@types/babel__traverse/index.d.ts
55
@@ -108,6 +108,8 @@ export class Scope {
@@ -11,7 +11,16 @@ index 827bae1..1101116 100644
1111
rename(oldName: string, newName?: string, block?: Node): void;
1212

1313
dump(): void;
14-
@@ -529,6 +531,8 @@ export class NodePath<T = Node> {
14+
@@ -120,7 +122,7 @@ export class Scope {
15+
16+
registerConstantViolation(path: NodePath): void;
17+
18+
- registerBinding(kind: string, path: NodePath, bindingPath?: NodePath): void;
19+
+ registerBinding<T>(kind: string, path: NodePath<T>, bindingPath?: NodePath<T>): void;
20+
21+
addGlobal(node: Node): void;
22+
23+
@@ -538,6 +540,8 @@ export class NodePath<T = Node> {
1524
getCompletionRecords(): NodePath[];
1625

1726
getSibling(key: string | number): NodePath;
@@ -20,7 +29,7 @@ index 827bae1..1101116 100644
2029
getAllPrevSiblings(): NodePath[];
2130
getAllNextSiblings(): NodePath[];
2231

23-
@@ -540,7 +544,7 @@ export class NodePath<T = Node> {
32+
@@ -549,7 +553,7 @@ export class NodePath<T = Node> {
2433
: T[K] extends Node | null | undefined
2534
? NodePath<T[K]>
2635
: never;
Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -27,31 +27,31 @@ index 9e841e7..0000000
2727
- SOFTWARE
2828
diff --git a/node_modules/@types/fs-extra/README.md b/node_modules/@types/fs-extra/README.md
2929
deleted file mode 100644
30-
index 91ab064..0000000
30+
index 8dc3274..0000000
3131
--- a/node_modules/@types/fs-extra/README.md
3232
+++ /dev/null
3333
@@ -1,16 +0,0 @@
34-
-# Installation
35-
-> `npm install --save @types/fs-extra`
36-
-
37-
-# Summary
38-
-This package contains type definitions for fs-extra (https://github.com/jprichardson/node-fs-extra).
39-
-
40-
-# Details
41-
-Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fs-extra.
42-
-
43-
-### Additional Details
44-
- * Last updated: Tue, 19 May 2020 18:23:53 GMT
45-
- * Dependencies: [@types/node](https://npmjs.com/package/@types/node)
46-
- * Global values: none
47-
-
48-
-# Credits
49-
-These definitions were written by [Alan Agius](https://github.com/alan-agius4), [midknight41](https://github.com/midknight41), [Brendan Forster](https://github.com/shiftkey), [Mees van Dijk](https://github.com/mees-), [Justin Rockwood](https://github.com/jrockwood), [Sang Dang](https://github.com/sangdth), [Florian Keller](https://github.com/ffflorian), and [Piotr Błażejewicz](https://github.com/peterblazejewicz).
34+
-# Installation
35+
-> `npm install --save @types/fs-extra`
36+
-
37+
-# Summary
38+
-This package contains type definitions for fs-extra (https://github.com/jprichardson/node-fs-extra).
39+
-
40+
-# Details
41+
-Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fs-extra.
42+
-
43+
-### Additional Details
44+
- * Last updated: Wed, 23 Dec 2020 21:09:59 GMT
45+
- * Dependencies: [@types/node](https://npmjs.com/package/@types/node)
46+
- * Global values: none
47+
-
48+
-# Credits
49+
-These definitions were written by [Alan Agius](https://github.com/alan-agius4), [midknight41](https://github.com/midknight41), [Brendan Forster](https://github.com/shiftkey), [Mees van Dijk](https://github.com/mees-), [Justin Rockwood](https://github.com/jrockwood), [Sang Dang](https://github.com/sangdth), [Florian Keller](https://github.com/ffflorian), [Piotr Błażejewicz](https://github.com/peterblazejewicz), and [Tiger Oakes](https://github.com/NotWoods).
5050
diff --git a/node_modules/@types/fs-extra/index.d.ts b/node_modules/@types/fs-extra/index.d.ts
51-
index 66ac54b..3031e5f 100644
51+
index e253b7f..878ec3f 100644
5252
--- a/node_modules/@types/fs-extra/index.d.ts
5353
+++ b/node_modules/@types/fs-extra/index.d.ts
54-
@@ -55,15 +55,15 @@ export function outputFile(file: string, data: any, callback: (err: Error) => vo
54+
@@ -58,15 +58,15 @@ export function outputFile(file: string, data: any, callback: (err: Error) => vo
5555
export function outputFile(file: string, data: any, options: WriteFileOptions | string, callback: (err: Error) => void): void;
5656
export function outputFileSync(file: string, data: any, options?: WriteFileOptions | string): void;
5757

@@ -75,7 +75,7 @@ index 66ac54b..3031e5f 100644
7575

7676
export function remove(dir: string): Promise<void>;
7777
export function remove(dir: string, callback: (err: Error) => void): void;
78-
@@ -78,15 +78,15 @@ export function outputJson(file: string, data: any, callback: (err: Error) => vo
78+
@@ -81,15 +81,15 @@ export function outputJson(file: string, data: any, callback: (err: Error) => vo
7979
export function outputJsonSync(file: string, data: any, options?: WriteOptions): void;
8080
export function outputJSONSync(file: string, data: any, options?: WriteOptions): void;
8181

src/decompilers/evaluators/defaultInteropEvaluator.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ import {
1919
isIdentifier,
2020
} from '@babel/types';
2121
import { Plugin } from '../../plugin';
22-
import Module from '../../module';
23-
import CmdArgs from '../../interfaces/cmdArgs';
2422

2523
/**
2624
* Evaluates babel default interops

src/editors/converters/babelInlineConverters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export default class BabelInlineConverters extends Plugin {
9494
this.debugLog('removed inline babel interopRequireDefault inline:');
9595
this.debugLog(this.debugPathToCode(path));
9696

97-
this.mergeBindings(path, node.id.name, moduleSourcePath.node.id.name);
97+
this.mergeBindings(path as any, node.id.name, moduleSourcePath.node.id.name);
9898

9999
path.scope.bindings[test.left.left.name].path.remove();
100100
}

src/plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export abstract class Plugin {
5757

5858
protected debugLog(...args: unknown[]): void {
5959
if (args.length === 0) throw new Error('no args');
60-
debug(this.getDebugName())(...args);
60+
debug(this.getDebugName())({ ...args });
6161
}
6262

6363
/**

0 commit comments

Comments
 (0)