@efffrida/il2cpp-bridge 0.0.13 → 0.0.14

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
@@ -1,3 +1,3 @@
1
1
  # @efffrida/il2cpp-bridge
2
2
 
3
- Not sure what this is going to turn out to be yet
3
+ Effect integration for <https://github.com/vfsfitvnm/frida-il2cpp-bridge>
@@ -10,5 +10,5 @@ import * as Effect from "effect/Effect";
10
10
  *
11
11
  * @since 1.0.0
12
12
  */
13
- export declare const il2cppPerformEffect: <X, E, R>(effect: Effect.Effect<X, E, R>, flag?: "free" | "bind" | "leak" | "main" | undefined) => Effect.Effect<void, E, R>;
13
+ export declare const il2cppPerformEffect: <X, E, R>(effect: Effect.Effect<X, E, R>, flag?: "free" | "bind" | "leak" | "main" | undefined) => Effect.Effect<X, E, R>;
14
14
  //# sourceMappingURL=FridaIl2cppBridge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FridaIl2cppBridge.d.ts","sourceRoot":"","sources":["../src/FridaIl2cppBridge.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,qBAAqB,CAAC;AAE7B,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EACtC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAC9B,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,KACnD,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAgBxB,CAAC"}
@@ -5,7 +5,6 @@
5
5
  */
6
6
  import "frida-il2cpp-bridge";
7
7
  import * as Effect from "effect/Effect";
8
- import * as Exit from "effect/Exit";
9
8
  import * as Runtime from "effect/Runtime";
10
9
  /**
11
10
  * Attaches the caller thread to Il2Cpp domain and executes the given block.
@@ -18,7 +17,6 @@ export const il2cppPerformEffect = /*#__PURE__*/Effect.fnUntraced(function* (eff
18
17
  const exit = yield* Effect.promise(abortSignal => Il2Cpp.perform(() => runPromiseExit(effect, {
19
18
  signal: abortSignal
20
19
  }), flag));
21
- const voided = Exit.asVoid(exit);
22
- return yield* voided;
20
+ return yield* exit;
23
21
  });
24
22
  //# sourceMappingURL=FridaIl2cppBridge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FridaIl2cppBridge.js","names":["Effect","Runtime","il2cppPerformEffect","fnUntraced","effect","flag","runtime","runPromiseExit","exit","promise","abortSignal","Il2Cpp","perform","signal"],"sources":["../src/FridaIl2cppBridge.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;AAMA,OAAO,qBAAqB;AAE5B,OAAO,KAAKA,MAAM,MAAM,eAAe;AACvC,OAAO,KAAKC,OAAO,MAAM,gBAAgB;AAEzC;;;;;AAKA,OAAO,MAAMC,mBAAmB,gBAGFF,MAAM,CAACG,UAAU,CAAC,WAC5CC,MAA8B,EAC9BC,IAAoD;EAEpD,MAAMC,OAAO,GAAG,OAAON,MAAM,CAACM,OAAO,EAAK;EAC1C,MAAMC,cAAc,GAAGN,OAAO,CAACM,cAAc,CAACD,OAAO,CAAC;EACtD,MAAME,IAAI,GAAG,OAAOR,MAAM,CAACS,OAAO,CAAEC,WAAW,IAC3CC,MAAM,CAACC,OAAO,CACV,MACIL,cAAc,CAACH,MAAM,EAAE;IACnBS,MAAM,EAAEH;GACX,CAAC,EACNL,IAAI,CACP,CACJ;EACD,OAAO,OAAOG,IAAI;AACtB,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ /**
