frida 16.1.3 → 16.1.5

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/dist/bus.d.ts CHANGED
@@ -12,5 +12,5 @@ export declare class Bus {
12
12
  post(message: any, data?: Buffer | null): void;
13
13
  [inspect.custom](depth: any, options: any): string;
14
14
  }
15
- export declare type BusDetachedHandler = () => void;
16
- export declare type BusMessageHandler = (message: any, data: Buffer | null) => void;
15
+ export type BusDetachedHandler = () => void;
16
+ export type BusMessageHandler = (message: any, data: Buffer | null) => void;
@@ -10,4 +10,4 @@ export declare class Cancellable {
10
10
  cancel(): void;
11
11
  [inspect.custom](): string;
12
12
  }
13
- export declare type CancelledHandler = () => void;
13
+ export type CancelledHandler = () => void;
package/dist/child.js CHANGED
@@ -6,4 +6,4 @@ var ChildOrigin;
6
6
  ChildOrigin["Fork"] = "fork";
7
7
  ChildOrigin["Exec"] = "exec";
8
8
  ChildOrigin["Spawn"] = "spawn";
9
- })(ChildOrigin = exports.ChildOrigin || (exports.ChildOrigin = {}));
9
+ })(ChildOrigin || (exports.ChildOrigin = ChildOrigin = {}));
package/dist/device.d.ts CHANGED
@@ -47,21 +47,22 @@ export declare class Device {
47
47
  injectLibraryFile(target: TargetProcess, path: string, entrypoint: string, data: string, cancellable?: Cancellable): Promise<InjecteeID>;
48
48
  injectLibraryBlob(target: TargetProcess, blob: Buffer, entrypoint: string, data: string, cancellable?: Cancellable): Promise<InjecteeID>;
49
49
  openChannel(address: string, cancellable?: Cancellable): Promise<IOStream>;
50
+ unpair(cancellable?: Cancellable): Promise<void>;
50
51
  private getPid;
51
52
  [inspect.custom](depth: any, options: any): string;
52
53
  }
53
- export declare type ProcessID = number;
54
- export declare type ProcessName = string;
55
- export declare type InjecteeID = number;
56
- export declare type FileDescriptor = number;
57
- export declare type SpawnAddedHandler = (spawn: Spawn) => void;
58
- export declare type SpawnRemovedHandler = (spawn: Spawn) => void;
59
- export declare type ChildAddedHandler = (child: Child) => void;
60
- export declare type ChildRemovedHandler = (child: Child) => void;
61
- export declare type ProcessCrashedHandler = (crash: Crash) => void;
62
- export declare type OutputHandler = (pid: ProcessID, fd: FileDescriptor, data: Buffer) => void;
63
- export declare type UninjectedHandler = (id: InjecteeID) => void;
64
- export declare type DeviceLostHandler = () => void;
54
+ export type ProcessID = number;
55
+ export type ProcessName = string;
56
+ export type InjecteeID = number;
57
+ export type FileDescriptor = number;
58
+ export type SpawnAddedHandler = (spawn: Spawn) => void;
59
+ export type SpawnRemovedHandler = (spawn: Spawn) => void;
60
+ export type ChildAddedHandler = (child: Child) => void;
61
+ export type ChildRemovedHandler = (child: Child) => void;
62
+ export type ProcessCrashedHandler = (crash: Crash) => void;
63
+ export type OutputHandler = (pid: ProcessID, fd: FileDescriptor, data: Buffer) => void;
64
+ export type UninjectedHandler = (id: InjecteeID) => void;
65
+ export type DeviceLostHandler = () => void;
65
66
  export declare enum DeviceType {
66
67
  Local = "local",
67
68
  Remote = "remote",
@@ -142,7 +143,7 @@ export declare enum Stdio {
142
143
  Inherit = "inherit",
143
144
  Pipe = "pipe"
144
145
  }
145
- export declare type TargetProcess = ProcessID | ProcessName;
146
+ export type TargetProcess = ProcessID | ProcessName;
146
147
  export interface SessionOptions {
147
148
  realm?: Realm;
148
149
  persistTimeout?: number;
package/dist/device.js CHANGED
@@ -131,6 +131,9 @@ class Device {
131
131
  async openChannel(address, cancellable) {
132
132
  return new iostream_1.IOStream(await this.impl.openChannel(address, cancellable));
133
133
  }
134
+ async unpair(cancellable) {
135
+ await this.impl.unpair(cancellable);
136
+ }
134
137
  async getPid(target, cancellable) {
135
138
  if (typeof target === "number") {
136
139
  return target;
@@ -153,7 +156,7 @@ var DeviceType;
153
156
  DeviceType["Local"] = "local";
154
157
  DeviceType["Remote"] = "remote";
155
158
  DeviceType["Usb"] = "usb";
156
- })(DeviceType = exports.DeviceType || (exports.DeviceType = {}));
159
+ })(DeviceType || (exports.DeviceType = DeviceType = {}));
157
160
  /**
158
161
  * How much data to collect about a given application or process.
159
162
  */
@@ -171,14 +174,14 @@ var Scope;
171
174
  * Collect all parameters, including icons.
172
175
  */
173
176
  Scope["Full"] = "full";
174
- })(Scope = exports.Scope || (exports.Scope = {}));
177
+ })(Scope || (exports.Scope = Scope = {}));
175
178
  var Stdio;
176
179
  (function (Stdio) {
177
180
  Stdio["Inherit"] = "inherit";
178
181
  Stdio["Pipe"] = "pipe";
179
- })(Stdio = exports.Stdio || (exports.Stdio = {}));
182
+ })(Stdio || (exports.Stdio = Stdio = {}));
180
183
  var Realm;
181
184
  (function (Realm) {
182
185
  Realm["Native"] = "native";
183
186
  Realm["Emulated"] = "emulated";
184
- })(Realm = exports.Realm || (exports.Realm = {}));
187
+ })(Realm || (exports.Realm = Realm = {}));
@@ -20,6 +20,6 @@ export interface RemoteDeviceOptions {
20
20
  token?: string;
21
21
  keepaliveInterval?: number;
22
22
  }
23
- export declare type DeviceAddedHandler = (device: Device) => void;
24
- export declare type DeviceRemovedHandler = (device: Device) => void;
25
- export declare type DevicesChangedHandler = () => void;
23
+ export type DeviceAddedHandler = (device: Device) => void;
24
+ export type DeviceRemovedHandler = (device: Device) => void;
25
+ export type DevicesChangedHandler = () => void;
@@ -14,7 +14,7 @@ export interface EndpointParametersSubset {
14
14
  authentication?: AuthenticationScheme;
15
15
  assetRoot?: string;
16
16
  }
17
- export declare type AuthenticationScheme = TokenAuthenticationScheme | CallbackAuthenticationScheme;
17
+ export type AuthenticationScheme = TokenAuthenticationScheme | CallbackAuthenticationScheme;
18
18
  export interface TokenAuthenticationScheme {
19
19
  scheme: "token";
20
20
  token: string;
@@ -23,4 +23,4 @@ export interface CallbackAuthenticationScheme {
23
23
  scheme: "callback";
24
24
  callback: AuthenticationCallback;
25
25
  }
26
- export declare type AuthenticationCallback = (token: string) => Promise<AuthenticatedSessionInfo>;
26
+ export type AuthenticationCallback = (token: string) => Promise<AuthenticatedSessionInfo>;
package/dist/icon.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- export declare type Icon = RGBAIcon | PNGIcon;
2
+ export type Icon = RGBAIcon | PNGIcon;
3
3
  export interface RGBAIcon {
4
4
  format: "rgba";
5
5
  width: number;
package/dist/index.d.ts CHANGED
@@ -19,125 +19,125 @@ import * as sessionModule from "./session";
19
19
  import * as socketAddressModule from "./socket_address";
20
20
  import * as spawnModule from "./spawn";
21
21
  import * as systemParametersModule from "./system_parameters";
22
- export declare type DeviceManager = deviceManagerModule.DeviceManager;
22
+ export type DeviceManager = deviceManagerModule.DeviceManager;
23
23
  export declare const DeviceManager: typeof deviceManagerModule.DeviceManager;
24
- export declare type RemoteDeviceOptions = deviceManagerModule.RemoteDeviceOptions;
25
- export declare type DeviceAddedHandler = deviceManagerModule.DeviceAddedHandler;
26
- export declare type DeviceRemovedHandler = deviceManagerModule.DeviceRemovedHandler;
27
- export declare type DevicesChangedHandler = deviceManagerModule.DevicesChangedHandler;
28
- export declare type Device = deviceModule.Device;
24
+ export type RemoteDeviceOptions = deviceManagerModule.RemoteDeviceOptions;
25
+ export type DeviceAddedHandler = deviceManagerModule.DeviceAddedHandler;
26
+ export type DeviceRemovedHandler = deviceManagerModule.DeviceRemovedHandler;
27
+ export type DevicesChangedHandler = deviceManagerModule.DevicesChangedHandler;
28
+ export type Device = deviceModule.Device;
29
29
  export declare const Device: typeof deviceModule.Device;
30
- export declare type ProcessID = deviceModule.ProcessID;
31
- export declare type ProcessName = deviceModule.ProcessName;
32
- export declare type InjecteeID = deviceModule.InjecteeID;
33
- export declare type FileDescriptor = deviceModule.FileDescriptor;
34
- export declare type SpawnAddedHandler = deviceModule.SpawnAddedHandler;
35
- export declare type SpawnRemovedHandler = deviceModule.SpawnRemovedHandler;
36
- export declare type ChildAddedHandler = deviceModule.ChildAddedHandler;
37
- export declare type ChildRemovedHandler = deviceModule.ChildRemovedHandler;
38
- export declare type OutputHandler = deviceModule.OutputHandler;
39
- export declare type UninjectedHandler = deviceModule.UninjectedHandler;
40
- export declare type DeviceLostHandler = deviceModule.DeviceLostHandler;
41
- export declare type DeviceType = deviceModule.DeviceType;
30
+ export type ProcessID = deviceModule.ProcessID;
31
+ export type ProcessName = deviceModule.ProcessName;
32
+ export type InjecteeID = deviceModule.InjecteeID;
33
+ export type FileDescriptor = deviceModule.FileDescriptor;
34
+ export type SpawnAddedHandler = deviceModule.SpawnAddedHandler;
35
+ export type SpawnRemovedHandler = deviceModule.SpawnRemovedHandler;
36
+ export type ChildAddedHandler = deviceModule.ChildAddedHandler;
37
+ export type ChildRemovedHandler = deviceModule.ChildRemovedHandler;
38
+ export type OutputHandler = deviceModule.OutputHandler;
39
+ export type UninjectedHandler = deviceModule.UninjectedHandler;
40
+ export type DeviceLostHandler = deviceModule.DeviceLostHandler;
41
+ export type DeviceType = deviceModule.DeviceType;
42
42
  export declare const DeviceType: typeof deviceModule.DeviceType;
43
- export declare type FrontmostQueryOptions = deviceModule.FrontmostQueryOptions;
44
- export declare type ApplicationQueryOptions = deviceModule.ApplicationQueryOptions;
45
- export declare type ProcessQueryOptions = deviceModule.ProcessQueryOptions;
46
- export declare type ProcessMatchOptions = deviceModule.ProcessMatchOptions;
47
- export declare type Scope = deviceModule.Scope;
43
+ export type FrontmostQueryOptions = deviceModule.FrontmostQueryOptions;
44
+ export type ApplicationQueryOptions = deviceModule.ApplicationQueryOptions;
45
+ export type ProcessQueryOptions = deviceModule.ProcessQueryOptions;
46
+ export type ProcessMatchOptions = deviceModule.ProcessMatchOptions;
47
+ export type Scope = deviceModule.Scope;
48
48
  export declare const Scope: typeof deviceModule.Scope;
49
- export declare type SpawnOptions = deviceModule.SpawnOptions;
50
- export declare type Stdio = deviceModule.Stdio;
49
+ export type SpawnOptions = deviceModule.SpawnOptions;
50
+ export type Stdio = deviceModule.Stdio;
51
51
  export declare const Stdio: typeof deviceModule.Stdio;
52
- export declare type TargetProcess = deviceModule.TargetProcess;
53
- export declare type SessionOptions = deviceModule.SessionOptions;
54
- export declare type Realm = deviceModule.Realm;
52
+ export type TargetProcess = deviceModule.TargetProcess;
53
+ export type SessionOptions = deviceModule.SessionOptions;
54
+ export type Realm = deviceModule.Realm;
55
55
  export declare const Realm: typeof deviceModule.Realm;
56
- export declare type SystemParameters = systemParametersModule.SystemParameters;
57
- export declare type SystemInterface = systemParametersModule.SystemInterface;
58
- export declare type NetworkInterface = systemParametersModule.NetworkInterface;
59
- export declare type CellularInterface = systemParametersModule.CellularInterface;
60
- export declare type Session = sessionModule.Session;
56
+ export type SystemParameters = systemParametersModule.SystemParameters;
57
+ export type SystemInterface = systemParametersModule.SystemInterface;
58
+ export type NetworkInterface = systemParametersModule.NetworkInterface;
59
+ export type CellularInterface = systemParametersModule.CellularInterface;
60
+ export type Session = sessionModule.Session;
61
61
  export declare const Session: typeof sessionModule.Session;
62
- export declare type SessionDetachedHandler = sessionModule.SessionDetachedHandler;
63
- export declare type SessionDetachReason = sessionModule.SessionDetachReason;
62
+ export type SessionDetachedHandler = sessionModule.SessionDetachedHandler;
63
+ export type SessionDetachReason = sessionModule.SessionDetachReason;
64
64
  export declare const SessionDetachReason: typeof sessionModule.SessionDetachReason;
65
- export declare type PeerOptions = sessionModule.PeerOptions;
66
- export declare type PortalOptions = sessionModule.PortalOptions;
67
- export declare type Script = scriptModule.Script;
65
+ export type PeerOptions = sessionModule.PeerOptions;
66
+ export type PortalOptions = sessionModule.PortalOptions;
67
+ export type Script = scriptModule.Script;
68
68
  export declare const Script: typeof scriptModule.Script;
69
- export declare type ScriptOptions = scriptModule.ScriptOptions;
70
- export declare type SnapshotOptions = scriptModule.SnapshotOptions;
71
- export declare type ScriptRuntime = scriptModule.ScriptRuntime;
69
+ export type ScriptOptions = scriptModule.ScriptOptions;
70
+ export type SnapshotOptions = scriptModule.SnapshotOptions;
71
+ export type ScriptRuntime = scriptModule.ScriptRuntime;
72
72
  export declare const ScriptRuntime: typeof scriptModule.ScriptRuntime;
73
- export declare type ScriptDestroyedHandler = scriptModule.ScriptDestroyedHandler;
74
- export declare type ScriptMessageHandler = scriptModule.ScriptMessageHandler;
75
- export declare type ScriptLogHandler = scriptModule.ScriptLogHandler;
76
- export declare type Message = scriptModule.Message;
77
- export declare type MessageType = scriptModule.MessageType;
73
+ export type ScriptDestroyedHandler = scriptModule.ScriptDestroyedHandler;
74
+ export type ScriptMessageHandler = scriptModule.ScriptMessageHandler;
75
+ export type ScriptLogHandler = scriptModule.ScriptLogHandler;
76
+ export type Message = scriptModule.Message;
77
+ export type MessageType = scriptModule.MessageType;
78
78
  export declare const MessageType: typeof scriptModule.MessageType;
79
- export declare type SendMessage = scriptModule.SendMessage;
80
- export declare type ErrorMessage = scriptModule.ErrorMessage;
81
- export declare type ScriptExports = scriptModule.ScriptExports;
82
- export declare type LogLevel = scriptModule.LogLevel;
79
+ export type SendMessage = scriptModule.SendMessage;
80
+ export type ErrorMessage = scriptModule.ErrorMessage;
81
+ export type ScriptExports = scriptModule.ScriptExports;
82
+ export type LogLevel = scriptModule.LogLevel;
83
83
  export declare const LogLevel: typeof scriptModule.LogLevel;
84
- export declare type EnableDebuggerOptions = scriptModule.EnableDebuggerOptions;
85
- export declare type Relay = relayModule.Relay;
84
+ export type EnableDebuggerOptions = scriptModule.EnableDebuggerOptions;
85
+ export type Relay = relayModule.Relay;
86
86
  export declare const Relay: typeof relayModule.Relay;
87
- export declare type RelayProperties = relayModule.RelayProperties;
88
- export declare type RelayKind = relayModule.RelayKind;
87
+ export type RelayProperties = relayModule.RelayProperties;
88
+ export type RelayKind = relayModule.RelayKind;
89
89
  export declare const RelayKind: typeof relayModule.RelayKind;
90
- export declare type PortalMembership = portalMembershipModule.PortalMembership;
90
+ export type PortalMembership = portalMembershipModule.PortalMembership;
91
91
  export declare const PortalMembership: typeof portalMembershipModule.PortalMembership;
92
- export declare type PortalService = portalServiceModule.PortalService;
92
+ export type PortalService = portalServiceModule.PortalService;
93
93
  export declare const PortalService: typeof portalServiceModule.PortalService;
94
- export declare type PortalServiceOptions = portalServiceModule.PortalServiceOptions;
95
- export declare type PortalConnectionId = portalServiceModule.PortalConnectionId;
96
- export declare type PortalConnectionTag = portalServiceModule.PortalConnectionTag;
97
- export declare type PortalNodeConnectedHandler = portalServiceModule.PortalNodeConnectedHandler;
98
- export declare type PortalNodeJoinedHandler = portalServiceModule.PortalNodeJoinedHandler;
99
- export declare type PortalNodeLeftHandler = portalServiceModule.PortalNodeLeftHandler;
100
- export declare type PortalNodeDisconnectedHandler = portalServiceModule.PortalNodeDisconnectedHandler;
101
- export declare type PortalControllerConnectedHandler = portalServiceModule.PortalControllerConnectedHandler;
102
- export declare type PortalControllerDisconnectedHandler = portalServiceModule.PortalControllerDisconnectedHandler;
103
- export declare type PortalAuthenticatedHandler = portalServiceModule.PortalAuthenticatedHandler;
104
- export declare type PortalSubscribeHandler = portalServiceModule.PortalSubscribeHandler;
105
- export declare type PortalMessageHandler = portalServiceModule.PortalMessageHandler;
106
- export declare type EndpointParameters = endpointParametersModule.EndpointParameters;
94
+ export type PortalServiceOptions = portalServiceModule.PortalServiceOptions;
95
+ export type PortalConnectionId = portalServiceModule.PortalConnectionId;
96
+ export type PortalConnectionTag = portalServiceModule.PortalConnectionTag;
97
+ export type PortalNodeConnectedHandler = portalServiceModule.PortalNodeConnectedHandler;
98
+ export type PortalNodeJoinedHandler = portalServiceModule.PortalNodeJoinedHandler;
99
+ export type PortalNodeLeftHandler = portalServiceModule.PortalNodeLeftHandler;
100
+ export type PortalNodeDisconnectedHandler = portalServiceModule.PortalNodeDisconnectedHandler;
101
+ export type PortalControllerConnectedHandler = portalServiceModule.PortalControllerConnectedHandler;
102
+ export type PortalControllerDisconnectedHandler = portalServiceModule.PortalControllerDisconnectedHandler;
103
+ export type PortalAuthenticatedHandler = portalServiceModule.PortalAuthenticatedHandler;
104
+ export type PortalSubscribeHandler = portalServiceModule.PortalSubscribeHandler;
105
+ export type PortalMessageHandler = portalServiceModule.PortalMessageHandler;
106
+ export type EndpointParameters = endpointParametersModule.EndpointParameters;
107
107
  export declare const EndpointParameters: typeof endpointParametersModule.EndpointParameters;
108
- export declare type EndpointParametersSubset = endpointParametersModule.EndpointParametersSubset;
109
- export declare type AuthenticationScheme = endpointParametersModule.AuthenticationScheme;
110
- export declare type TokenAuthenticationScheme = endpointParametersModule.TokenAuthenticationScheme;
111
- export declare type CallbackAuthenticationScheme = endpointParametersModule.CallbackAuthenticationScheme;
112
- export declare type AuthenticationCallback = endpointParametersModule.AuthenticationCallback;
113
- export declare type AuthenticatedSessionInfo = authenticationModule.AuthenticatedSessionInfo;
114
- export declare type IOStream = iostreamModule.IOStream;
108
+ export type EndpointParametersSubset = endpointParametersModule.EndpointParametersSubset;
109
+ export type AuthenticationScheme = endpointParametersModule.AuthenticationScheme;
110
+ export type TokenAuthenticationScheme = endpointParametersModule.TokenAuthenticationScheme;
111
+ export type CallbackAuthenticationScheme = endpointParametersModule.CallbackAuthenticationScheme;
112
+ export type AuthenticationCallback = endpointParametersModule.AuthenticationCallback;
113
+ export type AuthenticatedSessionInfo = authenticationModule.AuthenticatedSessionInfo;
114
+ export type IOStream = iostreamModule.IOStream;
115
115
  export declare const IOStream: typeof iostreamModule.IOStream;
116
- export declare type Cancellable = cancellableModule.Cancellable;
116
+ export type Cancellable = cancellableModule.Cancellable;
117
117
  export declare const Cancellable: typeof cancellableModule.Cancellable;
118
- export declare type Application = applicationModule.Application;
119
- export declare type ApplicationParameters = applicationModule.ApplicationParameters;
120
- export declare type Process = processModule.Process;
121
- export declare type ProcessParameters = processModule.ProcessParameters;
122
- export declare type Spawn = spawnModule.Spawn;
123
- export declare type Child = childModule.Child;
124
- export declare type ChildOrigin = childModule.ChildOrigin;
118
+ export type Application = applicationModule.Application;
119
+ export type ApplicationParameters = applicationModule.ApplicationParameters;
120
+ export type Process = processModule.Process;
121
+ export type ProcessParameters = processModule.ProcessParameters;
122
+ export type Spawn = spawnModule.Spawn;
123
+ export type Child = childModule.Child;
124
+ export type ChildOrigin = childModule.ChildOrigin;
125
125
  export declare const ChildOrigin: typeof childModule.ChildOrigin;
126
- export declare type Crash = crashModule.Crash;
127
- export declare type CrashParameters = crashModule.CrashParameters;
128
- export declare type Icon = iconModule.Icon;
129
- export declare type RGBAIcon = iconModule.RGBAIcon;
130
- export declare type PNGIcon = iconModule.PNGIcon;
131
- export declare type Bus = busModule.Bus;
126
+ export type Crash = crashModule.Crash;
127
+ export type CrashParameters = crashModule.CrashParameters;
128
+ export type Icon = iconModule.Icon;
129
+ export type RGBAIcon = iconModule.RGBAIcon;
130
+ export type PNGIcon = iconModule.PNGIcon;
131
+ export type Bus = busModule.Bus;
132
132
  export declare const Bus: typeof busModule.Bus;
133
- export declare type BusDetachedHandler = busModule.BusDetachedHandler;
134
- export declare type BusMessageHandler = busModule.BusMessageHandler;
135
- export declare type SocketAddress = socketAddressModule.SocketAddress;
136
- export declare type IPV4SocketAddress = socketAddressModule.IPV4SocketAddress;
137
- export declare type IPV6SocketAddress = socketAddressModule.IPV6SocketAddress;
138
- export declare type AnonymousUnixSocketAddress = socketAddressModule.AnonymousUnixSocketAddress;
139
- export declare type PathUnixSocketAddress = socketAddressModule.PathUnixSocketAddress;
140
- export declare type AbstractUnixSocketAddress = socketAddressModule.AbstractUnixSocketAddress;
133
+ export type BusDetachedHandler = busModule.BusDetachedHandler;
134
+ export type BusMessageHandler = busModule.BusMessageHandler;
135
+ export type SocketAddress = socketAddressModule.SocketAddress;
136
+ export type IPV4SocketAddress = socketAddressModule.IPV4SocketAddress;
137
+ export type IPV6SocketAddress = socketAddressModule.IPV6SocketAddress;
138
+ export type AnonymousUnixSocketAddress = socketAddressModule.AnonymousUnixSocketAddress;
139
+ export type PathUnixSocketAddress = socketAddressModule.PathUnixSocketAddress;
140
+ export type AbstractUnixSocketAddress = socketAddressModule.AbstractUnixSocketAddress;
141
141
  export declare function querySystemParameters(cancellable?: Cancellable): Promise<SystemParameters>;
142
142
  export declare function spawn(program: string | string[], options?: SpawnOptions, cancellable?: Cancellable): Promise<number>;
143
143
  export declare function resume(target: number | string, cancellable?: Cancellable): Promise<void>;
@@ -35,14 +35,14 @@ export interface PortalServiceOptions {
35
35
  clusterParams?: EndpointParameters;
36
36
  controlParams?: EndpointParameters;
37
37
  }
38
- export declare type PortalConnectionId = number;
39
- export declare type PortalConnectionTag = string;
40
- export declare type PortalNodeConnectedHandler = (connectionId: PortalConnectionId, remoteAddress: SocketAddress) => void;
41
- export declare type PortalNodeJoinedHandler = (connectionId: PortalConnectionId, application: Application) => void;
42
- export declare type PortalNodeLeftHandler = (connectionId: PortalConnectionId, application: Application) => void;
43
- export declare type PortalNodeDisconnectedHandler = (connectionId: PortalConnectionId, remoteAddress: SocketAddress) => void;
44
- export declare type PortalControllerConnectedHandler = (connectionId: PortalConnectionId, remoteAddress: SocketAddress) => void;
45
- export declare type PortalControllerDisconnectedHandler = (connectionId: PortalConnectionId, remoteAddress: SocketAddress) => void;
46
- export declare type PortalAuthenticatedHandler = (connectionId: PortalConnectionId, sessionInfo: AuthenticatedSessionInfo) => void;
47
- export declare type PortalSubscribeHandler = (connectionId: PortalConnectionId) => void;
48
- export declare type PortalMessageHandler = (connectionId: PortalConnectionId, message: any, data: Buffer | null) => void;
38
+ export type PortalConnectionId = number;
39
+ export type PortalConnectionTag = string;
40
+ export type PortalNodeConnectedHandler = (connectionId: PortalConnectionId, remoteAddress: SocketAddress) => void;
41
+ export type PortalNodeJoinedHandler = (connectionId: PortalConnectionId, application: Application) => void;
42
+ export type PortalNodeLeftHandler = (connectionId: PortalConnectionId, application: Application) => void;
43
+ export type PortalNodeDisconnectedHandler = (connectionId: PortalConnectionId, remoteAddress: SocketAddress) => void;
44
+ export type PortalControllerConnectedHandler = (connectionId: PortalConnectionId, remoteAddress: SocketAddress) => void;
45
+ export type PortalControllerDisconnectedHandler = (connectionId: PortalConnectionId, remoteAddress: SocketAddress) => void;
46
+ export type PortalAuthenticatedHandler = (connectionId: PortalConnectionId, sessionInfo: AuthenticatedSessionInfo) => void;
47
+ export type PortalSubscribeHandler = (connectionId: PortalConnectionId) => void;
48
+ export type PortalMessageHandler = (connectionId: PortalConnectionId, message: any, data: Buffer | null) => void;
package/dist/relay.js CHANGED
@@ -29,4 +29,4 @@ var RelayKind;
29
29
  RelayKind["TurnUDP"] = "turn-udp";
30
30
  RelayKind["TurnTCP"] = "turn-tcp";
31
31
  RelayKind["TurnTLS"] = "turn-tls";
32
- })(RelayKind = exports.RelayKind || (exports.RelayKind = {}));
32
+ })(RelayKind || (exports.RelayKind = RelayKind = {}));
package/dist/script.d.ts CHANGED
@@ -37,10 +37,10 @@ export declare enum ScriptRuntime {
37
37
  QJS = "qjs",
38
38
  V8 = "v8"
39
39
  }
