appium-safari-driver 3.1.2 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1,23 +1,4 @@
1
1
  import SafariDriver from './lib/driver';
2
- import { startServer } from './lib/server';
3
- import { asyncify } from 'asyncbox';
4
-
5
- const DEFAULT_HOST = 'localhost';
6
- const DEFAULT_PORT = 4797;
7
-
8
- async function main () {
9
- const getArgValue = (argName) => {
10
- const argIndex = process.argv.indexOf(argName);
11
- return argIndex > 0 ? process.argv[argIndex + 1] : null;
12
- };
13
- const port = parseInt(getArgValue('--port'), 10) || DEFAULT_PORT;
14
- const host = getArgValue('--host') || DEFAULT_HOST;
15
- return await startServer(port, host);
16
- }
17
-
18
- if (require.main === module) {
19
- asyncify(main);
20
- }
21
2
 
22
3
  export default SafariDriver;
23
- export { SafariDriver, startServer };
4
+ export { SafariDriver };
@@ -1,4 +1,4 @@
1
- import { util } from '@appium/support';
1
+ import { util } from 'appium/support';
2
2
 
3
3
 
4
4
  const commands = {};
@@ -1,5 +1,5 @@
1
1
  import _ from 'lodash';
2
- import { util, fs, net, tempDir } from '@appium/support';
2
+ import { util, fs, net, tempDir } from 'appium/support';
3
3
  import { waitForCondition } from 'asyncbox';
4
4
  import Simctl from 'node-simctl';
5
5
 
package/lib/driver.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import _ from 'lodash';
2
- import { BaseDriver } from '@appium/base-driver';
2
+ import { BaseDriver } from 'appium/driver';
3
3
  import SafariDriverServer from './safari';
4
4
  import { desiredCapConstraints } from './desired-caps';
5
5
  import commands from './commands/index';
package/lib/logger.js CHANGED
@@ -1,4 +1,4 @@
1
- import { logger } from '@appium/support';
1
+ import { logger } from 'appium/support';
2
2
 
3
3
  const log = logger.getLogger('Safari');
4
4
 
package/lib/safari.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import os from 'os';
2
2
  import path from 'path';
3
- import { JWProxy, errors } from '@appium/base-driver';
4
- import { fs, logger, util } from '@appium/support';
3
+ import { JWProxy, errors } from 'appium/driver';
4
+ import { fs, logger, util } from 'appium/support';
5
5
  import { SubProcess } from 'teen_process';
6
6
  import { waitForCondition } from 'asyncbox';
7
7
  import { findAPortNotInUse } from 'portscanner';