5
+ * FridaIl2cppBridge.ts
6
+ *
7
+ * @since 1.0.0
8
+ */
9
+ export * as FridaIl2cppBridge from "./FridaIl2cppBridge.ts";
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;GAIG;AACH,OAAO,KAAK,iBAAiB,MAAM,wBAAwB,CAAA"}
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
1
4
  /**
2
5
  * FridaIl2cppBridge.ts
3
6
  *
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["FridaIl2cppBridge"],"sources":["../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA;;;AAIA;;;;;AAKA,OAAO,KAAKA,iBAAiB,MAAM,wBAAwB","ignoreList":[]}
package/package.json CHANGED
@@ -1,51 +1,63 @@
1
1
  {
2
2
  "name": "@efffrida/il2cpp-bridge",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "description": "effect-ts frida-il2cpp-bridge",
5
- "license": "GPL-3.0-only",
5
+ "keywords": [
6
+ "frida.re",
7
+ "reverse engineering",
8
+ "effect-ts"
9
+ ],
10
+ "homepage": "https://github.com/leonitousconforti/efffrida",
6
11
  "repository": {
7
12
  "type": "git",
8
13
  "url": "https://github.com/leonitousconforti/efffrida.git",
9
14
  "directory": "packages/il2cpp-bridge"
10
15
  },
11
- "sideEffects": [],
16
+ "license": "GPL-3.0-only",
12
17
  "author": "Leo Conforti <leo@leoconforti.us> (https://leoconforti.us)",
13
- "homepage": "https://github.com/leonitousconforti/efffrida",
18
+ "sideEffects": [],
19
+ "type": "module",
20
+ "exports": {
21
+ "./package.json": "./package.json",
22
+ ".": "./dist/index.ts",
23
+ "./*": "./dist/*.ts",
24
+ "./internal/*": null
25
+ },
26
+ "files": [
27
+ "src/**/*.ts",
28
+ "dist/**/*.js",
29
+ "dist/**/*.js.map",
30
+ "dist/**/*.d.ts",
31
+ "dist/**/*.d.ts.map"
32
+ ],
14
33
  "dependencies": {
15
- "frida-il2cpp-bridge": "0.11.0"
34
+ "frida-il2cpp-bridge": "0.12.1"
35
+ },
36
+ "devDependencies": {
37
+ "@effect/vitest": "0.27.0",
38
+ "@types/frida-gum": "19.0.1",
39
+ "@types/node": "24.10.0",
40
+ "core-js": "3.46.0",
41
+ "effect": "3.19.0",
42
+ "vitest": "4.0.7",
43
+ "@efffrida/vitest-pool": "0.0.1"
16
44
  },
17
45
  "peerDependencies": {
18
- "effect": "3.14.22"
46
+ "effect": "3.19.0"
19
47
  },
20
- "main": "./dist/cjs/index.js",
21
- "module": "./dist/esm/index.js",
22
- "types": "./dist/dts/index.d.ts",
23
- "exports": {
24
- "./package.json": "./package.json",
25
- ".": {
26
- "types": "./dist/dts/index.d.ts",
27
- "import": "./dist/esm/index.js",
28
- "default": "./dist/cjs/index.js"
29
- },
30
- "./FridaIl2cppBridge": {
31
- "types": "./dist/dts/FridaIl2cppBridge.d.ts",
32
- "import": "./dist/esm/FridaIl2cppBridge.js",
33
- "default": "./dist/cjs/FridaIl2cppBridge.js"
34
- },
35
- "./index": {
36
- "types": "./dist/dts/index.d.ts",
37
- "import": "./dist/esm/index.js",
38
- "default": "./dist/cjs/index.js"
39
- }
48
+ "publishConfig": {
49
+ "access": "public"
40
50
  },
41
- "typesVersions": {
42
- "*": {
43
- "FridaIl2cppBridge": [
44
- "./dist/dts/FridaIl2cppBridge.d.ts"
45
- ],
46
- "index": [
47
- "./dist/dts/index.d.ts"
48
- ]
49
- }
51
+ "tags": [
52
+ "frida.re",
53
+ "reverse engineering",
54
+ "effect-ts"
55
+ ],
56
+ "scripts": {
57
+ "build": "tsc -b tsconfig.build.json && babel dist --plugins annotate-pure-calls --out-dir dist --source-maps",
58
+ "check": "tsc -b tsconfig.json",
59
+ "codegen": "build-utils prepare-v4",
60
+ "coverage": "vitest --coverage",
61
+ "test": "vitest"
50
62
  }
51
63
  }
@@ -7,7 +7,6 @@
7
7
  import "frida-il2cpp-bridge";
8
8
 
9
9
  import * as Effect from "effect/Effect";
10
- import * as Exit from "effect/Exit";
11
10
  import * as Runtime from "effect/Runtime";
12
11
 
13
12
  /**
@@ -18,7 +17,7 @@ import * as Runtime from "effect/Runtime";
18
17
  export const il2cppPerformEffect: <X, E, R>(
19
18
  effect: Effect.Effect<X, E, R>,
20
19
  flag?: "free" | "bind" | "leak" | "main" | undefined
21
- ) => Effect.Effect<void, E, R> = Effect.fnUntraced(function* <X, E, R>(
20
+ ) => Effect.Effect<X, E, R> = Effect.fnUntraced(function* <X, E, R>(
22
21
  effect: Effect.Effect<X, E, R>,
23
22
  flag?: "free" | "bind" | "leak" | "main" | undefined
24
23
  ) {
@@ -33,6 +32,5 @@ export const il2cppPerformEffect: <X, E, R>(
33
32
  flag
34
33
  )
35
34
  );
36
- const voided = Exit.asVoid(exit);
37
- return yield* voided;
35
+ return yield* exit;
38
36
  });
package/src/index.ts CHANGED
@@ -1,6 +1,10 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+
1
5
  /**
2
6
  * FridaIl2cppBridge.ts
3
7
  *
4
8
  * @since 1.0.0
5
9
  */
6
- export * as FridaIl2cppBridge from "./FridaIl2cppBridge.js"
10
+ export * as FridaIl2cppBridge from "./FridaIl2cppBridge.ts"
@@ -1,6 +0,0 @@
1
- {
2
- "sideEffects": [],
3
- "main": "../dist/cjs/FridaIl2cppBridge.js",
4
- "module": "../dist/esm/FridaIl2cppBridge.js",
5
- "types": "../dist/dts/FridaIl2cppBridge.d.ts"
6
- }
@@ -1,32 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.il2cppPerformEffect = void 0;
7
- require("frida-il2cpp-bridge");
8
- var Effect = _interopRequireWildcard(require("effect/Effect"));
9
- var Exit = _interopRequireWildcard(require("effect/Exit"));
10
- var Runtime = _interopRequireWildcard(require("effect/Runtime"));
11
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
12
- /**
13
- * FridaIl2cppBridge.ts
14
- *
15
- * @since 1.0.0
16
- */
17
-
18
- /**
19
- * Attaches the caller thread to Il2Cpp domain and executes the given block.
20
- *
21
- * @since 1.0.0
22
- */
23
- const il2cppPerformEffect = exports.il2cppPerformEffect = /*#__PURE__*/Effect.fnUntraced(function* (effect, flag) {
24
- const runtime = yield* Effect.runtime();
25
- const runPromiseExit = Runtime.runPromiseExit(runtime);
26
- const exit = yield* Effect.promise(abortSignal => Il2Cpp.perform(() => runPromiseExit(effect, {
27
- signal: abortSignal
28
- }), flag));
29
- const voided = Exit.asVoid(exit);
30
- return yield* voided;
31
- });
32
- //# sourceMappingURL=FridaIl2cppBridge.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FridaIl2cppBridge.js","names":["require","Effect","_interopRequireWildcard","Exit","Runtime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","il2cppPerformEffect","exports","fnUntraced","effect","flag","runtime","runPromiseExit","exit","promise","abortSignal","Il2Cpp","perform","signal","voided","asVoid"],"sources":["../../src/FridaIl2cppBridge.ts"],"sourcesContent":[null],"mappings":";;;;;;AAMAA,OAAA;AAEA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,IAAA,GAAAD,uBAAA,CAAAF,OAAA;AACA,IAAAI,OAAA,GAAAF,uBAAA,CAAAF,OAAA;AAAyC,SAAAE,wBAAAG,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OA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AM,EAAE;IACnBS,MAAM,EAAEH;GACX,CAAC,EACNL,IAAI,CACP,CACJ;EACD,MAAMS,MAAM,GAAGlC,IAAI,CAACmC,MAAM,CAACP,IAAI,CAAC;EAChC,OAAO,OAAOM,MAAM;AACxB,CAAC,CAAC","ignoreList":[]}
package/dist/cjs/index.js DELETED
@@ -1,10 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.FridaIl2cppBridge = void 0;
7
- var _FridaIl2cppBridge = _interopRequireWildcard(require("./FridaIl2cppBridge.js"));
8
- exports.FridaIl2cppBridge = _FridaIl2cppBridge;
9
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
10
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"FridaIl2cppBridge.d.ts","sourceRoot":"","sources":["../../src/FridaIl2cppBridge.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,qBAAqB,CAAC;AAE7B,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EACtC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAC9B,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,KACnD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAiB3B,CAAC"}
@@ -1,7 +0,0 @@
1
- /**
2
- * FridaIl2cppBridge.ts
3
- *
4
- * @since 1.0.0
5
- */
6
- export * as FridaIl2cppBridge from "./FridaIl2cppBridge.js";
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,iBAAiB,MAAM,wBAAwB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"FridaIl2cppBridge.js","names":["Effect","Exit","Runtime","il2cppPerformEffect","fnUntraced","effect","flag","runtime","runPromiseExit","exit","promise","abortSignal","Il2Cpp","perform","signal","voided","asVoid"],"sources":["../../src/FridaIl2cppBridge.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;AAMA,OAAO,qBAAqB;AAE5B,OAAO,KAAKA,MAAM,MAAM,eAAe;AACvC,OAAO,KAAKC,IAAI,MAAM,aAAa;AACnC,OAAO,KAAKC,OAAO,MAAM,gBAAgB;AAEzC;;;;;AAKA,OAAO,MAAMC,mBAAmB,gBAGCH,MAAM,CAACI,UAAU,CAAC,WAC/CC,MAA8B,EAC9BC,IAAoD;EAEpD,MAAMC,OAAO,GAAG,OAAOP,MAAM,CAACO,OAAO,EAAK;EAC1C,MAAMC,cAAc,GAAGN,OAAO,CAACM,cAAc,CAACD,OAAO,CAAC;EACtD,MAAME,IAAI,GAAG,OAAOT,MAAM,CAACU,OAAO,CAAEC,WAAW,IAC3CC,MAAM,CAACC,OAAO,CACV,MACIL,cAAc,CAACH,MAAM,EAAE;IACnBS,MAAM,EAAEH;GACX,CAAC,EACNL,IAAI,CACP,CACJ;EACD,MAAMS,MAAM,GAAGd,IAAI,CAACe,MAAM,CAACP,IAAI,CAAC;EAChC,OAAO,OAAOM,MAAM;AACxB,CAAC,CAAC","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["FridaIl2cppBridge"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;AAKA,OAAO,KAAKA,iBAAiB,MAAM,wBAAwB","ignoreList":[]}
@@ -1,4 +0,0 @@
1
- {
2
- "type": "module",
3
- "sideEffects": []
4
- }
@@ -1,6 +0,0 @@
1
- {
2
- "sideEffects": [],
3
- "main": "../dist/cjs/index.js",
4
- "module": "../dist/esm/index.js",
5
- "types": "../dist/dts/index.d.ts"
6
- }