Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

adbkit

Package Overview
Dependencies
Maintainers
2
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adbkit - npm Package Compare versions

Comparing version 2.0.15 to 2.0.16

lib/adb/command/host-transport/local.js

10

lib/adb/client.js
(function() {
var ClearCommand, Client, Connection, ForwardCommand, FrameBufferCommand, GetDevicePathCommand, GetFeaturesCommand, GetPackagesCommand, GetPropertiesCommand, GetSerialNoCommand, GetStateCommand, HostDevicesCommand, HostDevicesWithPathsCommand, HostKillCommand, HostTrackDevicesCommand, HostTransportCommand, HostVersionCommand, InstallCommand, IsInstalledCommand, ListForwardsCommand, LogCommand, Logcat, LogcatCommand, Monkey, MonkeyCommand, Parser, ProcStat, Promise, RebootCommand, RemountCommand, ScreencapCommand, ShellCommand, StartActivityCommand, StartServiceCommand, Sync, SyncCommand, TcpCommand, TcpUsbServer, TrackJdwpCommand, UninstallCommand, WaitBootCompleteCommand, debug;
var ClearCommand, Client, Connection, ForwardCommand, FrameBufferCommand, GetDevicePathCommand, GetFeaturesCommand, GetPackagesCommand, GetPropertiesCommand, GetSerialNoCommand, GetStateCommand, HostDevicesCommand, HostDevicesWithPathsCommand, HostKillCommand, HostTrackDevicesCommand, HostTransportCommand, HostVersionCommand, InstallCommand, IsInstalledCommand, ListForwardsCommand, LocalCommand, LogCommand, Logcat, LogcatCommand, Monkey, MonkeyCommand, Parser, ProcStat, Promise, RebootCommand, RemountCommand, ScreencapCommand, ShellCommand, StartActivityCommand, StartServiceCommand, Sync, SyncCommand, TcpCommand, TcpUsbServer, TrackJdwpCommand, UninstallCommand, WaitBootCompleteCommand, debug;

@@ -46,2 +46,4 @@ Monkey = require('adbkit-monkey');

LocalCommand = require('./command/host-transport/local');
LogcatCommand = require('./command/host-transport/logcat');

@@ -247,2 +249,8 @@

Client.prototype.openLocal = function(serial, path, callback) {
return this.transport(serial).then(function(transport) {
return new LocalCommand(transport).execute(path);
}).nodeify(callback);
};
Client.prototype.openLog = function(serial, name, callback) {

@@ -249,0 +257,0 @@ return this.transport(serial).then(function(transport) {

2

package.json
{
"name": "adbkit",
"version": "2.0.15",
"version": "2.0.16",
"description": "A pure Node.js client for the Android Debug Bridge.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -448,2 +448,14 @@ # adbkit

#### client.openLocal(serial, path[, callback])
Opens a direct connection to a unix domain socket in the given path.
* **serial** The serial number of the device. Corresponds to the device ID in `client.listDevices()`.
* **path** The path to the socket. Prefixed with `'localfilesystem:'` by default, include another prefix (e.g. `'localabstract:'`) in the path to override.
* **callback(err, conn)** Optional. Use this or the returned `Promise`.
- **err** `null` when successful, `Error` otherwise.
- **conn** The connection (i.e. [`net.Socket`][node-net]). Read and write as you please. Call `conn.end()` to end the connection.
* Returns: `Promise`
* Resolves with: `conn` (see callback)
#### client.openLog(serial, name[, callback])

@@ -450,0 +462,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc