Comparing version 0.2.2 to 1.0.0-alpha.1
CHANGELOG | ||
v1.0.0-alpha.1 | ||
- Move to 1 series releases, to support use in luma.gl and deck.gl | ||
v0.2.2 | ||
@@ -4,0 +7,0 @@ - Disable babel-preset-env temporarily as it requires upstream deps to follow |
@@ -24,3 +24,3 @@ 'use strict'; | ||
/* global __VERSION__ */ | ||
var VERSION = typeof '0.2.2' !== 'undefined' ? '0.2.2' : 'untranspiled source'; | ||
var VERSION = typeof '1.0.0-alpha.1' !== 'undefined' ? '1.0.0-alpha.1' : 'untranspiled source'; | ||
@@ -27,0 +27,0 @@ exports.window = window_; |
@@ -31,3 +31,3 @@ 'use strict'; | ||
var ERR_AUTOMATION = 'Browser automation error, Chrome 64 or higher is required'; | ||
var ERR_AUTOMATION = 'Browser automation error. Check stack trace.\n Also note that Chrome 64 or higher is required.'; | ||
@@ -112,4 +112,4 @@ var DEFAULT_CONFIG = { | ||
}, { | ||
key: 'waitForBrowserMessage', | ||
value: function waitForBrowserMessage() { | ||
key: 'exposeFunction', | ||
value: function exposeFunction() { | ||
var _this3 = this; | ||
@@ -124,2 +124,10 @@ | ||
}, { | ||
key: 'waitForBrowserMessage', | ||
value: function waitForBrowserMessage() { | ||
var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'sendMessage'; | ||
// deprecated | ||
return this.exposeFunction(name); | ||
} | ||
}, { | ||
key: 'stopBrowser', | ||
@@ -126,0 +134,0 @@ value: function stopBrowser() { |
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "0.2.2", | ||
"version": "1.0.0-alpha.1", | ||
"keywords": [ | ||
@@ -8,0 +8,0 @@ "javascript", |
@@ -23,3 +23,4 @@ // Copyright (c) 2015 - 2017 Uber Technologies, Inc. | ||
const ERR_AUTOMATION = 'Browser automation error, Chrome 64 or higher is required'; | ||
const ERR_AUTOMATION = `Browser automation error. Check stack trace. | ||
Also note that Chrome 64 or higher is required.`; | ||
@@ -86,3 +87,3 @@ const DEFAULT_CONFIG = { | ||
waitForBrowserMessage(name = 'sendMessage') { | ||
exposeFunction(name = 'sendMessage') { | ||
return new Promise(resolve => { | ||
@@ -93,2 +94,7 @@ this.page.exposeFunction(name, resolve); | ||
waitForBrowserMessage(name = 'sendMessage') { | ||
// deprecated | ||
return this.exposeFunction(name); | ||
} | ||
stopBrowser() { | ||
@@ -95,0 +101,0 @@ return Promise.resolve() |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
176129
2749