chore(firefox): move sources from //lib/firefox to //lib (#3920)

This commit is contained in:
Andrey Lushnikov 2019-02-05 18:56:04 -08:00 committed by GitHub
parent a210dd7ee2
commit 1676f9927c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 7 additions and 7 deletions

View File

@ -13,8 +13,8 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
const FirefoxLauncher = require('./lib/firefox/Launcher.js').Launcher; const FirefoxLauncher = require('./lib/Launcher.js').Launcher;
const BrowserFetcher = require('./lib/firefox/BrowserFetcher.js'); const BrowserFetcher = require('./lib/BrowserFetcher.js');
class Puppeteer { class Puppeteer {
constructor() { constructor() {

View File

@ -23,7 +23,7 @@ const readline = require('readline');
const fs = require('fs'); const fs = require('fs');
const util = require('util'); const util = require('util');
const {helper} = require('./helper'); const {helper} = require('./helper');
const {TimeoutError} = require('../Errors') const {TimeoutError} = require('./Errors')
const FirefoxTransport = require('./FirefoxTransport'); const FirefoxTransport = require('./FirefoxTransport');
const mkdtempAsync = util.promisify(fs.mkdtemp); const mkdtempAsync = util.promisify(fs.mkdtemp);

View File

@ -1,8 +1,8 @@
const {helper, assert, debugError} = require('./helper'); const {helper, assert, debugError} = require('./helper');
const {Keyboard, Mouse} = require('./Input'); const {Keyboard, Mouse} = require('./Input');
const {constants} = require('../common'); const {constants} = require('./common');
const {Dialog} = require('./Dialog'); const {Dialog} = require('./Dialog');
const {TimeoutError} = require('../Errors'); const {TimeoutError} = require('./Errors');
const fs = require('fs'); const fs = require('fs');
const mime = require('mime'); const mime = require('mime');
const util = require('util'); const util = require('util');

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
const {TimeoutError} = require('../Errors'); const {TimeoutError} = require('./Errors');
/** /**
* @internal * @internal

View File

@ -7,7 +7,7 @@ const path = require('path');
// Based on: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Enterprise_deployment_before_60#Configuration // Based on: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Enterprise_deployment_before_60#Configuration
async function installFirefoxPreferences(executablePath) { async function installFirefoxPreferences(executablePath) {
const firefoxFolder = path.dirname(executablePath); const firefoxFolder = path.dirname(executablePath);
const {helper} = require('../lib/firefox/helper'); const {helper} = require('../lib/helper');
const mkdirAsync = helper.promisify(fs.mkdir.bind(fs)); const mkdirAsync = helper.promisify(fs.mkdir.bind(fs));
let prefPath = ''; let prefPath = '';