40
- export declare type ScriptDestroyedHandler = () => void;
41
- export declare type ScriptMessageHandler = (message: Message, data: Buffer | null) => void;
42
- export declare type ScriptLogHandler = (level: LogLevel, text: string) => void;
43
- export declare type Message = SendMessage | ErrorMessage;
40
+ export type ScriptDestroyedHandler = () => void;
41
+ export type ScriptMessageHandler = (message: Message, data: Buffer | null) => void;
42
+ export type ScriptLogHandler = (level: LogLevel, text: string) => void;
43
+ export type Message = SendMessage | ErrorMessage;
44
44
  export declare enum MessageType {
45
45
  Send = "send",
46
46
  Error = "error"
package/dist/script.js CHANGED
@@ -59,18 +59,18 @@ var ScriptRuntime;
59
59
  ScriptRuntime["Default"] = "default";
60
60
  ScriptRuntime["QJS"] = "qjs";
61
61
  ScriptRuntime["V8"] = "v8";
62
- })(ScriptRuntime = exports.ScriptRuntime || (exports.ScriptRuntime = {}));
62
+ })(ScriptRuntime || (exports.ScriptRuntime = ScriptRuntime = {}));
63
63
  var MessageType;
64
64
  (function (MessageType) {
65
65
  MessageType["Send"] = "send";
66
66
  MessageType["Error"] = "error";
67
- })(MessageType = exports.MessageType || (exports.MessageType = {}));
67
+ })(MessageType || (exports.MessageType = MessageType = {}));
68
68
  var LogLevel;
69
69
  (function (LogLevel) {
70
70
  LogLevel["Info"] = "info";
71
71
  LogLevel["Warning"] = "warning";
72
72
  LogLevel["Error"] = "error";
73
- })(LogLevel = exports.LogLevel || (exports.LogLevel = {}));
73
+ })(LogLevel || (exports.LogLevel = LogLevel = {}));
74
74
  class ScriptServices extends signals_1.SignalAdapter {
75
75
  constructor(script, signals) {
76
76
  super(signals);
package/dist/session.d.ts CHANGED
@@ -26,7 +26,7 @@ export declare class Session {
26
26
  joinPortal(address: string, options?: PortalOptions, cancellable?: Cancellable): Promise<PortalMembership>;
27
27
  [inspect.custom](depth: any, options: any): string;
28
28
  }
29
- export declare type SessionDetachedHandler = (reason: SessionDetachReason, crash: Crash | null) => void;
29
+ export type SessionDetachedHandler = (reason: SessionDetachReason, crash: Crash | null) => void;
30
30
  export declare enum SessionDetachReason {
31
31
  ApplicationRequested = "application-requested",
32
32
  ProcessReplaced = "process-replaced",
package/dist/session.js CHANGED
@@ -70,4 +70,4 @@ var SessionDetachReason;
70
70
  SessionDetachReason["ProcessTerminated"] = "process-terminated";
71
71
  SessionDetachReason["ConnectionTerminated"] = "connection-terminated";
72
72
  SessionDetachReason["DeviceLost"] = "device-lost";
73
- })(SessionDetachReason = exports.SessionDetachReason || (exports.SessionDetachReason = {}));
73
+ })(SessionDetachReason || (exports.SessionDetachReason = SessionDetachReason = {}));
package/dist/signals.d.ts CHANGED
@@ -9,7 +9,7 @@ export declare class Signal<T extends SignalHandler> {
9
9
  connect(handler: T): void;
10
10
  disconnect(handler: T): void;
11
11
  }
