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

appium-xcode

Package Overview
Dependencies
Maintainers
3
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.0 to 2.0.1

8

build/lib/xcode.js

@@ -71,3 +71,3 @@ 'use strict';

symlinkPath = '/var/db/xcode_select_link';
legacySymlinkPath = '/usr/share/xcode-select/xcode_dir_path';
legacySymlinkPath = '/usr/share/xcode-select/xcode_dir_link';

@@ -317,3 +317,3 @@ if (!util.hasContent(env.DEVELOPER_DIR)) {

if (!(version === '4')) {
if (!(version[0] === '4')) {
context$1$0.next = 5;

@@ -379,3 +379,3 @@ break;

exports.clearInternalCache = clearInternalCache;
// Xcode < 5.x (?)
// Xcode < 5.x

@@ -399,2 +399,2 @@ // xcode-select allows users to override its settings with the DEVELOPER_DIR env var,

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

@@ -36,3 +36,3 @@ import npmlog from 'npmlog';

const symlinkPath = "/var/db/xcode_select_link";
const legacySymlinkPath = "/usr/share/xcode-select/xcode_dir_path"; // Xcode < 5.x (?)
const legacySymlinkPath = "/usr/share/xcode-select/xcode_dir_link"; // Xcode < 5.x

@@ -179,3 +179,3 @@ // xcode-select allows users to override its settings with the DEVELOPER_DIR env var,

if (version === '4') {
if (version[0] === '4') {
return '6.1';

@@ -182,0 +182,0 @@ }

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

],
"version": "2.0.0",
"version": "2.0.1",
"author": "appium",

@@ -10,0 +10,0 @@ "license": "Apache License 2.0",

Sorry, the diff of this file is not supported yet

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