frida 16.4.10 → 16.5.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.
@@ -9,5 +9,7 @@ export declare class Cancellable {
9
9
  throwIfCancelled(): void;
10
10
  cancel(): void;
11
11
  [inspect.custom](): string;
12
+ combine(other: Cancellable): Cancellable;
13
+ static withTimeout(ms: any): Cancellable;
12
14
  }
13
15
  export type CancelledHandler = () => void;
@@ -22,5 +22,20 @@ class Cancellable {
22
22
  [util_1.inspect.custom]() {
23
23
  return "Cancellable {}";
24
24
  }
25
+ combine(other) {
26
+ const cancel = new Cancellable();
27
+ this.cancelled.connect(() => cancel.cancel());
28
+ other.cancelled.connect(() => cancel.cancel());
29
+ if (this.isCancelled)
30
+ cancel.cancel();
31
+ if (other.isCancelled)
32
+ cancel.cancel();
33
+ return cancel;
34
+ }
35
+ static withTimeout(ms) {
36
+ const cancel = new Cancellable();
37
+ setTimeout(() => cancel.cancel(), ms).unref();
38
+ return cancel;
39
+ }
25
40
  }
26
41
  exports.Cancellable = Cancellable;
@@ -28,6 +28,21 @@ export class Cancellable {
28
28
  [inspect.custom]() {
29
29
  return "Cancellable {}";
30
30
  }
31
+
32
+ combine(other: Cancellable): Cancellable {
33
+ const cancel = new Cancellable();
34
+ this.cancelled.connect(() => cancel.cancel());
35
+ other.cancelled.connect(() => cancel.cancel());
36
+ if (this.isCancelled) cancel.cancel();
37
+ if (other.isCancelled) cancel.cancel();
38
+ return cancel;
39
+ }
40
+
41
+ public static withTimeout(ms): Cancellable {
42
+ const cancel = new Cancellable();
43
+ setTimeout(() => cancel.cancel(), ms).unref();
44
+ return cancel;
45
+ }
31
46
  }
32
47
 
33
48
  export type CancelledHandler = () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "frida",
3
- "version": "16.4.10",
3
+ "version": "16.5.2",
4
4
  "authors": [
5
5
  "Frida Developers"
6
6
  ],
package/releng/deps.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [dependencies]
2
- version = "20240729"
3
- bootstrap_version = "20240627"
2
+ version = "20240913"
3
+ bootstrap_version = "20240729"
4
4
 
5
5
  [ninja]
6
6
  scope = "toolchain"
@@ -20,7 +20,7 @@ dependencies = [
20
20
  [vala]
21
21
  scope = "toolchain"
22
22
  name = "Vala"
23
- version = "2c7a02d29332dedfdf803ce21b0540bc8461a035"
23
+ version = "45ce074ddef23c41ed6286152f761c5bd348b517"
24
24
  url = "https://github.com/frida/vala.git"
25
25
  dependencies = [
26
26
  "glib",
@@ -338,7 +338,7 @@ options = [
338
338
 
339
339
  [quickjs]
340
340
  name = "QuickJS"
341
- version = "b3582307ed491e5efb5e54fe14d6bd5675857b51"
341
+ version = "12de2e4904b63405052508c891b215d056962c18"
342
342
  url = "https://github.com/frida/quickjs.git"
343
343
  options = [
344
344
  "-Dlibc=false",
@@ -1,6 +1,6 @@
1
1
  [wrap-git]
2
2
  url = https://github.com/frida/frida-core.git
3
- revision = 16.4.10
3
+ revision = 16.5.2
4
4
  depth = 1
5
5
 
6
6
  [provide]