12
- export declare type SignalHandler = (...args: any[]) => void;
12
+ export type SignalHandler = (...args: any[]) => void;
13
13
  export declare class SignalAdapter implements Signals {
14
14
  protected signals: Signals;
15
15
  private proxyHandlers;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- export declare type SocketAddress = IPV4SocketAddress | IPV6SocketAddress | AnonymousUnixSocketAddress | PathUnixSocketAddress | AbstractUnixSocketAddress;
2
+ export type SocketAddress = IPV4SocketAddress | IPV6SocketAddress | AnonymousUnixSocketAddress | PathUnixSocketAddress | AbstractUnixSocketAddress;
3
3
  export interface IPV4SocketAddress {
4
4
  family: "ipv4";
5
5
  address: string;
@@ -46,7 +46,7 @@ export interface SystemParameters {
46
46
  apiLevel?: number;
47
47
  [name: string]: any;
48
48
  }
49
- export declare type SystemInterface = NetworkInterface | CellularInterface;
49
+ export type SystemInterface = NetworkInterface | CellularInterface;
50
50
  export interface NetworkInterface {
51
51
  type: "ethernet" | "wifi" | "bluetooth";
52
52
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "frida",
3
- "version": "16.1.3",
3
+ "version": "16.1.5",
4
4
  "authors": [
5
5
  "Frida Developers"
6
6
  ],
@@ -28,20 +28,20 @@
28
28
  "dist/"
29
29
  ],
30
30
  "dependencies": {
31
- "@frida/nan": "^2.16.1-frida.0",
32
- "@frida/prebuild-install": "^7.1.2-frida.1",
33
31
  "bindings": "^1.5.0",
34
- "minimatch": "^5.0.1"
32
+ "minimatch": "^9.0.3",
33
+ "nan": "^2.18.0",
34
+ "prebuild-install": "^7.1.1"
35
35
  },
36
36
  "devDependencies": {
37
- "@frida/prebuild": "^11.0.5-frida.0",
38
37
  "@types/chai": "^4.2.18",
39
- "@types/mocha": "^9.0.0",
40
- "@types/node": "^18.0.0",
38
+ "@types/mocha": "^10.0.3",
39
+ "@types/node": "^20.8.8",
41
40
  "chai": "^4.3.4",
42
41
  "mocha": "^10.0.0",
42
+ "prebuild": "^12.1.0",
43
43
  "ts-node": "^10.0.0",
44
- "typescript": "^4.3.2"
44
+ "typescript": "^5.2.2"
45
45
  },
46
46
  "scripts": {
47
47
  "prepare": "npm run build",