From 27b3d2c0cfd34f57ab847a43798a6c65e1546041 Mon Sep 17 00:00:00 2001 From: Kazuaki Matsuo Date: Thu, 2 Jan 2025 23:53:16 -0800 Subject: [PATCH] import explicitly --- index.js | 2 +- lib/driver.js | 2 +- test/functional/mobile-driver-e2e-specs.js | 2 +- test/unit/driver-specs.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 1c691c4..c5ce1ca 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,4 @@ -import * as SafariDriver from './lib/driver'; +import { SafariDriver } from './lib/driver'; export default SafariDriver; export { SafariDriver }; diff --git a/lib/driver.js b/lib/driver.js index c108c40..a8acd41 100644 --- a/lib/driver.js +++ b/lib/driver.js @@ -2,7 +2,7 @@ import _ from 'lodash'; import { BaseDriver } from 'appium/driver'; import SafariDriverServer from './safari'; import { desiredCapConstraints } from './desired-caps'; -import * as commands from './commands/index'; +import { commands } from './commands/index'; import { formatCapsForServer } from './utils'; import { newMethodMap } from './method-map'; diff --git a/test/functional/mobile-driver-e2e-specs.js b/test/functional/mobile-driver-e2e-specs.js index b5dffb9..dd52ee6 100644 --- a/test/functional/mobile-driver-e2e-specs.js +++ b/test/functional/mobile-driver-e2e-specs.js @@ -1,5 +1,5 @@ import { remote } from 'webdriverio'; -import * as Simctl from 'node-simctl'; +import { Simctl } from 'node-simctl'; import { HOST, PORT, MOCHA_TIMEOUT } from '../utils'; const PLATFORM_VERSION = process.env.PLATFORM_VERSION || '14.1'; diff --git a/test/unit/driver-specs.js b/test/unit/driver-specs.js index 421e7e7..7b2d251 100644 --- a/test/unit/driver-specs.js +++ b/test/unit/driver-specs.js @@ -1,4 +1,4 @@ -import * as SafariDriver from '../../lib/driver'; +import { SafariDriver } from '../../lib/driver'; describe('SafariDriver', function () { let chai;