appium-adb
Advanced tools
Comparing version 2.0.0-beta7 to 2.0.0-beta8
@@ -1,3 +0,1 @@ | ||
require('source-map-support').install(); | ||
'use strict'; | ||
@@ -17,4 +15,6 @@ | ||
require('source-map-support').install(); | ||
exports['default'] = _libAdb2['default']; | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7O3NCQUNnQixXQUFXIiwiZmlsZSI6ImluZGV4LmpzIiwic291cmNlc0NvbnRlbnQiOlsiLy8gdHJhbnNwaWxlOm1haW5cbmltcG9ydCBBREIgZnJvbSAnLi9saWIvYWRiJztcblxuZXhwb3J0IGRlZmF1bHQgQURCO1xuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7c0JBRWdCLFdBQVc7Ozs7QUFGM0IsT0FBTyxDQUFDLG9CQUFvQixDQUFDLENBQUMsT0FBTyxFQUFFLENBQUMiLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJyZXF1aXJlKCdzb3VyY2UtbWFwLXN1cHBvcnQnKS5pbnN0YWxsKCk7XG5cbmltcG9ydCBBREIgZnJvbSAnLi9saWIvYWRiJztcblxuZXhwb3J0IGRlZmF1bHQgQURCO1xuIl19 |
@@ -324,5 +324,18 @@ 'use strict'; | ||
}); | ||
it('it should forward the port', function callee$1$0() { | ||
return _regeneratorRuntime.async(function callee$1$0$(context$2$0) { | ||
while (1) switch (context$2$0.prev = context$2$0.next) { | ||
case 0: | ||
context$2$0.next = 2; | ||
return _regeneratorRuntime.awrap(adb.forwardPort(4724, 4724)); | ||
case 2: | ||
case 'end': | ||
return context$2$0.stop(); | ||
} | ||
}, null, _this); |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ldmljZUNvdW50cnkoKS5zaG91bGQuZXZlbnR1YWxseS5lcXVhbCgnVVMnKTtcbiAgfSk7XG4gIGl0KCdzaG91bGQgc2V0IGRldmljZSBsYW5ndWFnZSBhbmQgY291bnRyeScsIGFzeW5jICgpID0+IHtcbiAgICBhd2FpdCBhZGIuc2V0RGV2aWNlTGFuZ3VhZ2UoJ2ZyJyk7XG4gICAgYXdhaXQgYWRiLnNldERldmljZUNvdW50cnkoJ2ZyJyk7XG4gICAgYXdhaXQgYWRiLnJlYm9vdCgpO1xuICAgIGF3YWl0IGFkYi5nZXREZXZpY2VMYW5ndWFnZSgpLnNob3VsZC5ldmVudHVhbGx5LmVxdWFsKCdmcicpO1xuICAgIGF3YWl0IGFkYi5nZXREZXZpY2VDb3VudHJ5KCkuc2hvdWxkLmV2ZW50dWFsbHkuZXF1YWwoJ0ZSJyk7XG4gICAgLy8gY2xlYW51cFxuICAgIGF3YWl0IGFkYi5zZXREZXZpY2VMYW5ndWFnZSgnZW4nKTtcbiAgICBhd2FpdCBhZGIuc2V0RGV2aWNlQ291bnRyeSgndXMnKTtcbiAgfSk7XG4gIGl0KCdpdCBzaG91bGQgZm9yd2FyZCB0aGUgcG9ydCcsIGFzeW5jICgpID0+IHtcbiAgICBhd2FpdCBhZGIuZm9yd2FyZFBvcnQoNDcyNCwgNDcyNCk7XG4gIH0pO1xufSk7XG4iXX0= |
@@ -296,3 +296,3 @@ import log from '../logger.js'; | ||
log.debug(`Forwarding system: ${systemPort} to device: ${devicePort}`); | ||
await this.adbExec('forward', [`tcp:${systemPort}`, `tcp:${devicePort}`]); | ||
await this.adbExec(['forward', `tcp:${systemPort}`, `tcp:${devicePort}`]); | ||
}; | ||
@@ -302,3 +302,3 @@ | ||
log.debug(`Forwarding system: ${systemPort} to abstract device: ${devicePort}`); | ||
await this.adbExec('forward', [`tcp:${systemPort}`, `localabstract:${devicePort}`]); | ||
await this.adbExec(['forward', `tcp:${systemPort}`, `localabstract:${devicePort}`]); | ||
}; | ||
@@ -305,0 +305,0 @@ |
{ | ||
"name": "appium-adb", | ||
"version": "2.0.0-beta7", | ||
"version": "2.0.0-beta8", | ||
"description": "appium-adb", | ||
@@ -5,0 +5,0 @@ "main": "./build/index.js", |
@@ -82,2 +82,5 @@ import chai from 'chai'; | ||
}); | ||
it('it should forward the port', async () => { | ||
await adb.forwardPort(4724, 4724); | ||
}); | ||
}); |
@@ -295,3 +295,3 @@ import chai from 'chai'; | ||
mocks.adb.expects("adbExec") | ||
.once().withExactArgs('forward', [`tcp:${sysPort}`, `tcp:${devicePort}`]) | ||
.once().withExactArgs(['forward', `tcp:${sysPort}`, `tcp:${devicePort}`]) | ||
.returns(""); | ||
@@ -303,3 +303,3 @@ await adb.forwardPort(sysPort, devicePort); | ||
mocks.adb.expects("adbExec") | ||
.once().withExactArgs('forward', [`tcp:${sysPort}`, `localabstract:${devicePort}`]) | ||
.once().withExactArgs(['forward', `tcp:${sysPort}`, `localabstract:${devicePort}`]) | ||
.returns(""); | ||
@@ -306,0 +306,0 @@ await adb.forwardAbstractPort(sysPort, devicePort); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
10233
5
22166269
77