Comparing version 0.2.0 to 0.3.0
42
app.js
@@ -1,16 +0,28 @@ | ||
const xadb = require('./index') | ||
let client = xadb.createClient() | ||
async function monitor() { | ||
return client | ||
.listDevicesWithPaths() | ||
.then(async function (devicelist) { | ||
console.log(devicelist) | ||
}) | ||
.catch(function (err) { | ||
console.log(err) | ||
}) | ||
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const xadb = require("./index"); | ||
let client = xadb.adb.createClient(); | ||
function monitor() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return client | ||
.listDevicesWithPaths() | ||
.then(function (devicelist) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
console.log(devicelist); | ||
}); | ||
}) | ||
.catch(function (err) { | ||
console.log(err); | ||
}); | ||
}); | ||
} | ||
monitor() | ||
monitor(); | ||
//# sourceMappingURL=app.js.map |
@@ -1,1 +0,7 @@ | ||
module.exports = require('./src/adb') | ||
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./src/adb")); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "xadb", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"main": "./index", | ||
"dependencies": { | ||
"@types/node": "^10.12.18", | ||
"bluebird": "~2.9.24", | ||
@@ -7,0 +8,0 @@ "debug": "^4.1.0", |
@@ -1,19 +0,20 @@ | ||
// TODO: This file was created by bulk-decaffeinate. | ||
// Sanity-check the conversion and remove this comment. | ||
const Client = require('./adb/client') | ||
const Keycode = require('./adb/keycode') | ||
const util = require('./adb/util') | ||
class Adb { | ||
static createClient(options = {}) { | ||
if (!options.host) { options.host = process.env.ADB_HOST } | ||
if (!options.port) { options.port = process.env.ADB_PORT } | ||
return new Client(options) | ||
} | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const Client = require('./adb/client'); | ||
const Keycode = require('./adb/keycode'); | ||
const util = require('./adb/util'); | ||
class adb { | ||
static createClient(options = {}) { | ||
if (!options.host) { | ||
options.host = process.env.ADB_HOST; | ||
} | ||
if (!options.port) { | ||
options.port = process.env.ADB_PORT; | ||
} | ||
return new Client(options); | ||
} | ||
} | ||
Adb.Keycode = Keycode | ||
Adb.util = util | ||
module.exports = Adb | ||
adb.Keycode = Keycode; | ||
adb.util = util; | ||
exports.adb = adb; | ||
//# sourceMappingURL=adb.js.map |
@@ -1,3 +0,1 @@ | ||
// TODO: This file was created by bulk-decaffeinate. | ||
// Sanity-check the conversion and remove this comment. | ||
const Parser = require('./parser') | ||
@@ -4,0 +2,0 @@ const Auth = require('./auth') |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
146600
82
4033
4
+ Added@types/node@^10.12.18
+ Added@types/node@10.17.60(transitive)