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

appium-xcode

Package Overview
Dependencies
Maintainers
6
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appium-xcode - npm Package Compare versions

Comparing version 2.0.4 to 2.0.5

.travis.yml

82

build/lib/xcode.js

@@ -5,9 +5,9 @@ 'use strict';

var _core = require('babel-runtime/core-js')['default'];
var _Object$defineProperty = require('babel-runtime/core-js/object/define-property')['default'];
var _regeneratorRuntime = require('babel-runtime/regenerator')['default'];
var _interopRequireWildcard = require('babel-runtime/helpers/interop-require-wildcard')['default'];
var _interopRequireDefault = require('babel-runtime/helpers/interop-require-default')['default'];
_core.Object.defineProperty(exports, '__esModule', {
_Object$defineProperty(exports, '__esModule', {
value: true

@@ -18,35 +18,35 @@ });

var _npmlog2 = _interopRequireWildcard(_npmlog);
var _npmlog2 = _interopRequireDefault(_npmlog);
var _support = require('appium-support');
var _appiumSupport = require('appium-support');
var _support2 = _interopRequireWildcard(_support);
var _appiumSupport2 = _interopRequireDefault(_appiumSupport);
var _fs = require('fs');
var _fs2 = _interopRequireWildcard(_fs);
var _fs2 = _interopRequireDefault(_fs);
var _denodeify = require('denodeify');
var _denodeify2 = _interopRequireWildcard(_denodeify);
var _denodeify2 = _interopRequireDefault(_denodeify);
var _path = require('path');
var _path2 = _interopRequireWildcard(_path);
var _path2 = _interopRequireDefault(_path);
var _retry = require('asyncbox');
var _asyncbox = require('asyncbox');
var _import = require('lodash');
var _lodash = require('lodash');
var _import2 = _interopRequireWildcard(_import);
var _lodash2 = _interopRequireDefault(_lodash);
var _plist = require('plist');
var _plist2 = _interopRequireWildcard(_plist);
var _plist2 = _interopRequireDefault(_plist);
var exec = _support2['default'].core.exec;
var util = _support2['default'].util;
var fileExists = _support2['default'].util.fileExists;
var escapeSpace = _support2['default'].util.escapeSpace;
var readSymlink = _denodeify2['default'](_fs2['default'].readlink);
var exec = _appiumSupport2['default'].core.exec;
var util = _appiumSupport2['default'].util;
var fileExists = _appiumSupport2['default'].util.fileExists;
var escapeSpace = _appiumSupport2['default'].util.escapeSpace;
var readSymlink = (0, _denodeify2['default'])(_fs2['default'].readlink);
var env = process.env;

@@ -87,3 +87,3 @@

context$1$0.next = 8;
return fileExists(customPath);
return _regeneratorRuntime.awrap(fileExists(customPath));

@@ -112,3 +112,3 @@ case 8:

context$1$0.next = 19;
return fileExists(symlinkPath);
return _regeneratorRuntime.awrap(fileExists(symlinkPath));

@@ -127,3 +127,3 @@ case 19:

context$1$0.next = 25;
return fileExists(legacySymlinkPath);
return _regeneratorRuntime.awrap(fileExists(legacySymlinkPath));

@@ -166,3 +166,3 @@ case 25:

context$1$0.next = 2;
return exec('xcode-select --print-path', { maxBuffer: 524288, timeout: XCODE_SELECT_TIMEOUT });
return _regeneratorRuntime.awrap(exec('xcode-select --print-path', { maxBuffer: 524288, timeout: XCODE_SELECT_TIMEOUT }));

@@ -184,3 +184,3 @@ case 2:

context$1$0.next = 10;
return fileExists(xcodeFolderPath);
return _regeneratorRuntime.awrap(fileExists(xcodeFolderPath));

@@ -208,3 +208,3 @@ case 10:

var getPath = _import2['default'].memoize(function () {
var getPath = _lodash2['default'].memoize(function () {

@@ -224,3 +224,3 @@ // first we try using xcode-select to find the path

context$1$0.next = 2;
return getPath();
return _regeneratorRuntime.awrap(getPath());

@@ -231,3 +231,3 @@ case 2:

context$1$0.next = 6;
return fileExists(plistPath);
return _regeneratorRuntime.awrap(fileExists(plistPath));

@@ -245,3 +245,3 @@ case 6:

context$1$0.next = 11;
return exec(cmd, { maxBuffer: 524288, timeout: XCODE_SELECT_TIMEOUT });
return _regeneratorRuntime.awrap(exec(cmd, { maxBuffer: 524288, timeout: XCODE_SELECT_TIMEOUT }));

@@ -272,6 +272,6 @@ case 11:

var getVersion = _import2['default'].memoize(function () {
var getVersion = _lodash2['default'].memoize(function () {
var retries = arguments[0] === undefined ? DEFAULT_NUMBER_OF_RETRIES : arguments[0];
return _retry.retry(retries, getVersionWithoutRetry);
return (0, _asyncbox.retry)(retries, getVersionWithoutRetry);
});

@@ -285,3 +285,3 @@

context$1$0.next = 2;
return getPath();
return _regeneratorRuntime.awrap(getPath());

@@ -295,3 +295,3 @@ case 2:

context$1$0.next = 9;
return fileExists(automationTraceTemplatePaths[0]);
return _regeneratorRuntime.awrap(fileExists(automationTraceTemplatePaths[0]));

@@ -308,3 +308,3 @@ case 9:

context$1$0.next = 13;
return fileExists(automationTraceTemplatePaths[1]);
return _regeneratorRuntime.awrap(fileExists(automationTraceTemplatePaths[1]));

@@ -332,6 +332,6 @@ case 13:

var getAutomationTraceTemplatePath = _import2['default'].memoize(function () {
var getAutomationTraceTemplatePath = _lodash2['default'].memoize(function () {
var retries = arguments[0] === undefined ? DEFAULT_NUMBER_OF_RETRIES : arguments[0];
return _retry.retry(retries, getAutomationTraceTemplatePathWithoutRetry);
return (0, _asyncbox.retry)(retries, getAutomationTraceTemplatePathWithoutRetry);
});

@@ -346,3 +346,3 @@

context$1$0.next = 2;
return getVersion();
return _regeneratorRuntime.awrap(getVersion());

@@ -362,3 +362,3 @@ case 2:

context$1$0.next = 8;
return exec(cmd, { maxBuffer: 524288, timeout: XCODE_SELECT_TIMEOUT });
return _regeneratorRuntime.awrap(exec(cmd, { maxBuffer: 524288, timeout: XCODE_SELECT_TIMEOUT }));

@@ -389,6 +389,6 @@ case 8:

var getMaxIOSSDK = _import2['default'].memoize(function () {
var getMaxIOSSDK = _lodash2['default'].memoize(function () {
var retries = arguments[0] === undefined ? DEFAULT_NUMBER_OF_RETRIES : arguments[0];
return _retry.retry(retries, getMaxIOSSDKWithoutRetry);
return (0, _asyncbox.retry)(retries, getMaxIOSSDKWithoutRetry);
});

@@ -403,3 +403,3 @@

context$1$0.next = 2;
return exec('/usr/sbin/system_profiler -xml SPUSBDataType', { maxBuffer: 524288, timeout: XCODE_SELECT_TIMEOUT });
return _regeneratorRuntime.awrap(exec('/usr/sbin/system_profiler -xml SPUSBDataType', { maxBuffer: 524288, timeout: XCODE_SELECT_TIMEOUT }));

@@ -448,3 +448,3 @@ case 2:

if (f.cache) {
f.cache = new _import2['default'].memoize.Cache();
f.cache = new _lodash2['default'].memoize.Cache();
}

@@ -481,2 +481,2 @@ });

// rather than waste time getting the iOSSDKVersion, just get both paths and see which one exists
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxpYi94Y29kZS5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7OztzQkFBbUIsUUFBUTs7Ozt1QkFDUCxnQkFBZ0I7Ozs7a0JBQ3JCLElBQUk7Ozs7eUJBQ0csV0FBVzs7OztvQkFDaEIsTUFBTTs7OztxQkFDRCxVQUFVOztzQkFDbEIsUUFBUTs7OztxQkFDSixPQUFPOzs7O0FBRXpCLElBQU0sSUFBSSxHQUFHLHFCQUFRLElBQUksQ0FBQyxJQUFJLENBQUM7QUFDL0IsSUFBTSxJQUFJLEdBQUcscUJBQVEsSUFBSSxDQUFDO0FBQzFCLElBQU0sVUFBVSxHQUFHLHFCQUFRLElBQUksQ0FBQyxVQUFVLENBQUM7QUFDM0MsSUFBTSxXQUFXLEdBQUcscUJBQVEsSUFBSSxDQUFDLFdBQVcsQ0FBQztBQUM3QyxJQUFNLFdBQVcsR0FBRyx1QkFBVSxnQkFBRyxRQUFRLENBQUMsQ0FBQztBQUMzQyxJQUFNLEdBQUcsR0FBRyxPQUFPLENBQUMsR0FBRyxDQUFDOztBQUV4QixJQUFNLG9CQUFvQixHQUFHLElBQUksQ0FBQztBQUNsQyxJQUFNLFlBQVksR0FBRyxxQkFBcUIsQ0FBQztBQUMzQyxJQUFNLHlCQUF5QixHQUFHLENBQUMsQ0FBQzs7QUFFcEMsSUFBTSxHQUFHLEdBQUcsT0FBTyxDQUFDLEdBQUcsQ0FBQyxhQUFhLEdBQUcsTUFBTSxDQUFDLEdBQUcsc0JBQVMsQ0FB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5jdGlvbiBjbGVhckludGVybmFsQ2FjaGUgKCkge1xuXG4gIC8vIG1lbW9pemVkIGZ1bmN0aW9uc1xuICBjb25zdCBtZW1vaXplZCA9IFtnZXRQYXRoLCBnZXRWZXJzaW9uLCBnZXRBdXRvbWF0aW9uVHJhY2VUZW1wbGF0ZVBhdGgsXG4gICAgICAgICAgICAgICAgICAgIGdldE1heElPU1NES107XG5cbiAgbWVtb2l6ZWQuZm9yRWFjaCgoZikgPT4ge1xuICAgIGlmIChmLmNhY2hlKSB7XG4gICAgICBmLmNhY2hlID0gbmV3IF8ubWVtb2l6ZS5DYWNoZSgpO1xuICAgIH1cbiAgfSk7XG5cblxufVxuXG5leHBvcnQgeyBnZXRQYXRoLCBnZXRWZXJzaW9uLCBnZXRBdXRvbWF0aW9uVHJhY2VUZW1wbGF0ZVBhdGgsIGdldE1heElPU1NESyxcbiAgICAgICAgIGdldEF1dG9tYXRpb25UcmFjZVRlbXBsYXRlUGF0aFdpdGhvdXRSZXRyeSwgZ2V0TWF4SU9TU0RLV2l0aG91dFJldHJ5LFxuICAgICAgICAgZ2V0Q29ubmVjdGVkRGV2aWNlcywgY2xlYXJJbnRlcm5hbENhY2hlIH07XG4iXX0=

@@ -7,15 +7,17 @@ 'use strict';

var _interopRequireDefault = require('babel-runtime/helpers/interop-require-default')['default'];
var _this = this;
var _import = require('../lib/xcode');
var _libXcode = require('../lib/xcode');
var xcode = _interopRequireWildcard(_import);
var xcode = _interopRequireWildcard(_libXcode);
var _chai = require('chai');
var _chai2 = _interopRequireWildcard(_chai);
var _chai2 = _interopRequireDefault(_chai);
var _chaiAsPromised = require('chai-as-promised');
var _chaiAsPromised2 = _interopRequireWildcard(_chaiAsPromised);
var _chaiAsPromised2 = _interopRequireDefault(_chaiAsPromised);

@@ -26,11 +28,11 @@ require('mochawait');

var _fs2 = _interopRequireWildcard(_fs);
var _fs2 = _interopRequireDefault(_fs);
var _denodeify = require('denodeify');
var _denodeify2 = _interopRequireWildcard(_denodeify);
var _denodeify2 = _interopRequireDefault(_denodeify);
var _import2 = require('lodash');
var _lodash = require('lodash');
var _import3 = _interopRequireWildcard(_import2);
var _lodash2 = _interopRequireDefault(_lodash);

@@ -42,3 +44,3 @@ require('source-map-support').install();

var fileExists = _denodeify2['default'](_fs2['default'].stat);
var fileExists = (0, _denodeify2['default'])(_fs2['default'].stat);

@@ -53,3 +55,3 @@ describe('xcode @skip-linux', function () {

context$2$0.next = 2;
return xcode.getPath();
return _regeneratorRuntime.awrap(xcode.getPath());

@@ -61,3 +63,3 @@ case 2:

context$2$0.next = 6;
return fileExists(path);
return _regeneratorRuntime.awrap(fileExists(path));

@@ -71,9 +73,9 @@ case 6:

it('should get the version of xcode', function callee$1$1() {
it('should get the version of xcode', function callee$1$0() {
var version;
return _regeneratorRuntime.async(function callee$1$1$(context$2$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 xcode.getVersion();
return _regeneratorRuntime.awrap(xcode.getVersion());

@@ -84,3 +86,3 @@ case 2:

should.exist(version);
_import3['default'].isString(version).should.be['true'];
_lodash2['default'].isString(version).should.be['true'];
/\d\.\d\.*\d*/.test(version).should.be['true'];

@@ -95,13 +97,13 @@

it('should get the path and version again, these values are cached', function callee$1$2() {
it('should get the path and version again, these values are cached', function callee$1$0() {
var before, path, after, version;
return _regeneratorRuntime.async(function callee$1$2$(context$2$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 xcode.getPath();
return _regeneratorRuntime.awrap(xcode.getPath());
case 2:
context$2$0.next = 4;
return xcode.getVersion();
return _regeneratorRuntime.awrap(xcode.getVersion());

@@ -111,3 +113,3 @@ case 4:

context$2$0.next = 7;
return xcode.getPath();
return _regeneratorRuntime.awrap(xcode.getPath());

@@ -120,3 +122,3 @@ case 7:

context$2$0.next = 12;
return fileExists(path);
return _regeneratorRuntime.awrap(fileExists(path));

@@ -128,3 +130,3 @@ case 12:

context$2$0.next = 16;
return xcode.getVersion();
return _regeneratorRuntime.awrap(xcode.getVersion());

@@ -137,3 +139,3 @@ case 16:

should.exist(version);
_import3['default'].isString(version).should.be['true'];
_lodash2['default'].isString(version).should.be['true'];
/\d\.\d\.*\d*/.test(version).should.be['true'];

@@ -149,5 +151,5 @@ (after - before).should.be.at.most(2);

it('should clear the cache if asked to', function callee$1$3() {
it('should clear the cache if asked to', function callee$1$0() {
var before, after;
return _regeneratorRuntime.async(function callee$1$3$(context$2$0) {
return _regeneratorRuntime.async(function callee$1$0$(context$2$0) {
while (1) switch (context$2$0.prev = context$2$0.next) {

@@ -160,3 +162,3 @@ case 0:

context$2$0.next = 4;
return xcode.getPath();
return _regeneratorRuntime.awrap(xcode.getPath());

@@ -175,9 +177,9 @@ case 4:

it('should find the automation trace template', function callee$1$4() {
it('should find the automation trace template', function callee$1$0() {
var path, suffix;
return _regeneratorRuntime.async(function callee$1$4$(context$2$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 xcode.getAutomationTraceTemplatePath();
return _regeneratorRuntime.awrap(xcode.getAutomationTraceTemplatePath());

@@ -200,9 +202,9 @@ case 2:

it('should get max iOS SDK version', function callee$1$5() {
it('should get max iOS SDK version', function callee$1$0() {
var version;
return _regeneratorRuntime.async(function callee$1$5$(context$2$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 xcode.getMaxIOSSDK();
return _regeneratorRuntime.awrap(xcode.getMaxIOSSDK());

@@ -223,9 +225,9 @@ case 2:

it('should get a list of iOS devices', function callee$1$6() {
it('should get a list of iOS devices', function callee$1$0() {
var devices;
return _regeneratorRuntime.async(function callee$1$6$(context$2$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 xcode.getConnectedDevices();
return _regeneratorRuntime.awrap(xcode.getConnectedDevices());

@@ -245,2 +247,2 @@ case 2:

});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRlc3QveGNvZGUtc3BlY3MuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7c0JBRXVCLGNBQWM7O0lBQXpCLEtBQUs7O29CQUNBLE1BQU07Ozs7OEJBQ0ksa0JBQWtCOzs7O1FBQ3RDLFdBQVc7O2tCQUNILElBQUk7Ozs7eUJBQ0csV0FBVzs7Ozt1QkFDbkIsUUFBUTs7OztBQVJ0QixPQUFPLENBQUMsb0JBQW9CLENBQUMsQ0FBQyxPQUFPLEVBQUUsQ0FBQzs7QUFVeEMsSUFBSSxNQUFNLEdBQUcsa0JBQUssTUFBTSxFQUFFLENBQUM7QUFDM0Isa0JBQUssR0FBRyw2QkFBZ0IsQ0FBQzs7QUFFekIsSUFBSSxVQUFVLEdBQUcsdUJBQVUsZ0JBQUcsSUFBSSxDQUFDLENBQUM7O0FBRXBDLFFBQVEsQ0FBQyxtQkFBbUIsRUFBRSxZQUFNOztBQUVsQyxJQUFFLENBQUMseUNBQXlDLEVBQUU7UUFFeEMsSUFBSTs7Ozs7aUJBQVMsS0FBSyxDQUFDLE9BQU8sRUFBRTs7O0FBQTVCLGNBQUk7O0FBQ1IsZ0JBQU0sQ0FBQyxLQUFLLENBQUMsSUFBSSxDQUFDLENBQUM7O2lCQUNiLFVBQVUsQ0FBQyxJQUFJLENBQUM7Ozs7Ozs7R0FFdkIsQ0FBQyxDQUFDOztBQUVILElBQUUsQ0FBQyxpQ0FBaUMsRUFBRTtRQUVoQyxPQUFPOzs7OztpQkFBUyxLQUFLLENBQUMsVUFBVSxFQUFFOzs7QUFBbEMsaUJBQU87O0FBQ1gsZ0JBQU0sQ0FBQyxLQUFLLENBQU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oLXN1ZmZpeC5sZW5ndGgpLnNob3VsZC5lcXVhbChzdWZmaXgpO1xuICB9KTtcblxuICBpdCgnc2hvdWxkIGdldCBtYXggaU9TIFNESyB2ZXJzaW9uJywgYXN5bmMoKSA9PiB7XG4gICAgbGV0IHZlcnNpb24gPSBhd2FpdCB4Y29kZS5nZXRNYXhJT1NTREsoKTtcblxuICAgIHNob3VsZC5leGlzdCh2ZXJzaW9uKTtcbiAgICAodHlwZW9mIHZlcnNpb24pLnNob3VsZC5lcXVhbCgnc3RyaW5nJyk7XG4gICAgKHBhcnNlRmxvYXQodmVyc2lvbiktNi4xKS5zaG91bGQuYmUuYXQubGVhc3QoMCk7XG4gIH0pO1xuXG4gIGl0KCdzaG91bGQgZ2V0IGEgbGlzdCBvZiBpT1MgZGV2aWNlcycsIGFzeW5jKCkgPT4ge1xuICAgIGxldCBkZXZpY2VzID0gYXdhaXQgeGNvZGUuZ2V0Q29ubmVjdGVkRGV2aWNlcygpO1xuICAgIHNob3VsZC5leGlzdChkZXZpY2VzKTtcbiAgICAodHlwZW9mIGRldmljZXMpLnNob3VsZC5lcXVhbCgnb2JqZWN0Jyk7XG4gIH0pO1xuXG59KTtcbiJdfQ==

@@ -7,3 +7,3 @@ {

],
"version": "2.0.4",
"version": "2.0.5",
"author": "appium",

@@ -29,3 +29,3 @@ "license": "Apache License 2.0",

"asyncbox": "^2.0.2",
"babel-runtime": "^5.0.12",
"babel-runtime": "5.5.5",
"denodeify": "^1.2.1",

@@ -39,5 +39,5 @@ "lodash": "^3.6.0",

"scripts": {
"prepublish": "./node_modules/.bin/gulp prepublish",
"test": "./node_modules/.bin/gulp once",
"watch": "./node_modules/.bin/gulp"
"prepublish": "gulp prepublish",
"test": "gulp once",
"watch": "gulp"
},

@@ -44,0 +44,0 @@ "devDependencies": {

appium-xcode
===================
[![NPM version](http://img.shields.io/npm/v/appium-xcode.svg)](https://npmjs.org/package/appium-xcode)
[![Downloads](http://img.shields.io/npm/dm/appium-xcode.svg)](https://npmjs.org/package/appium-xcode)
[![Dependency Status](https://david-dm.org/appium/appium-xcode.svg)](https://david-dm.org/appium/appium-xcode)
[![devDependency Status](https://david-dm.org/appium/appium-xcode/dev-status.svg)](https://david-dm.org/appium/appium-xcode#info=devDependencies)

@@ -7,2 +11,4 @@ ES7 module for interacting with Xcode and Xcode-related functions.

[![Build Status](https://travis-ci.org/appium/appium-xcode.svg?branch=master)](https://travis-ci.org/appium/appium-xcode)
[![Coverage Status](https://coveralls.io/repos/appium/appium-xcode/badge.svg)](https://coveralls.io/r/appium/appium-xcode)
API

@@ -9,0 +15,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